The current trunk (global revision 50120) of the visualization/OpenGL category, built against the global reference tag geant4-09-04-ref-04 fails to build both via Configure/Make and through CMake when the options to build OpenGL with X11 and Qt are both enabled. This is seen on both: Linux, opensuse 11.3 x86_64, Qt 4.6.3 Mac OS X, Snow Leopard 10.6.7, Qt 4.7 The file causing the problem is G4OpenGLImmediateSceneHandler, which in this case fails with an error [ 98%] Building CXX object source/visualization/OpenGL/CMakeFiles/G4OpenGL.dir/src/G4OpenGLImmediateSceneHandler.cc.o In file included from /usr/include/QtCore/qnamespace.h:45:0, from /usr/include/QtCore/qobjectdefs.h:45, from /usr/include/QtGui/qwindowdefs.h:45, from /usr/include/QtGui/qwidget.h:45, from /usr/include/QtOpenGL/qgl.h:45, from /sandbox/geant4/tags/geant4-09-04-ref-04/source/visualization/OpenGL/include/G4OpenGL.hh:68, from /sandbox/geant4/tags/geant4-09-04-ref-04/source/visualization/OpenGL/include/G4OpenGLBitMapStore.hh:50, from /sandbox/geant4/tags/geant4-09-04-ref-04/source/visualization/OpenGL/include/G4OpenGLSceneHandler.hh:43, from /sandbox/geant4/tags/geant4-09-04-ref-04/source/visualization/OpenGL/include/G4OpenGLImmediateSceneHandler.hh:39, from /sandbox/geant4/tags/geant4-09-04-ref-04/source/visualization/OpenGL/src/G4OpenGLImmediateSceneHandler.cc:45: /usr/include/QtCore/qglobal.h:2067:1: error: redefinition of ‘class QTypeInfo<char>’ /usr/include/QtCore/qglobal.h:2066:1: error: previous definition of ‘class QTypeInfo<char>’ If the OpenGL Qt option is disabled, the build works perfectly. Both options work without problem on both platforms with the category tag opengl-V09-04-00. This leads me to suspect an issue with G4OpenGL.hh Cheers, Ben.
I'm not sure what's the policy adopted by the vis group, but, please note that the main trunk of the repository (i.e. the HEAD) mail well FAIL to compile, as only TAGGED versions (proposed to testing and eventually successful) of the various modules are supposed to be used. This is in general true for all categories.
Resolved as of tag vis-V09-04-05 Tested on Linux and Mac as in previous comments, no observed issues.