See patches in my repo: https://github.com/Alexpux/MINGW-packages/tree/master/mingw-w64-osgocean-svn
Regards, Alexey. 10 июля 2014 г., в 19:08, Dario Minieri <para...@cheapnet.it> написал(а): > Hi, > > I'm trying to compile osgOcean lib and examples under windows with mingw32. > The library compile fine but I have a link fail for exe example. The error is > the next: > > Linking CXX executable ../../bin/oceanExample.exe > CMakeFiles/oceanExample.dir/objects.a(Scene.cpp.obj):Scene.cpp:(.text+0xb34): > undefined reference to `osgOcean::Cylinder::setColor(osg::Vec4f const&)' > CMakeFiles/oceanExample.dir/objects.a(Scene.cpp.obj):Scene.cpp:(.text$_ZN8osgOcean10OceanScene16setUnderwaterFogEfRKN3osg5Vec4fE[__ZN8osgOcean10OceanScene16setUnderwaterFogEfRKN3osg5Vec4fE]+0x4a): > undefined reference to `osgOcean::Cylinder::setColor(osg::Vec4f const&)' > c:/msys/1.0/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.8.2/../../../../i686-w64-mingw32/bin/ld.exe: > CMakeFiles/oceanExample.dir/objects.a(Scene.cpp.obj): bad reloc address 0x4a > in section > `.text$_ZN8osgOcean10OceanScene16setUnderwaterFogEfRKN3osg5Vec4fE[__ZN8osgOcean10OceanScene16setUnderwaterFogEfRKN3osg5Vec4fE]' > collect2.exe: error: ld returned 1 exit status > make[2]: *** [bin/oceanExample.exe] Error 1 > make[1]: *** [src/oceanExample/CMakeFiles/oceanExample.dir/all] Error 2 > make: *** [all] Error 2 > > I've tried various CMake mod without success, I have enabled the DYNAMIC base > option also without success. Any ideas? > > Thank you! > > Cheers, > Dario > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=60239#60239 > > > > > > _______________________________________________ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org