Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development


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.


Reply
New Developer
Posts: 17
Registered: ‎01-14-2011
My Device: Not Specified

Is bzlib included in NDK?

Hi,

 

I am planning to compile an app that uses both SDL and bzlib.  I know SDL is supported by NDK.  Is  bzlib supported by NDK too?

Retired
Posts: 2,559
Registered: ‎10-16-2009
My Device: BlackBerry Z10
My Carrier: Bell

Re: Is bzlib included in NDK?

Hi,

 

bzlib is included with the NDK, bzlib.h can be found at <BBNDK_DIR>\target\qnx6\usr\include. This path should be added by default to your project.

 

Regards,

Garett
@garettBeuk
--
Goodbye everybody!
Highlighted
New Developer
Posts: 17
Registered: ‎01-14-2011
My Device: Not Specified

Re: Is bzlib included in NDK?

thanks,  I will give it a try in the weekend

New Developer
Posts: 17
Registered: ‎01-14-2011
My Device: Not Specified

Re: Is bzlib included in NDK?

I am trying to compile a game called Simutrans which the source can be download ed here: http://github.com/aburch/simutrans

 

I choose import -> C/C++ -> Existing Code as Makefile project.  After I click on the build project, these warnings appear.  I am not quite sure what needs to be done.  I tried to take a look at the NDK's getting started page but it doesn't help much.

 

Description Resource Path Location Type
Error launching external scanner info generator (g++ -E -P -v -dD C:/ndk-2.0.0-workspace/.metadata/.plugins/org.eclipse.cdt.make.core/specs.cpp) Simutrans [Discovery Options] page in project properties C/C++ Problem
Error launching external scanner info generator (gcc -E -P -v -dD C:/ndk-2.0.0-workspace/.metadata/.plugins/org.eclipse.cdt.make.core/specs.c) Simutrans [Discovery Options] page in project properties C/C++ Problem
Program 'g++' is not found in $PATH Simutrans [Discovery Options] page in project properties C/C++ Problem
Program 'gcc' is not found in $PATH Simutrans [Discovery Options] page in project properties C/C++ Problem

BlackBerry Development Advisor
Posts: 417
Registered: ‎10-27-2010
My Device: PlayBook

Re: Is bzlib included in NDK?

This would not do what you want, because it will import project to be compiled for the HOST (i..e windows).

You need to create BBT OS Project and select Makefile project. Then you can import the source code into existing project. Depends on how makefile written it may or may not work. You probably would have to change makefile

to add options to gcc to cross compile for arm