Thank you for visiting the BlackBerry Support Community Forums.
BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)
BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.
"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."
- Kevin Michaluk, Founder, CrackBerry.com
Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.
04-13-2012 09:00 AM
I am very new to blackberry ndk development. I have a project already developed in c/c++. which depends on one or more static librarries developed in c/c++ by me. now when i compile static libraries IDE (QNX momentics) report no errors and creates .a files but when i want to compile main project then it recompile static libraries and report errors in those static libraries. can any body guide me where might be the problem!
04-13-2012 11:01 PM
I think it would be easier for us to help if you could let us know what kind of error you got, better to list some (maybe the first).
If I get what you mean, you are able to build .a if do it along, but if you need to make an app which depends on these static libs, the IDE will at that time rebuild these libs, and this time it failed the compile and cannot build the .a, right?
If so, this is indeed strange.
One possible issue occurs to me is whether the Target type (Device-Debug / Device-Release / or even Simulator) is the same of the static lib you built and app you want to build. I think if the type is same IDE will not rebuild the lib. And if type is incorrect, it might happens that the code could pass the build for Simulator target but fail for Device-Release target.
This is only a guess.
Or if the app failed in link phase, there will be a lot of possibilities...
04-16-2012 08:05 AM
It seems that those are linking errors as most of the errors are like
"undefined reference to `eglBindAPI'", actually i am C#.net programmer there u only need to add a reference to assembly(dll) and u are done. I do it that way here but nothing seems to work
04-16-2012 09:30 PM
Then it is much simpler. I guess you need to add more shared library to your project. For example the error you got means you need to add EGL to lib (possibly also GLESv1_CM or GLESv2).
04-17-2012 05:41 AM
Thankyou very much for helping me out, now i have successfully compiled the application there are no compilation/linking errors but bar file is not generated, what could be the reason.
04-17-2012 05:48 AM
For me, the QNX IDE generate the bar file when I am deploying the app to device.
There are command line tool to generate bar file (should be in bbndk-2.0.0/host/[host]/x86/usr/bin), but I haven't tried them.
04-17-2012 06:31 AM
There is no freetype2, just freetype (yes, it is the 2). Use -lfreetype instead.
You could see (almost) all libs in bbndk-2.0.0/target/qnx6/armle-v7/lib and bbndk-2.0.0/target/qnx6/armle-v7/usr/lib.