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
Irrlicht as an Android NDK module on Mac
-
ronaldylee
- Posts: 7
- Joined: Mon Mar 21, 2011 3:18 am