[osg-users] [build] [build] building osgAndroidExampleGLES* on Ubuntu 10.04 with android-ndk-r7

2011-12-27 Thread Jon Bohren
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


Re: [osg-users] [build] [build] building osgAndroidExampleGLES* on Ubuntu 10.04 with android-ndk-r7

2012-01-05 Thread Robert Osfield
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


Re: [osg-users] [build] [build] building osgAndroidExampleGLES* on Ubuntu 10.04 with android-ndk-r7

2012-02-09 Thread Kyle Gancarz

Jorge Izquierdo Ciges wrote:
> NDK r7 has a strange bug with the order of linking std libraries just add 
> -lgnustl_static at the end and it will be solved.
> 


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





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org