Hi all, unfortunately the OSG server seems to be down, so hopefully I'm posting this on the right mailing list...
For my projects I'm using OpenSceneGraph with great pleasure. Recently I had to switch from Visual Studio (VS) to MinGW because of some incompatible libraries. Compiling OpenSceneGraph in MSYS/MinGW is a bit less trivial compared to VS. Since there isn't a lot of information online available (this page seem to be a bit outdated: http://www.openscenegraph.org/projects/osg/wiki/Support/PlatformSpecifics/Mingw) I created a brief tutorial (based on trial and error) to help fellow OSG users. It should work for the stable release (2.8.x) and the development release (2.9.x): http://www.multigesture.net/articles/how-to-compile-openscenegraph-2-x-using-mingw/ Stable and Development binaries can also be found on the page. While creating this tutorial I found some minor issues (In the tutorial I explain how to patch it): (1) osgPlugin: jpeg Problem: boolean is not defined Solution: - Open C:\OpenSceneGraphSrc\OpenSceneGraph-2.8.2\src\osgPlugins\jpeg\ReaderWriterJPEG.cpp - Goto line 78 and add: /* Expanded data source object for stdio input */ typedef int boolean; #define FALSE 0 #define TRUE 1 (2) osgPlugin: freetype Problem: It can't find the freetype header files Solution: - In MinGW you will need to use freetype2/ instead of freetype/ as directory - Open C:\OpenSceneGraph\OpenSceneGraph-2.8.2\src\osgPlugins\freetype\FreeTypeFont3D.cpp - Change lines 32 and 33: #include <freetype/ftoutln.h> #include <freetype/ftbbox.h> to #include <freetype2/ftoutln.h> #include <freetype2/ftbbox.h> (3) osgPlugin: curl Including libcurl (include / lib) doesn't seem to be enough to build this project and will result in linking errors. It probably needs to link against libws2_32.a and libwinmm.a . I know how to link using a Makefile, but I got no clue on how to fix it in the CMake files... Hopefully this helps other users as well :) Kind Regards, - Laurence Muller
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

