<div dir="ltr">Hi Shamim,<div><br></div><div>I added glustl_shared to be loaded dynamically before loading any osgAndroid jni library, because linking it statically was giving a lot of problems.</div><div><br></div><div>I don't recall having problems before, but I usually work on linux or mac when I have to develop in android and OSG. Maybe is something related to the r10e NDK?. </div><div><br></div><div>Anyway, could you check if you have in your org.openscenegraph.android/libs/armeabi/ the library libgnustd_shared.so?, if not, probably you need to copy it there from the NDK.</div><div><br></div><div>I don't recall if I copied it by myself that or it's automated somehow by the NDK build system. But if you have it there along the libjni-osggles*.so libraries it will be deployed within the apk.</div><div><br></div><div>Regards,</div><div>Rafa.</div><div><br></div><br><div class="gmail_quote"><div dir="ltr">El lun., 28 sept. 2015 a las 9:34, Akhtar Shamim (<<a href="mailto:shamimz@gmail.com" target="_blank">shamimz@gmail.com</a>>) escribió:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra">Hi</div><div class="gmail_extra"><br></div><div class="gmail_extra">Recently we had a requirement to build OSG for Android and load a OpenFlight MetaFight file. This is what I did:</div><div class="gmail_extra"><br></div><div class="gmail_extra">- Checkout the 3.4.0 stable release of OSG</div><div class="gmail_extra">- Installed Android NDK, SDK and Eclipse.</div><div class="gmail_extra">- Used the toolchain to compile OSG for GLES1</div><div class="gmail_extra">- Downloaded OSGAndroid from GitHub</div><div class="gmail_extra">- Imported to Eclipse</div><div class="gmail_extra">- Build all the four projects</div><div class="gmail_extra"><br></div><div class="gmail_extra">So far there is no problem at all. Everything went smooth.</div><div class="gmail_extra"><br></div><div class="gmail_extra">However, when I am trying to deploy the osgsimple application using eclipse or trying to debug the application it throws an error saying: </div><div class="gmail_extra"><br></div><div class="gmail_extra">"Couldn't load gnustl_shared from loader dalvik.system.PathClassLoader".</div><div class="gmail_extra"><br></div><div class="gmail_extra">This is what I did:</div><div class="gmail_extra">- Modified Android.mk to have the correct OSG_SDK path</div><div class="gmail_extra">- Modified Android.mk to have the correct plugins (osgPlugins-3.4.0)</div><div class="gmail_extra"><br></div><div class="gmail_extra">Note:</div><div class="gmail_extra"><br></div><div class="gmail_extra">(a) No other changes made to any files downloaded from GitHub for osgAndroid. </div><div class="gmail_extra">(b) The command used to configure cmake is <<< </div><div class="gmail_extra"><br></div><div class="gmail_extra"><div class="gmail_extra">> set ANDROID_NDK=C:\Android\android-ndk-r10e</div><div class="gmail_extra">> "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</div><div class="gmail_extra"><br></div><div class="gmail_extra">> make  -j 8</div><div class="gmail_extra">> make install</div><div class="gmail_extra"><br></div><div class="gmail_extra">>>>></div></div><div class="gmail_extra"><br></div><div class="gmail_extra">I tried the above in Windows 10.<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">Any help to get this resolved will be greatly appreciated.</div><div class="gmail_extra"><br></div><div class="gmail_extra">regards</div><div class="gmail_extra">Shamim</div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div></div>
_______________________________________________<br>
osg-users mailing list<br>
<a href="mailto:osg-users@lists.openscenegraph.org" target="_blank">osg-users@lists.openscenegraph.org</a><br>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" rel="noreferrer" target="_blank">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a><br>
</blockquote></div></div>