Hi.
It means that zlib.dll (iirc, or zlib.a) doesn't have deflateInit2_,
deflate functions. If you static linked zlib, you should do the opposite.


2014-03-05 22:39 GMT+07:00 Josh Manz <[email protected]>:

> Hi,
>
> I'm having problems building openScengraph on windows 7 using mingw32-make
> 3.82.90
>
> It is resulting in the following error:
>
> Linking CXX shared library ..\..\bin\libosgDB.dll
>
> CMakeFiles\osgDB.dir/objects.a(Compressors.obj):Compressors.cpp:(.text$_ZN14ZLib
> Compressor8compressERSoRKSs[__ZN14ZLibCompressor8compressERSoRKSs]+0x89):
> undefi
> ned reference to `deflateInit2_'
>
> CMakeFiles\osgDB.dir/objects.a(Compressors.obj):Compressors.cpp:(.text$_ZN14ZLib
> Compressor8compressERSoRKSs[__ZN14ZLibCompressor8compressERSoRKSs]+0xf4):
> undefi
> ned reference to `deflate'
> c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe:
> CMakeFiles
> \osgDB.dir/objects.a(Compressors.obj): bad reloc address 0xf4 in section
> `.text$
>
> _ZN14ZLibCompressor8compressERSoRKSs[__ZN14ZLibCompressor8compressERSoRKSs]'
> collect2.exe: error: ld returned 1 exit status
> src\osgDB\CMakeFiles\osgDB.dir\build.make:979: recipe for target
> 'bin/libosgDB.d
> ll' failed
> mingw32-make[2]: *** [bin/libosgDB.dll] Error 1
> CMakeFiles\Makefile2:297: recipe for target
> 'src/osgDB/CMakeFiles/osgDB.dir/all'
>  failed
> mingw32-make[1]: *** [src/osgDB/CMakeFiles/osgDB.dir/all] Error 2
> Makefile:115: recipe for target 'all' failed
> mingw32-make: *** [all] Error 2
>
>
>
> Does anyone have any idea as to what the problem might be and how to fix
> it?
>
> ...
>
>
> Thank you!
>
> Cheers,
> Josh
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=58463#58463
>
>
>
>
>
> _______________________________________________
> 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

Reply via email to