24 июля 2014 г., в 0:19, Paul <[email protected]> написал(а):

> I can build OSG with MinGW/MSys.
> I get link errors when trying to compile an app against it though.
> Any ideas?
> 
> C:\Apps\Test\win32\mingw>make
> Linking CXX executable ..\bin\Test.exe
> C:\Libs\OpenSceneGraph-3.3.0\win32\mingw\lib\libosgDB.a(Registry.obj
> ):Registry.cpp:(.text+0x186e): undefined reference to `osgGetVersion'
> C:\Libs\OpenSceneGraph-3.3.0\win32\mingw\lib\libosgDB.a(Registry.obj
> ):Registry.cpp:(.text+0x7f32): undefined reference to 
> `osg::KdTreeBuilder::KdTre
> eBuilder()'
> c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe: 
> C:\Libs\OpenSceneGraph-3.3.0\win32\mingw\lib\libosgDB.a(Registry.obj): bad rel
> oc address 0x1 in section 
> `.text$_ZNK5osgDB7Options11libraryNameEv[__ZNK5osgDB7O
> ptions11libraryNameEv]'
> collect2.exe: error: ld returned 1 exit status
> make[2]: *** [../bin/Test.exe] Error 1
> make[1]: *** [CMakeFiles/Test.dir/all] Error 2
> make: *** [all] Error 2
> 
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=60419#60419
> 
> 
Paul, try MSYS2:
http://msys2.github.io
https://sourceforge.net/p/msys2/wiki/MSYS2%20installation/

It based on recent cygwin sources and have package manager ported from Arch 
Linux.
We use mingw-w64 toolchains as it is more completeness then mingw.org 
toolchains.
We have large repository with mingw-w64 packages including OpenSceneGraph.

Regards,
Alexey.
> 
> 
> 
> _______________________________________________
> 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