Hi Jon,
I haven't tried the building with Android/NDK so can't provide
specific advice. It might be that we need to expose some extra
variable via CMake to allow you to customize it or have our CMake make
better guess at the settings. What I can say is that merging changes
that are tailored to a specific users directory on their machine won't
cut it so you diff is inappropriate as it stands.
Robert.
On 19 December 2011 00:10, Jon Bohren wrote:
> 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
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org