Hi,

I am having some trouble compiling osg for Android... 

These are the options I pick with cmake:


Code:
OSG_GL1_AVAILABLE        OFF
OSG_GL2_AVAILABLE        OFF
OSG_GL3_AVAILABLE        OFF
OSG_GLES1_AVAILABLE      OFF
OSG_GLES2_AVAILABLE      ON
OPENGL_INCLUDE   /home/rubn/data/android/gl/khronos_headers/GLES2
OPENGL_LIBRARY  
/home/rubn/data/android/android-ndk/platforms/android-9/arch-arm/usr/lib/libGLESv2.so
OPENGL_egl_LIBRARY       
/home/rubn/data/android/android-ndk/platforms/android-9/arch-arm/usr/lib/libEGL.so
OSG_GL_DISPLAYLISTS_AVAILABLE    OFF
SG_GL_MATRICES_AVAILABLE         OFF
OSG_GL_VERTEX_FUNCS_AVAILABLE    OFF
OSG_GL_VERTEX_ARRAY_FUNCS_AVAILABLE      OFF
OSG_GL_FIXED_FUNCTION_AVAILABLE  OFF
OSG_CPP_EXCEPTIONS_AVAILABLE     OFF
OSG_BUILD_ANDROID_PLATFORM   ON
ANDROID_NDK    /home/rubn/data/android/android-ndk
DYNAMIC_OPENTHREADS     OFF
DYNAMIC_OPENSCENEGRAPH    OFF 



When I press generate everything works just fine, no error messages... When I 
try to compile using make from the shell, I get:

Code:
rubn@CPU00063:~/data/OpenSceneGraph/build$ make
[  0%] Generating Android-OpenSceneGraph
Android NDK: NDK installation path auto-detected: 
'/home/rubn/data/android/android-ndk'
Android NDK: GNU Make version 3.81 detected
Android NDK: Host OS was auto-detected: linux
Android NDK: Host CPU was auto-detected: x86
Android NDK: HOST_TAG set to linux-x86
Android NDK: Host awk tool was auto-detected: awk
Android NDK: Host awk test returned: Pass
Android NDK:  This NDK supports the following toolchains and target ABIs:
Android NDK:    arm-linux-androideabi-4.4.3:  armeabi armeabi-v7a
Android NDK:    x86-4.4.3:  x86
Android NDK: Found platform root directory: 
/home/rubn/data/android/android-ndk/platforms
Android NDK: Found supported platforms: android-3 android-4 android-5 android-8 
android-9
Android NDK: PLATFORM android-3 supports: arm x86
Android NDK:   ABI arm sysroot is: 
/home/rubn/data/android/android-ndk/platforms/android-3/arch-arm
Android NDK:   ABI x86 sysroot is: 
/home/rubn/data/android/android-ndk/platforms/android-3/arch-x86
Android NDK: PLATFORM android-4 supports: arm x86
Android NDK:   ABI arm sysroot is: 
/home/rubn/data/android/android-ndk/platforms/android-4/arch-arm
Android NDK:   ABI x86 sysroot is: 
/home/rubn/data/android/android-ndk/platforms/android-4/arch-x86
Android NDK: PLATFORM android-5 supports: arm x86
Android NDK:   ABI arm sysroot is: 
/home/rubn/data/android/android-ndk/platforms/android-5/arch-arm
Android NDK:   ABI x86 sysroot is: 
/home/rubn/data/android/android-ndk/platforms/android-5/arch-x86
Android NDK: PLATFORM android-8 supports: arm x86
Android NDK:   ABI arm sysroot is: 
/home/rubn/data/android/android-ndk/platforms/android-8/arch-arm
Android NDK:   ABI x86 sysroot is: 
/home/rubn/data/android/android-ndk/platforms/android-8/arch-x86
Android NDK: PLATFORM android-9 supports: arm x86
Android NDK:   ABI arm sysroot is: 
/home/rubn/data/android/android-ndk/platforms/android-9/arch-arm
Android NDK:   ABI x86 sysroot is: 
/home/rubn/data/android/android-ndk/platforms/android-9/arch-x86
Android NDK: Found stable platform levels: 3 4 5 8 9
Android NDK: Found max platform level: 9
Android NDK: Looking for AndroidManifest.xml in 
/home/rubn/data/OpenSceneGraph/build
Android NDK:     Found it !
Android NDK: Found project path: /home/rubn/data/OpenSceneGraph/build
Android NDK: Parsing Application.mk
Android NDK:   Using build script ./Android.mk
Android NDK: Application 'local' is not debuggable
Android NDK: Selecting optimization mode through Application.mk: release
Android NDK: Adding import directory: 
/home/rubn/data/android/android-ndk/sources
Android NDK: Building application 'local' for ABI 'armeabi'
Android NDK: Using target toolchain 'arm-linux-androideabi-4.4.3' for 'armeabi' 
ABI
Android NDK: Looking for imported module with tag 'cxx-stl/gnu-libstdc++'
Android NDK:   Probing 
/home/rubn/data/android/android-ndk/sources/cxx-stl/gnu-libstdc++/Android.mk
Android NDK:     Found in 
/home/rubn/data/android/android-ndk/sources/cxx-stl/gnu-libstdc++
Android NDK: Trying to define local module 'OpenThreads' in 
/home/rubn/data/OpenSceneGraph/build/src/OpenThreads/pthreads/Android.mk.    
Android NDK: But this module was already defined by 
/home/rubn/data/OpenSceneGraph/build/src/OpenThreads/pthreads/Android.mk.    
/home/rubn/data/android/android-ndk/build/core/build-module.mk:34: *** Android 
NDK: Aborting.    .  Stop.
make[2]: *** [Android-OpenSceneGraph] Error 2
make[1]: *** [CMakeFiles/ndk.dir/all] Error 2
make: *** [all] Error 2



And that's pretty much it... I also try with
$ $ANDROID_NDK/ndk_build NDK_APPLICATION_MK=Application.mk
but no luck


Android NDK: Trying to define local module 'OpenThreads' in 
/home/rubn/data/OpenSceneGraph/build/src/OpenThreads/pthreads/Android.mk.    
Android NDK: But this module was already defined by 
/home/rubn/data/OpenSceneGraph/build/src/OpenThreads/pthreads/Android.mk.    
any idea why I am getting this error message? 
I thought by setting DYNAMIC_OPENTHREADS  to   OFF there wouldn't be more 
problems with that, but unfortunately it's not the case.



I am working on Linux Ubuntu 11.04.

Any hint would be much appreciated. 

Thanks a lot!

Cheers,
ruben

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=41350#41350





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to