完美解决cocos2d libfmod.so.6: cannot open shared object file问题
wang@wang:~/srccomputer/cocos2d-x-3.13.1/build/linux-build/bin/cpp-tests$ ./cpp-tests./cpp-tests: error while loading shared libraries: libfmod.so.6: cannot open shared object file: No such file o
./cpp-tests: error while loading shared libraries: libfmod.so.6: cannot open shared object file: No such file or directory
执行此错误的时候报告如上错误,
需要的libfmod.so.6在coco2d-x-3.13的external的子目录中,进行如下操作:
My total solution:
1) copy
sudo cp <COCOS FOLDER LOCATION>/external/linux-specific/fmod/prebuilt/64-bit/libfmod.so /usr/local/lib/
sudo cp <COCOS FOLDER LOCATION>/external/linux-specific/fmod/prebuilt/64-bit/libfmodL.so /usr/local/lib/
2) create symbolic link in /usr/local/lib/
先进入/usr/local/lib目录下,敲下面一行命令就会关联库。
ln -s libfmod.so libfmod.so.6
3) run ./install-deps-linux again
4)wang@wang:~/srccomputer/cocos2d-x-3.13.1/build/linux-build/bin/cpp-tests$ ./cpp-tests
终端会有相对应的输出:
Ready for GLSL
Ready for OpenGL 2.0
Console: listening on 0.0.0.0 : 5678
[TestController]Begin traverse TestList:
[TestController] Begin traverse TestSuite:1:Node: Scene3D
[TestController] Run test:Scene3DTestScene.
[TestController] Begin traverse TestSuite:2:ActionManager
[TestController] Run test:CrashTest.
[TestController] Run test:LogicTest.
[TestController] Run test:PauseTest.
[TestController] Run test:StopActionTe
图形界面:
是不是看起来很nice,那就开始cocos2d开发吧!
更多推荐
所有评论(0)