I followed the instructions on the wiki for building the android osg examples, but with ndk7 I kept getting linker errors for anything in libstdc++ until I added another libdir (android-ndk/sources/cxx-stl/gnu-libstdc++/libs/armeabi) to the linker flags.
Is this a known problem / is this the correct solution / should this fix go into trunk? See the diff to Android.mk below: Code: Index: jni/Android.mk =================================================================== --- jni/Android.mk (revision 12892) +++ jni/Android.mk (working copy) @@ -4,7 +4,7 @@ LOCAL_MODULE := osgNativeLib ### Main Install dir -OSG_ANDROID_DIR := < type your install directory > +OSG_ANDROID_DIR := /home/jbohren/source/OpenSceneGraph LIBDIR := $(OSG_ANDROID_DIR)/obj/local/armeabi ifeq ($(TARGET_ARCH_ABI),armeabi-v7a) @@ -62,6 +62,7 @@ -losgAnimation \ -losgUtil \ -losg \ --lOpenThreads +-lOpenThreads\ +-L/usr/local/android/android-ndk/sources/cxx-stl/gnu-libstdc++/libs/armeabi include $(BUILD_SHARED_LIBRARY) Thanks! ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=44414#44414 _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org