Hi Alberto,

On 3/27/07, Alberto Luaces <[EMAIL PROTECTED]> wrote:
Sorry for the broken Makefile. I see that you checked the fix for CMake in
rev. 6403, but I can't find where did you check the changes for the old build
system.

Curious, I did modify the file, but must have missed checking it in.
For testing of the CMake build I'm been working with GNUmakefiles
removed from my tree so must have deleted it before checking it in.

I've checked the file back out and remodifed and checked it in,
hopefully this should fix things.

I'm starting to think it's just luck that ESRIShape.cpp compiles on Unix, as
according to Kubuntu's read() man page, the function is POSIX only and
defined in <unistd.h>, not <stdio.h>. That would explain why MSVC and Mingw
have a special header file for it, <io.h>.

If we however want to make minimal changes, you could use the file attached,
which only deals with the Cygwin's special case.

Other than that, OSG compiles fine. Different thing is that all the OSG
programs compiled (examples, viewer...) doesn't show any window and exit
inmediatly, but that is another story. I will revert my gcc version from
3.4.4 to an older one and test again.

Thanks for the tracking this down.  I have changed the ESRIShape.cpp
file to have the following:

#if defined(_MSC_VER) || defined(__MINGW32__)
   #include <stdio.h>
   #include <io.h>
#else
   #include <unistd.h>
#endif

This compiles fine under Linux and should work fine for you and others
unix style platforms as well.  This is now checked in.

Does the rest of the OSG compile fine?  Hows about execution?

Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to