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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Native Development

Reply
New Developer
richardyiu
Posts: 17
Registered: ‎01-14-2011

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?

Please use plain text.
BlackBerry Development Advisor
gbeukeboom
Posts: 1,847
Registered: ‎10-16-2009
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 Beukeboom
BlackBerry Development Advisor
Developer Zone
@garettbeukeboom

--
Think of a great new feature? Find a bug?
Log and track them using the Developer Issue Tracker
Please use plain text.
New Developer
richardyiu
Posts: 17
Registered: ‎01-14-2011

Re: Is bzlib included in NDK?

thanks,  I will give it a try in the weekend

Please use plain text.
New Developer
richardyiu
Posts: 17
Registered: ‎01-14-2011

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

Please use plain text.
BlackBerry Development Advisor
elena_laskavaia
Posts: 410
Registered: ‎10-27-2010

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

Please use plain text.