11-21-2011 02:54 AM
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?
11-23-2011 11:02 AM
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,
11-24-2011 01:26 AM
thanks, I will give it a try in the weekend
11-24-2011 11:40 AM
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.ecli
Error launching external scanner info generator (gcc -E -P -v -dD C:/ndk-2.0.0-workspace/.metadata/.plugins/org.ecli
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
11-24-2011 01:06 PM
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