<p dir="ltr">Hi,</p>
<p dir="ltr">In on vacation right now, and I cannot check properly why the 3rd party libs don't link..</p>
<p dir="ltr">My guess for your last log is that zlib is missing. I'm not following the thread so apologise if I'm asking something already solved but did you try to link the 3rd party libraries setting the full path in the Android.mk?</p>
<p dir="ltr">Regards,<br>
Rafa<br>
</p>
<br><div class="gmail_quote"><div dir="ltr">El mar., 11 de agosto de 2015 15:47, Christian Kehl <<a href="mailto:christian-kehl@web.de">christian-kehl@web.de</a>> escribió:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Today, I changed the strategy a bit: because the linker fails to reference the functions, the NDK says there is the option to include the whole static library, which I did by now (see Android.mk.txt file).<br>
<br>
The new error does not find the base functions of the pre-compiled 3rd party libraries:<br>
<br>
christian@PROMETHEUS:/media/christian/DATA/osgAndroid/org.openscenegraph.android$ ${ANDROID_NDK}/ndk-build<br>
[armeabi] Compile++ thumb: jniosg-gles1 <= JNIosgViewer.cpp<br>
[armeabi] Compile++ thumb: jniosg-gles1 <= JNIosg.cpp<br>
[armeabi] Compile++ thumb: jniosg-gles1 <= JNIosgDB.cpp<br>
[armeabi] Compile++ thumb: jniosg-gles1 <= JNIosgUtil.cpp<br>
[armeabi] Compile++ thumb: jniosg-gles1 <= JNIosgGA.cpp<br>
[armeabi] Compile++ thumb: jniosg-gles1 <= JNIUtils.cpp<br>
[armeabi] Compile++ thumb: jniosg-gles1 <= MultiViewNode.cpp<br>
[armeabi] Compile++ thumb: jniosg-gles1 <= GLES2ShaderGenVisitor.cpp<br>
[armeabi] SharedLibrary : libjniosg-gles1.so<br>
/home/jorizci/librerias/OSG_cmake_ndk/osg_rafa/3rdparty/libpng/png.c:634: error: undefined reference to 'inflateReset'<br>
/home/jorizci/librerias/OSG_cmake_ndk/osg_rafa/3rdparty/libpng/png.c:140: error: undefined reference to 'crc32'<br>
/home/jorizci/librerias/OSG_cmake_ndk/osg_rafa/3rdparty/libpng/png.c:114: error: undefined reference to 'crc32'<br>
/home/jorizci/librerias/OSG_cmake_ndk/osg_rafa/3rdparty/libpng/pngwrite.c:991: error: undefined reference to 'deflateEnd'<br>
/home/jorizci/librerias/OSG_cmake_ndk/osg_rafa/3rdparty/libpng/pngwrite.c:866: error: undefined reference to 'deflate'<br>
/home/jorizci/librerias/OSG_cmake_ndk/osg_rafa/3rdparty/libpng/pngrutil.c:223: error: undefined reference to 'inflate'<br>
/home/jorizci/librerias/OSG_cmake_ndk/osg_rafa/3rdparty/libpng/pngrutil.c:247: error: undefined reference to 'inflateReset'<br>
/home/jorizci/librerias/OSG_cmake_ndk/osg_rafa/3rdparty/libpng/pngrutil.c:3133: error: undefined reference to 'inflate'<br>
/home/jorizci/librerias/OSG_cmake_ndk/osg_rafa/3rdparty/libpng/pngrutil.c:3162: error: undefined reference to 'inflateReset'<br>
/home/jorizci/librerias/OSG_cmake_ndk/osg_rafa/3rdparty/libpng/pngread.c:1146: error: undefined reference to 'inflateEnd'<br>
/home/jorizci/librerias/OSG_cmake_ndk/osg_rafa/3rdparty/libpng/pngread.c:615: error: undefined reference to 'inflate'<br>
/home/jorizci/librerias/OSG_cmake_ndk/osg_rafa/3rdparty/libpng/pngread.c:167: error: undefined reference to 'inflateInit_'<br>
/home/jorizci/librerias/OSG_cmake_ndk/osg_rafa/3rdparty/libpng/pngwutil.c:258: error: undefined reference to 'deflate'<br>
/home/jorizci/librerias/OSG_cmake_ndk/osg_rafa/3rdparty/libpng/pngwutil.c:314: error: undefined reference to 'deflate'<br>
/home/jorizci/librerias/OSG_cmake_ndk/osg_rafa/3rdparty/libpng/pngwutil.c:314: error: undefined reference to 'deflate'<br>
/home/jorizci/librerias/OSG_cmake_ndk/osg_rafa/3rdparty/libpng/pngwutil.c:407: error: undefined reference to 'deflateReset'<br>
/home/jorizci/librerias/OSG_cmake_ndk/osg_rafa/3rdparty/libpng/pngwutil.c:1920: error: undefined reference to 'deflateReset'<br>
/home/jorizci/librerias/OSG_cmake_ndk/osg_rafa/3rdparty/libpng/pngwutil.c:569: error: undefined reference to 'deflateInit2_'<br>
/home/jorizci/librerias/OSG_cmake_ndk/osg_rafa/3rdparty/libpng/pngpread.c:870: error: undefined reference to 'inflate'<br>
/home/jorizci/librerias/OSG_cmake_ndk/osg_rafa/3rdparty/libpng/pngpread.c:1459: error: undefined reference to 'inflateReset'<br>
collect2: error: ld returned 1 exit status<br>
make: *** [obj/local/armeabi/libjniosg-gles1.so] Error 1<br>
<br>
Cheers,<br>
Christian<br>
<br>
------------------<br>
Read this topic online here:<br>
<a href="http://forum.openscenegraph.org/viewtopic.php?p=64723#64723" rel="noreferrer" target="_blank">http://forum.openscenegraph.org/viewtopic.php?p=64723#64723</a><br>
<br>
<br>
<br>
<br>
<br>
_______________________________________________<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>