Hi Jean-Sébastien & Robert,

thanks for the feedback!

@Robert:
I've actually written a tutorial that describes how to setup a c/c++
development environment which I'm using to compile OpenSceneGraph. It also
includes the version numbers.
http://www.multigesture.net/articles/how-to-install-mingw-msys-and-eclipse-on-windows/

@Jean-S

(1) libjpeg
That's strange, I don't know if mingw32 on ubuntu is using the same files as
on windows. I'm currently not using the offical verison of MinGW (latest
verison 5.1.6, http://sourceforge.net/projects/mingw/files/) because it is
using a GCC compiler version 3.x. Instead I'm using a build from
http://nuwen.net/mingw.html#download (currently using 4.3) which is bundled
with a more recent GCC compiler (version 4.3.3). The package also includes
libjpeg version 7.

(2) freetype
While this indeed solve the issue without modifying the code, it moves the
problem to the shell. Since users still need to manually type this fix...

(3) curl
That should probably do the trick, I'll see if I can make it work.

Hopefully I have some more time next week to investigate the possible fixes
and submit a patch.

Kind regards,
- Laurence

---

From: "Jean-Sébastien Guay" <[email protected]>
To: OpenSceneGraph Users <[email protected]>
Date: Wed, 13 Jan 2010 01:57:04 -0500
Subject: Re: [osg-users] MinGW and OpenSceneGraph
Hi Laurence,

I investigated your issues a bit more. Here is what I found:

 (1) osgPlugin: jpeg
> Problem: boolean is not defined
>

This comes from the fact that the version of the jpeg headers included in
MinGW defines JPEG_boolean (and JPEG_FALSE/JPEG_TRUE) instead of boolean (
and FALSE/TRUE). I think this is a good idea as it avoids possible name
clashes, but in this case it causes problems.

What I find weird is that I looked at both the headers in the Win32 VC8
dependencies package (which is fairly old) and the headers on an up-to-date
Ubuntu install, and both define straight boolean (not JPEG_boolean as the
MinGW header defines). In both cases, the jmorecfg.h header states:

Copyright (C) 1991-1997, Thomas G. Lane.

The MinGW header states:

Copyright (C) 1991-1997, Thomas G. Lane.
Modified 1997-2009 by Guido Vollbeding.

So it would seem the MinGW header is more recent, or just that it includes
changes that were not integrated into the baseline? That seems a bit weird
to me, that the MinGW header would be more recent than what's on an
up-to-date Ubuntu install...

Anyways, I'll see if I can code up a solution that will allow us to compile
in both cases.

 (2) osgPlugin: freetype
> Problem: It can't find the freetype header files
>

Actually, you could fix this without any code changes:
1. open an msys prompt
2. cd /mingw/include
3. ln -s freetype2 freetype

That way the include files will be found.

 (3) osgPlugin: curl
>

As I said, the required libraries are added at src/osgPlugins/curl/
CMakeLists.txt inside an IF(WIN32) which works for VC++ builds. Seems the
Msys build doesn't go into that IF, so I'll look into adding the proper
check (probably "|| MINGW" or something like that. That should take care of
it.

Stay tuned...

J-S
-- 
______________________________________________________
Jean-Sebastien Guay    [email protected]
                              http://www.cm-labs.com/
                       http://whitestar02.webhop.org/
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to