How to build project by using bbndk1.0 and bbndk2.0¶
There is a good news that bbndk2.0 have been released a few days ago. You can download it from here https://bdsc.webapps.blackberry.com/native/download/.
when I try to build our cocos2d-x projects by using bbndk2.0, they can be built successfully, the result cannot be packed. The main reason is that bar-descriptor.xml in bbndk2.0 cannot be recognized as bbndk1.0. The variables, such as 'worksparce_loc', 'QNX_TARGET' cannot take effect.
The Solution of this issue is we create a empty folder, and make relationship to the folder we want to link. For example, the resource folder is linked by
<asset path="empty/../../../HelloWorld/Resources">Resources</asset>
If you have a better way, please contact me, thanks.
Ok, now let me introduce how you guys can build cocos2d-x projects by both bbndk1.0 and bbndk2.0.
1. The step of importing and building projects is the same as normal, you can find it here http://www.cocos2d-x.org/projects/cocos2d-x/wiki/How_to_run_HelloWorld_and_Tests_on_BlackBerry_Tablet_OS¶
2. The default configure of bar-descript.xml is for bbndk2.0, if you use bbndk1.0, you should read the comment in this file.¶
<!-- the path of the three shared libraries as follows in bbndk2.0 is different from bbndk1.0, so if the version of bbndk you use is 1.0, just uncomment the next three lines and comment the following three lines-->
<!-- used for bbndk1.0 -->
<!--<asset path="${QNX_TARGET}/../target-override/${CPUVARDIR}/usr/lib/libbps.so" type="Qnx/Elf">lib/libbps.so.1</asset>-->
<!--<asset path="${QNX_TARGET}/../target-override/${CPUVARDIR}/usr/lib/libOpenAL.so" type="Qnx/Elf">lib/libOpenAL.so.1</asset>-->
<!--<asset path="${QNX_TARGET}/../target-override/${CPUVARDIR}/usr/lib/libalut.so" type="Qnx/Elf">lib/libalut.so.1</asset>-->
<!-- used for bbndk2.0 -->
<asset path="${QNX_TARGET}/${CPUVARDIR}/usr/lib/libbps.so" type="Qnx/Elf">lib/libbps.so.1</asset>
<asset path="${QNX_TARGET}/${CPUVARDIR}/usr/lib/libOpenAL.so" type="Qnx/Elf">lib/libOpenAL.so.1</asset>
<asset path="${QNX_TARGET}/${CPUVARDIR}/usr/lib/libalut.so" type="Qnx/Elf">lib/libalut.so.1</asset>
That's all, enjoy developing blackberry playbook application by cocos2d-x qnx port. 