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/
分享到:
相关推荐
[oracle@dbadb1 ~]$ ls -ld /usr/lib/libXp.so.6 ls: /usr/lib/libXp.so.6: No such file or directory [root@dbadb1 zhuxu]# rpm -ivh libXp-1.0.0-8.i386.rpm warning: libXp-1.0.0-8.i386.rpm: Header V3 DSA...
ss/usr/bin/ld: warning: libopencv_core3.so.3.3, needed by /usr/local/lib/lib 搜寻了好久大致有以下几种解决方案: 1.把该文件所在的目录放到linux动态库链接文件中: sudo gedit /etc/ld.so.conf 输入路径...
包含libstdc++.so.6.0.17和libstdc++.so.6.0.19以及libstdc++.so.6.0.20,可以用于解决缺少glibc和libstdcxx版本不够的问题。解决方案见http://cnodejs.org/topic/56dc21f1502596633dc2c3dc。
本文实例讲述了Laravel框架访问...`Warning: require(/http/www.mywakavLee.cn/bootstrap/../vendor/autoload.php): failed to open stream: No such file or directory in /http/www.mywakavLee.cn/bootstrap/autolo
ambari编译依赖的grafana,一般找不到,大家懂得;Could not find artifact org.apache.phoenix:phoenix-core:jar:4.4.0.2....和官方的其实是一样的,放心下载, 原名称是grafana-2.6.0.linux-x64.tar.gz,改下包名即可
libboost_thread.so.1.58.0,系统缺库的时候需要用到,ldd可以检测
(针对内网主机无法安装opencv情况下使用)centos7.9编译
WARNING: no libwebkitgtk-1.0 detected, some features will be unavailable Consider installing the package with apt-get or yum. e.g. 'sudo apt-get install libwebkitgtk-1.0-0'
Starting namenodes on [Java HotSpot(TM) Client VM warning: You have loaded library /hadoop/hadoop-2.6.0/lib/native/libhadoop.so.1.0.0 which might have disabled stack guard. The VM will try to fix the ...
[root@yun alien]# ./alien.pl You must specify a file to convert. Usage: alien [options] file [...] file [...] Package file or files to convert. -d, --to-deb Generate a Debian deb package (default)...
参考"解决问题:libpng warning: iCCP: known incorrect sRGB profile"[https://blog.csdn.net/WangJiankun_ls/article/details/79470739]文章,通过自己实践操作,得出结论,希望能帮助到你们
报错libpng warning: iCCP: known incorrect sRGB profile的问题
nginx-1.18.0-2.el7.ngx.x86_64.rpm安装包(含有部署手册) nginx-1.18.0-2.el7.ngx.x86_64.rpm安装包(含有部署手册) nginx-1.18.0-2.el7.ngx.x86_64.rpm安装包(含有部署手册) nginx-1.18.0-2.el7.ngx.x86_64.rpm...
torch 项目完整代码,公司无法使用git,所以放了个备份在csdn上 (git clone https://github.com/torch/distro.git ~/torch --recursive)
安装好PHPmyAdmin后,在IE里访问时会出现下面的这种错误: Warning: require_once(./libraries/common.inc.php) [function.require-once]: failed to open stream: No such file or directory in X:...
Jun 08 00:02:46 localhost.localdomain firewalld[854]: WARNING: ICMP type 'beyond-scope' is not supported by the kernel for ipv6. Jun 08 00:02:46 localhost.localdomain firewalld[854]: WARNING: beyond-...
问题描述: 在使用git 进行提交时, 出现上面这个报错, 导致无法提交. 报错大致意思就是创建index.lock文件失败,因为已经存在index.lock文件了. index.lock文件是在.git下面, 而.git是一般是隐藏的, 那么可以通过以下...
warning: gcc-c++-4.4.7-3.el6.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY error: Failed dependencies: gcc = 4.4.7-3.el6 is needed by gcc-c++-4.4.7-3.el6.x86_64 libstdc++ = 4.4.7-...
Java HotSpot(TM) Server VM warning: You have loaded library /home/hadoop/hadoop-2.5.1/lib/native/libhadoop.so.1.0.0 which might have disabled stack guard. The VM will try to fix the stack guard now. ...
WARNING: no libwebkitgtk-1.0 detected, some features will be unavailable Consider installing the package with apt-get or yum. e.g. 'sudo apt-get install libwebkitgtk-1.0-0' 如上所示,在centos里运行...