[osg-users] Android osgPlugins

Rafa Gaitan rafa.gaitan at gmail.com
Tue Aug 11 06:56:01 PDT 2015


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 <christian-kehl at web.de>
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 at 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
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20150811/5a038bc9/attachment-0002.htm>


More information about the osg-users mailing list