Re: [osg-users] opengl errors in compiling Openscenegraph 3.1.8 with Qt 5.0.2

2014-02-25 Thread Karim Elessawy
Hi,

Add the folloing in your .pro file

DEFINES += QT_NO_OPENGL

If you are using VS add in, then add QT_NO_OPENGL to your preprocessor defines

Hope this helps

... 

Thank you!

Cheers,
Karim

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=55837#55837





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] opengl errors in compiling Openscenegraph 3.1.8 with Qt 5.0.2

2013-07-31 Thread Lokesh Kumar
Hi,

 
I'm trying to compile openscenegraph-3.1.8 with Qt 5.0.2 using mingw-32 
compiler after configuring with cmake 2.8.11 on windows 7 (basic).

But, in the compilation process i got the following errors :-


Code:
In file included from 
C:/Qt/Qt5.0.2/5.0.2/mingw47_32/include/QtGui/qopengl.h:55:0,
 from C:/Qt/Qt5.0.2/5.0.2/mingw47_32/include/QtOpenGL/qgl.h:47,
 from 
C:/Qt/Qt5.0.2/5.0.2/mingw47_32/include/QtOpenGL/QGLWidget:1,
 from C:/OpenSceneGraph-3.1.8/include/osgQt/GraphicsWindowQt:24,
 from C:\OpenSceneGraph-3.1.8\src\osgQt\GraphicsWindowQt.cpp:15:
C:/Qt/Qt5.0.2/5.0.2/mingw47_32/include/GLES2/gl2.h:38:26: error: conflicting 
declaration 'typedef khronos_intptr_t GLintptr'
In file included from C:/OpenSceneGraph-3.1.8/include/osg/Array:34:0,
 from C:/OpenSceneGraph-3.1.8/include/osg/Uniform:23,
 from C:/OpenSceneGraph-3.1.8/include/osg/StateSet:20,
 from C:/OpenSceneGraph-3.1.8/include/osg/State:18,
 from C:/OpenSceneGraph-3.1.8/include/osg/GraphicsContext:17,
 from 
C:/OpenSceneGraph-3.1.8/include/osgViewer/GraphicsWindow:17,
 from C:/OpenSceneGraph-3.1.8/include/osgQt/GraphicsWindowQt:17,
 from C:\OpenSceneGraph-3.1.8\src\osgQt\GraphicsWindowQt.cpp:15:
C:/OpenSceneGraph-3.1.8/include/osg/BufferObject:47:21: error: 'GLintptr' has a 
previous declaration as 'typedef int GLintptr'
In file included from 
C:/Qt/Qt5.0.2/5.0.2/mingw47_32/include/QtGui/qopengl.h:55:0,
 from C:/Qt/Qt5.0.2/5.0.2/mingw47_32/include/QtOpenGL/qgl.h:47,
 from 
C:/Qt/Qt5.0.2/5.0.2/mingw47_32/include/QtOpenGL/QGLWidget:1,
 from C:/OpenSceneGraph-3.1.8/include/osgQt/GraphicsWindowQt:24,
 from C:\OpenSceneGraph-3.1.8\src\osgQt\GraphicsWindowQt.cpp:15:
C:/Qt/Qt5.0.2/5.0.2/mingw47_32/include/GLES2/gl2.h:39:26: error: conflicting 
declaration 'typedef khronos_ssize_t GLsizeiptr'
In file included from C:/OpenSceneGraph-3.1.8/include/osg/Array:34:0,
 from C:/OpenSceneGraph-3.1.8/include/osg/Uniform:23,
 from C:/OpenSceneGraph-3.1.8/include/osg/StateSet:20,
 from C:/OpenSceneGraph-3.1.8/include/osg/State:18,  
 from C:/OpenSceneGraph-3.1.8/include/osg/GraphicsContext:17,
 from 
C:/OpenSceneGraph-3.1.8/include/osgViewer/GraphicsWindow:17,
 from C:/OpenSceneGraph-3.1.8/include/osgQt/GraphicsWindowQt:17,
 from C:\OpenSceneGraph-3.1.8\src\osgQt\GraphicsWindowQt.cpp:15:
C:/OpenSceneGraph-3.1.8/include/osg/BufferObject:48:21: error: 'GLsizeiptr' has 
a previous declaration as 'typedef int GLsizeiptr'



I searched google as well google regarding these conflicting declaration errors 
on google errors, but didn't find anything. 
Please help me.

Thank you!

Cheers,
Lokesh[/code]

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=55152#55152




Attachments: 
http://forum.openscenegraph.org//files/compilation_errors_935.txt


___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] opengl errors in compiling Openscenegraph 3.1.8 with Qt 5.0.2

2013-07-05 Thread Lokesh
I'm trying to compile openscenegraph-3.1.8 with Qt 5.0.2 using mingw-32
compiler after configuring with cmake 2.8.11 on windows 7 (basic).

But, in the compilation process i got the following errors :-


In file included from
C:/Qt/Qt5.0.2/5.0.2/mingw47_32/include/QtGui/qopengl.h:55:0,
 from C:/Qt/Qt5.0.2/5.0.2/mingw47_32/include/QtOpenGL/qgl.h:47,
 from
