Irrlicht as an Android NDK module on Mac

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
jason
Posts: 1
Joined: Fri Mar 18, 2011 8:47 pm

Irrlicht as an Android NDK module on Mac

Post by jason »

hi,

After doing some research on mobile technology, I decided to make something interesting with the aid of Irrlicht for Android. However, I ran into some problems while trying to set it up as a NDK module.

Here is my system:

* Macbook pro running snow leopard
* Android SDK r10
* Android NDK r5b

Here is what I've done:

1. I Downloaded Irrlicht for Android:
>>git clone git://gitorious.org/irrlichtandroid/irrlichtandroid.git

2. I modified irrlichtandroid/project/Android.mk:

LOCAL_CFLAGS := -O3 -DANDROID_NDK -DDISABLE_IMPORTGL -I./../include/ -I./include/ -I/Applications/android-ndk-r5b/platforms/android-9/arch-arm/usr/include

LOCAL_LDLIBS := -L/Applications/android-ndk-r5b/platforms/android-4/arch-arm/usr/lib/libGLESv1_CM.so -ldl -llog -L/Applications/android-ndk-r5b/platforms/android-5/arch-arm/usr/lib/libGLESv2.so

3. I ran ndk-build under /Applications/android-ndk-r5b/apps/irrlichtandroid/project

And here is the problem:
The linker complained about dozens of "undefined references", including glEnable, glDisable, glViewport, etc. I believe these variables are defined in <importgl.h>. I linked to the original .so files rather that the alias files in android-9/. Still, I can't get around the problem.

Please help me figure this one out. Many thanks beforehand!

Jason
ronaldylee
Posts: 7
Joined: Mon Mar 21, 2011 3:18 am

Post by ronaldylee »

i can make my setup work on my mac, not exactly remember if i saw this problem but i remember i need to copy some header files to the project directory at some point..
Post Reply