[eq-dev] Equalizer + OpenSceneGraph: Compile problems on Windows

Thomas McGuire thomas.mcguire at student.uni-siegen.de
Sun Jan 4 23:19:36 CET 2009


Hi,

I have successfully managed to combine Equalizer with OpenSceneGraph, and it 
works like a charm. However, it only compiles on Linux, when I tried compiling 
on Windows I got errors I couldn't resolve.

The problem arises even with a very simply testcase program, which only uses 
two #include statements in a single cpp file:

> #include <osgViewer/Viewer>
> #include <eq/client/channel.h>

If I try to compile that, I get the following error:

C:\Program Files\Equalizer-0.6\build\VS2005\Win32\Debug\Headers\GL/glew.h(84) 
: fatal error C1189: #error :  gl.h included before glew.h

Now, if I tried the other way around, like this:

> #include <eq/client/channel.h>
> #include <osgViewer/Viewer>

Now I get the following error:

C:\Program Files\OpenSceneGraph\OpenSceneGraph\include\osg/BufferObject(203) : 
error C2143: Syntaxfehler: Es fehlt ';' vor '->'
(translates to "syntax error: missing ';' in front of '->'")
The source line is: void glGenBuffers (GLsizei n, GLuint *buffers) const;

The problem seem to be the OpenGL includes, especially since they use many 
#defines which seem to mess things up.

I'm using Equalizer 0.6.0 and OpenSceneGraph 2.6.1

Any suggestion on how to fix or work around this problem?

Regards,
Thomas McGuire
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 194 bytes
Desc: This is a digitally signed message part.
Url : http://www.equalizergraphics.com/pipermail/eq-dev/attachments/20090104/a73b8114/attachment.pgp 


More information about the eq-dev mailing list