Hi Laurence,

Thanks for the writing the tutorial.  I'm with Jean-Sebastien in that
the best solution would be to get changes into svn/trunk that make the
OSG build out of the box with the present version of MingGW.  Please
note that others before you have been building under MinGW and don't
recall any of them reporting these particular issues so I'd guess that
MinGW has been evolving, or perhaps that didn't attempt to compile the
components you have.

Which version of MinGW are you using?  How are you obtaining the
dependencies? What version are the dependencies?   Are they different
versions than you were using in VS?

The next step forward would to be get to the bottom of why these
changes are required, and then seek to resolve these external
dependencies or change the OSG's build and source files to fix things
in a way that builds correctly across all targets without
modifications.  CMake itself can certainly help us out a lot with
providing paths and link lines for each dependency and target
platform.  If we can we should strive to put the differences into the
build system rather than the source files.

Cheers,
Robert.

On Mon, Jan 11, 2010 at 9:46 PM, Laurence Muller
<[email protected]> wrote:
> 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
>
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to