Hi, In on vacation right now, and I cannot check properly why the 3rd party libs don't link..
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? Regards, Rafa El mar., 11 de agosto de 2015 15:47, Christian Kehl <[email protected]> escribió: > 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). > > The new error does not find the base functions of the pre-compiled 3rd > party libraries: > > christian@PROMETHEUS:/media/christian/DATA/osgAndroid/org.openscenegraph.android$ > ${ANDROID_NDK}/ndk-build > [armeabi] Compile++ thumb: jniosg-gles1 <= JNIosgViewer.cpp > [armeabi] Compile++ thumb: jniosg-gles1 <= JNIosg.cpp > [armeabi] Compile++ thumb: jniosg-gles1 <= JNIosgDB.cpp > [armeabi] Compile++ thumb: jniosg-gles1 <= JNIosgUtil.cpp > [armeabi] Compile++ thumb: jniosg-gles1 <= JNIosgGA.cpp > [armeabi] Compile++ thumb: jniosg-gles1 <= JNIUtils.cpp > [armeabi] Compile++ thumb: jniosg-gles1 <= MultiViewNode.cpp > [armeabi] Compile++ thumb: jniosg-gles1 <= GLES2ShaderGenVisitor.cpp > [armeabi] SharedLibrary : libjniosg-gles1.so > /home/jorizci/librerias/OSG_cmake_ndk/osg_rafa/3rdparty/libpng/png.c:634: > error: undefined reference to 'inflateReset' > /home/jorizci/librerias/OSG_cmake_ndk/osg_rafa/3rdparty/libpng/png.c:140: > error: undefined reference to 'crc32' > /home/jorizci/librerias/OSG_cmake_ndk/osg_rafa/3rdparty/libpng/png.c:114: > error: undefined reference to 'crc32' > /home/jorizci/librerias/OSG_cmake_ndk/osg_rafa/3rdparty/libpng/pngwrite.c:991: > error: undefined reference to 'deflateEnd' > /home/jorizci/librerias/OSG_cmake_ndk/osg_rafa/3rdparty/libpng/pngwrite.c:866: > error: undefined reference to 'deflate' > /home/jorizci/librerias/OSG_cmake_ndk/osg_rafa/3rdparty/libpng/pngrutil.c:223: > error: undefined reference to 'inflate' > /home/jorizci/librerias/OSG_cmake_ndk/osg_rafa/3rdparty/libpng/pngrutil.c:247: > error: undefined reference to 'inflateReset' > /home/jorizci/librerias/OSG_cmake_ndk/osg_rafa/3rdparty/libpng/pngrutil.c:3133: > error: undefined reference to 'inflate' > /home/jorizci/librerias/OSG_cmake_ndk/osg_rafa/3rdparty/libpng/pngrutil.c:3162: > error: undefined reference to 'inflateReset' > /home/jorizci/librerias/OSG_cmake_ndk/osg_rafa/3rdparty/libpng/pngread.c:1146: > error: undefined reference to 'inflateEnd' > /home/jorizci/librerias/OSG_cmake_ndk/osg_rafa/3rdparty/libpng/pngread.c:615: > error: undefined reference to 'inflate' > /home/jorizci/librerias/OSG_cmake_ndk/osg_rafa/3rdparty/libpng/pngread.c:167: > error: undefined reference to 'inflateInit_' > /home/jorizci/librerias/OSG_cmake_ndk/osg_rafa/3rdparty/libpng/pngwutil.c:258: > error: undefined reference to 'deflate' > /home/jorizci/librerias/OSG_cmake_ndk/osg_rafa/3rdparty/libpng/pngwutil.c:314: > error: undefined reference to 'deflate' > /home/jorizci/librerias/OSG_cmake_ndk/osg_rafa/3rdparty/libpng/pngwutil.c:314: > error: undefined reference to 'deflate' > /home/jorizci/librerias/OSG_cmake_ndk/osg_rafa/3rdparty/libpng/pngwutil.c:407: > error: undefined reference to 'deflateReset' > /home/jorizci/librerias/OSG_cmake_ndk/osg_rafa/3rdparty/libpng/pngwutil.c:1920: > error: undefined reference to 'deflateReset' > /home/jorizci/librerias/OSG_cmake_ndk/osg_rafa/3rdparty/libpng/pngwutil.c:569: > error: undefined reference to 'deflateInit2_' > /home/jorizci/librerias/OSG_cmake_ndk/osg_rafa/3rdparty/libpng/pngpread.c:870: > error: undefined reference to 'inflate' > /home/jorizci/librerias/OSG_cmake_ndk/osg_rafa/3rdparty/libpng/pngpread.c:1459: > error: undefined reference to 'inflateReset' > collect2: error: ld returned 1 exit status > make: *** [obj/local/armeabi/libjniosg-gles1.so] Error 1 > > Cheers, > Christian > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=64723#64723 > > > > > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org >
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

