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