Hi Recently we had a requirement to build OSG for Android and load a OpenFlight MetaFight file. This is what I did:
- Checkout the 3.4.0 stable release of OSG - Installed Android NDK, SDK and Eclipse. - Used the toolchain to compile OSG for GLES1 - Downloaded OSGAndroid from GitHub - Imported to Eclipse - Build all the four projects So far there is no problem at all. Everything went smooth. However, when I am trying to deploy the osgsimple application using eclipse or trying to debug the application it throws an error saying: "Couldn't load gnustl_shared from loader dalvik.system.PathClassLoader". This is what I did: - Modified Android.mk to have the correct OSG_SDK path - Modified Android.mk to have the correct plugins (osgPlugins-3.4.0) Note: (a) No other changes made to any files downloaded from GitHub for osgAndroid. (b) The command used to configure cmake is <<< > set ANDROID_NDK=C:\Android\android-ndk-r10e > "c:\Program Files (x86)\CMake 2.8\bin\cmake.exe" .. -G"MinGW Makefiles" -DANDROID_NDK=C:/Android/android-ndk-r10e -DCMAKE_TOOLCHAIN_FILE=../PlatformSpecifics/Android/android.toolchain.cmake -DCMAKE_MAKE_PROGRAM="%ANDROID_NDK%\prebuilt\windows-x86_64\bin\make.exe" -DOPENGL_PROFILE="GLES1" -DDYNAMIC_OPENTHREADS=OFF -DDYNAMIC_OPENSCENEGRAPH=OFF -DANDROID_NATIVE_API_LEVEL=15 -DANDROID_ABI=armeabi -DCMAKE_INSTALL_PREFIX=C:/Android/OSG_ES1-3.4.0 > make -j 8 > make install >>>> I tried the above in Windows 10. Any help to get this resolved will be greatly appreciated. regards Shamim
_______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org