Try this:

LOCAL_LDLIBS    := -llog -lGLESv2 -ldl -lz
/path-to-your-android-ndk-r8e/sources/cxx-stl/gnu-libstdc++/4.6/libs/armeabi-v7a/libgnustl_static.a

I think it should be enough.


2013/7/25 Peter Wraae Marino <[email protected]>

> sure here it is... but like i mentioned i tried many different
> combinations also the one you described.
>
>
> Code:
> LOCAL_PATH := $(call my-dir)
>
> include $(CLEAR_VARS)
>
> LOCAL_MODULE    := osgNativeLib
> ### Main Install dir
> OSG_ANDROID_DIR := C:\Android\OpenSceneGraph-3.2\osginstall
> LIBDIR                  := $(OSG_ANDROID_DIR)/obj/local/armeabi
>
> ifeq ($(TARGET_ARCH_ABI),armeabi-v7a)
>         LOCAL_ARM_NEON  := true
>         LIBDIR                  := $(OSG_ANDROID_DIR)/obj/local/armeabi-v7a
> endif
>
> ### Add all source file names to be included in lib separated by a
> whitespace
>
> LOCAL_C_INCLUDES:= $(OSG_ANDROID_DIR)/include
> LOCAL_CFLAGS    := -Werror -fno-short-enums
> LOCAL_CPPFLAGS  := -DOSG_LIBRARY_STATIC
>
> ### which one, I would think the static, but some people in the forum say
> the shared.. makes no sense?... libgnustl_shared lgnustl_static
> LOCAL_LDLIBS    := -llog -lGLESv2 -ldl -lz -lgnustl_static
> LOCAL_SRC_FILES := osgNativeLib.cpp OsgMainApp.cpp
> OsgAndroidNotifyHandler.cpp
> LOCAL_LDFLAGS   := -L $(LIBDIR) \
> -losgdb_dds \
> -losgdb_openflight \
> -losgdb_tga \
> -losgdb_rgb \
> -losgdb_osgterrain \
> -losgdb_osg \
> -losgdb_ive \
> -losgdb_deprecated_osgviewer \
> -losgdb_deprecated_osgvolume \
> -losgdb_deprecated_osgtext \
> -losgdb_deprecated_osgterrain \
> -losgdb_deprecated_osgsim \
> -losgdb_deprecated_osgshadow \
> -losgdb_deprecated_osgparticle \
> -losgdb_deprecated_osgfx \
> -losgdb_deprecated_osganimation \
> -losgdb_deprecated_osg \
> -losgdb_serializers_osgvolume \
> -losgdb_serializers_osgtext \
> -losgdb_serializers_osgterrain \
> -losgdb_serializers_osgsim \
> -losgdb_serializers_osgshadow \
> -losgdb_serializers_osgparticle \
> -losgdb_serializers_osgmanipulator \
> -losgdb_serializers_osgfx \
> -losgdb_serializers_osganimation \
> -losgdb_serializers_osg \
> -losgViewer \
> -losgVolume \
> -losgTerrain \
> -losgText \
> -losgShadow \
> -losgSim \
> -losgParticle \
> -losgManipulator \
> -losgGA \
> -losgFX \
> -losgDB \
> -losgAnimation \
> -losgUtil \
> -losg \
> -lOpenThreads
>
> include $(BUILD_SHARED_LIBRARY)
>
>
>
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=55429#55429
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>



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

Reply via email to