However, as this was the first time I'd tried to use the NDK, the
problem may well be outside of OSG.
It was: I hadn't set OSG_ANDROID_DIR. After doing that and adding
-lgnustl_static, I get this error:
osgAndroidExampleGLES2$ /home/palmer/Android/android-ndk-r8b/ndk-build
Compile++ thumb : osgNativeLib <= osgNativeLib.cpp
In file included from jni/osgNativeLib.cpp:2:0:
/home/palmer/Android/android-ndk-r8b/platforms/android-5/arch-arm/usr/include/jni.h:592:13:
note: the mangling of 'va_list' has changed in GCC 4.4
Compile++ thumb : osgNativeLib <= OsgMainApp.cpp
Compile++ thumb : osgNativeLib <= OsgAndroidNotifyHandler.cpp
SharedLibrary : libosgNativeLib.so
/home/palmer/Android/android-ndk-r8b/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld:
/home/palmer/Android/OpenSceneGraph/obj/local/armeabi/libosgUtil.a(IntersectVisitor.o)(.text._ZN3osg11LineSegmentC2ERKS0_[_ZN3osg11LineSegmentC5ERKS0_]+0x32):
unresolvable R_ARM_THM_CALL relocation against symbol `memcpy'
/home/palmer/Android/android-ndk-r8b/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld:
final link failed: Nonrepresentable section on output
collect2: ld returned 1 exit status
make: *** [obj/local/armeabi/libosgNativeLib.so] Error 1
I also get the same error in 3.2.0.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org