C:/Qt/Qt5.0.2/5.0.2/mingw47_32/include/QtOpenGL/QGLWidget:1,
 from C:/OpenSceneGraph-3.1.8/include/osgQt/GraphicsWindowQt:24,
 from C:\OpenSceneGraph-3.1.8\src\osgQt\GraphicsWindowQt.cpp:15:
C:/Qt/Qt5.0.2/5.0.2/mingw47_32/include/GLES2/gl2.h:38:26: error: conflicting
declaration 'typedef khronos_intptr_t GLintptr'
In file included from C:/OpenSceneGraph-3.1.8/include/osg/Array:34:0,
 from C:/OpenSceneGraph-3.1.8/include/osg/Uniform:23,
 from C:/OpenSceneGraph-3.1.8/include/osg/StateSet:20,
 from C:/OpenSceneGraph-3.1.8/include/osg/State:18,
 from C:/OpenSceneGraph-3.1.8/include/osg/GraphicsContext:17,
 from
C:/OpenSceneGraph-3.1.8/include/osgViewer/GraphicsWindow:17,
 from C:/OpenSceneGraph-3.1.8/include/osgQt/GraphicsWindowQt:17,
 from C:\OpenSceneGraph-3.1.8\src\osgQt\GraphicsWindowQt.cpp:15:
C:/OpenSceneGraph-3.1.8/include/osg/BufferObject:47:21: error: 'GLintptr'
has a previous declaration as 'typedef int GLintptr'
In file included from
C:/Qt/Qt5.0.2/5.0.2/mingw47_32/include/QtGui/qopengl.h:55:0,
 from C:/Qt/Qt5.0.2/5.0.2/mingw47_32/include/QtOpenGL/qgl.h:47,
 from
C:/Qt/Qt5.0.2/5.0.2/mingw47_32/include/QtOpenGL/QGLWidget:1,
 from C:/OpenSceneGraph-3.1.8/include/osgQt/GraphicsWindowQt:24,
 from C:\OpenSceneGraph-3.1.8\src\osgQt\GraphicsWindowQt.cpp:15:
C:/Qt/Qt5.0.2/5.0.2/mingw47_32/include/GLES2/gl2.h:39:26: error: conflicting
declaration 'typedef khronos_ssize_t GLsizeiptr'
In file included from C:/OpenSceneGraph-3.1.8/include/osg/Array:34:0,
 from C:/OpenSceneGraph-3.1.8/include/osg/Uniform:23,
 from C:/OpenSceneGraph-3.1.8/include/osg/StateSet:20,
 from C:/OpenSceneGraph-3.1.8/include/osg/State:18,  
 from C:/OpenSceneGraph-3.1.8/include/osg/GraphicsContext:17,
 from
C:/OpenSceneGraph-3.1.8/include/osgViewer/GraphicsWindow:17,
 from C:/OpenSceneGraph-3.1.8/include/osgQt/GraphicsWindowQt:17,
 from C:\OpenSceneGraph-3.1.8\src\osgQt\GraphicsWindowQt.cpp:15:
C:/OpenSceneGraph-3.1.8/include/osg/BufferObject:48:21: error: 'GLsizeiptr'
has a previous declaration as 'typedef int GLsizeiptr'


i googled regarding these conflicting declaration errors, but didn't find
anything. 

Please help me.

Regards
Lokesh


___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] opengl errors in compiling Openscenegraph 3.1.8 with Qt 5.0.2

2013-07-05 Thread Jan Ciger
On Fri, Jul 5, 2013 at 1:47 PM, Lokesh lokeshkumar.2...@msit.in wrote:
 I'm trying to compile openscenegraph-3.1.8 with Qt 5.0.2 using mingw-32
 compiler after configuring with cmake 2.8.11 on windows 7 (basic).

 But, in the compilation process i got the following errors :-

I assume you are not trying to use OpenGL ES with Qt on desktop. In
that case that is likely another occurrence of a Qt bug, where they
expect some things to be #defines instead of typedefs - that breaks
their macros. There were similar issues with other compilers too. Try
the latest Qt 5.1, perhaps it is fixed. If not, you can try building
with Visual Studio Express, for that one I have submitted some fixes.

Regards,

Jan
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] opengl errors in compiling Openscenegraph 3.1.8 with Qt 5.0.2

2013-07-05 Thread Jan Ciger
On Fri, Jul 5, 2013 at 1:47 PM, Lokesh lokeshkumar.2...@msit.in wrote:
 I'm trying to compile openscenegraph-3.1.8 with Qt 5.0.2 using mingw-32
 compiler after configuring with cmake 2.8.11 on windows 7 (basic).

 But, in the compilation process i got the following errors :-

Oh another thing - http://qt-project.org/forums/viewthread/24535
Make sure that you are building against the correct version of Qt -
the one with the -opengl suffix. The normal one has its own minimal
OpenGL ES implementation using Direct3D and causes conflicts when you
try using normal OpenGL.

Regards,

Jan
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org