编译了一个程序,出现了这个错误,无法启动
Tofloor
poster avatar
andyscream
deepin
2016-01-26 06:45
Author
/home/x/workspace/demo-build/bin/MyGame: error while loading shared libraries: libfmod.so.6: cannot open shared object file: No such file or directory
编译了cocos2dx的项目,编译成功,但是启动,说缺少这个库文件,请问到哪里修改?!

Reply Favorite View the author
All Replies
avatar
andyscream
deepin
2016-01-26 06:49
#1
而且15版不能添加ppa,请问如何解决,因为cocos2dx在linux的依赖文件下有这个sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
Reply View the author
avatar
andyscream
deepin
2016-01-26 16:57
#2
我已经找到解决方法了,用cocos2dx v3.10的筒子们,http://discuss.cocos2d-x.org/t/error-while-building-for-linux-libfmod-so-6/26553/12,复制完这些文件后,要重新运行一次install-deps-linux.sh,记住,要重新运行一次依赖安装!
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/
sudo cp <*COCOS FOLDER LOCATION*>/external/linux-specific/fmod/include/*.h /usr/local/include/

Reply View the author