I’ve developed a game for the past couple of months using cocos2d-2.1beta3-x-2.1.0 on OSX. I basically deleted the code from the SimpleGame project and did my development inside that project. I’ve been testing it on the iPhone simulator as I developed it (I’m used to using cocos2d (objective c flavour) but decided to try out cocos2d-x for this project so I could build for my playbook too.
I’ve got key signing set up and working (I’ve developed some apps using cocos2d-x and marmalade and publishing worked fine) but was getting a bunch of issues on the marmalade deployment (sounds were not great etc) so would like to skip marmalade.
Anyways, I’ve followed as many guides as I could find online for deploying via QNX Momentics but have so far lost around 2 days trying to publish even a debug build to my device.
What I’ve tried so far
I’ve managed to get TestCPP imported, built and deployed onto the device.
I’ve copied the SimpleGame folder (with all my modified code and assets) from samples to the root dir and used terminal to run ./create-blackberry-project.sh I then entered SimpleGame as project name and it created the blackberry.proj.
I imported this into Momentics and built for debug. Initialy it couldn’t find *~~lcocos2dx* so I went to Properties > C/C++ Build > Settings > QCC Linker > Libraries and added :
Then it complained about **
lCocosDenshion* so I repeated this and added :lgrskia so I added:
Then it complained about
After this I managed to get it building successfully.
Then I choose Run as Blackberry OS C++ Tablet Application from the right click menu, the download and installation takes place but as soon as the app opens it closes with the error
ldd:FATAL: Could not load library libCocosDenshion.so
I’m really pulling my hair out at this stage~~ it would be really appreciated if anyone could help me get this on the device, I’ve spent a lot of time on it and am getting depressed
If I’ve messed up some steps along the way I’d be glad to hear. Ideally, if you could give the steps to go from having:
- A clean install of cocos2d-2.1beta3-x-2.1.0 on OSX
- Opening the SimpleGame sample and playing a sample with CocosDenshion (I don’t need code for this, but I do have the dependency)
- <What I do now to see it running on my playbook, assuming I have the SDK installed, IDE set up and key signing done>
I will love you forever if you can help - I’m sure there are many others that are struggling with this if my recent googling has anything to go by.