cocos2d-x

编译问题:

提示undefined reference to `WebPDecode'

解决:

加入webp到链接选项中-- One has to go to "Extra Options" under QCC linker and add the webp library there. tiff library is already in there webp is missing. Sigh.


Can you help me in this..I am new to blackberry development..
I have set up everything but facing problem on integrating cocosdenshion..
I have built Cocosdenshion project in ide and added in the dependency of project properties and also in Add library in project configure..

Still i am getting compile error like this :
C:NVPACKCocos2dx24CocosDenshionproj.blackberrySimulator/libCocosDenshion.so: undefined reference to `alSourceRewind'
C:NVPACKCocos2dx24CocosDenshionproj.blackberrySimulator/libCocosDenshion.so: undefined reference to `alutCreateBufferFromFile'
C:NVPACKCocos2dx24CocosDenshionproj.blackberrySimulator/libCocosDenshion.so: undefined reference to `alGetError'
C:NVPACKCocos2dx24CocosDenshionproj.blackberrySimulator/libCocosDenshion.so: undefined reference to `alGenSources'
C:NVPACKCocos2dx24CocosDenshionproj.blackberrySimulator/libCocosDenshion.so: undefined reference to `alSourcePlay'
etc..

And also not found any guide regarding setting Cocosdenshion in blackberry..

Not sure if you still need this or not but I ran into this problem as well. In QNX Momentics IDE click on your project and press CTRL+SHIFT+L Choose Standard blackberry libraries, under Multimedia select both OpenAL and OpenAL Utlity Toolkit then rebuild your project




在BBNDK中使用Cocos2D-X 2.0.2创建模板时出现Invalid asset path的解决方案

话说Cocos2D-X在前一阵的一次更新中添加了对黑莓设备的支持。。满心欢喜准备用用。

话说我们可以使用解压路径下面的”create-blackberry-project.sh”来创建一个cocos2d-x空项目。

但是我们发现在导入之后编译没有问题,在上传的时候提示错误

“Packaging failed:1

Error: Invalid asset path “empty/../../../cocos2dx/platform/third_party/blackberry/libraries/armle-v7/libgrskia.so””

这是因为我们需要在bar-descriptor.xml来声明一系列打成bar包所必须的附件文件。其中关于这几个动态链接库(so)是以”empty”作为相对路径,并且通过相对路径的转换来寻找所指向的文件。但是这个版本的create-blackberrt-project.sh有个bug,就是它的项目文件夹下并没有“empty”文件夹。

所以我们有两种方法来修改这个问题。

1是把那层相对路径换成绝对路径

2是新建一个empty文件夹。

 

然后这个问题就解决了……

CCArray使用:

CCArray* pArray=CCArray::create();

pArray->retain();

否则会释放掉。


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值