<div dir="ltr"><div><div><div><div>Hi Rafa<br><br></div>Thank you for the pointer. I managed to compile and run the application in an Android device successfully.<br></div>I have also managed to compile and run the osgAndroidExampleGLES1 on my mobile device. I can see the blue background for the example together with three buttons.<br><br></div>However, now when i try to load a model (cessna.osg) it shows error: dlopen failed: library osgPlugins-3.4.0/osgdb_osg.so" not found. DynamicLibrary::failed loading "osgPlugins-3.4.0/osgdb_osg.so". It is strange because the build is static build yet it is looking for .so file.<br><br></div><div>I am not too sure why this is happening. Any pointer will be very helpful.<br><br></div><div>regards<br></div><div>Shamim<br></div><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Sep 28, 2015 at 5:08 PM, Rafa Gaitan <span dir="ltr"><<a href="mailto:rafa.gaitan@gmail.com" target="_blank">rafa.gaitan@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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><div class="h5"><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></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><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></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>
<br>_______________________________________________<br>
osg-users mailing list<br>
<a href="mailto:osg-users@lists.openscenegraph.org">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>
<br></blockquote></div><br></div>