linux环境下用cocos2d-x开发游戏时,遇到了
warning: libfmodex64.so, needed by ../../lib/linux/Debug/libcocosdenshion.so, not found (try using -rpath or -rpath-link
问题,(在公司的ubuntu11.10下没有这个问题)
ps:linux下cocos2d-x的问题比较多,除了一些我们没发解决的bug外,大部分是文件路径的问题。
解决办法如下:
查看cocos2dx/CocosDenshion/third_party/linux/fmod/lib64/api/lib/目录下有没有libfmodex64.so这个文件,若没有,则切换到该目录,设置软连接:
ln -s libfmodex64*.so libfmodex64.so
ln -s libfmodexL64*.so libfmodexL64.so
然后修改项目目录下的/Linux/MakeFile文件 (0.12.0版本的大写Linux目录全部换成小写linux,解压完之后需要手工改写:
cocos2dx/CocosDenshion/proj.linux/Makefile和cocos2dx/cocos2dx/proj.linux/Makefile里的路径Linux换成linux)
把原来的:
SHAREDLIBS = -L../../lib/linux/Debug -lcocos2d -lrt -lz -lcocosdenshion -Wl,-rpath,../../lib/linux/Debug/
修改为:
SHAREDLIBS = -L../../lib/linux/Debug -lcocos2d -lrt -lz -lcocosdenshion -Wl,-rpath,../../lib/linux/Debug/ -Wl,-rpath,../../CocosDenshion/third_party/linux/fmod/lib64/api/lib/
分享到:
相关推荐
sharedLibrary - Used to help support Android 5 shared library feature by automatically detecting shared libraries and using --shared-lib on [b]uild Examples of new usage in 2.0 vs 1.5.x Old (Apktool...
also includes the OpenSSL binaries needed to support SSL. ICS V8 supports Delphi 64-bit and Mac OS-X projects. Note that latest C++ Builder version supported is XE3 (lack of spare time, sorry). ICS ...
independent acpica.lib produced by the Microsoft Visual C++ 6.0 32- bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. ...
An empty string can be denoted by simply not writing anything after the equal ; sign, or by using the None keyword: ; foo = ; sets foo to an empty string ; foo = None ; sets foo to an empty string ;...
[3164945] hack to compile under WIN64 by Darek Mihocka and Stanislav [3164073] Fine grain SMC invalidation by Stanislav [1539417] write protect for floppy drives by Ben Lunt [2862322] fixes for ...
* Watched Variables not in correct context are now kept and updated when it is needed * Added new compiler/linker options: - Strip executable - Generate instructions for a specific machine (i386, i...