您的位置:首页 > 移动开发 > Cocos引擎

完美解决cocos2d libfmod.so.6: cannot open shared object file问题

2016-11-07 16:19 471 查看
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 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开发吧!

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