Problem 1611

Summary: Error compiling g4py due to G4OpenGLImmediateX
Product: Environments Reporter: Nicola Mori <mori>
Component: g4pyAssignee: Koichi Murakami <Koichi.Murakami>
Status: REOPENED WONTFIX    
Severity: normal CC: mori
Priority: P5    
Version: 9.6   
Hardware: PC   
OS: Linux   
Attachments: CMake cache file for Geant4 build

Description Nicola Mori 2014-04-15 17:59:58 CEST
Created attachment 263 [details]
CMake cache file for Geant4 build

On my system the build of the visualization module of g4py fails with this error:

make[2]: Entering directory '/home/mori/software/source/geant4.9.6.p03/environments/g4py/source/visualization'
Compiling pyG4OpenGLImmediateX.cc ...
pyG4OpenGLImmediateX.cc:36:33: fatal error: G4OpenGLImmediateX.hh: No such file or directory
 #include "G4OpenGLImmediateX.hh"
                                 ^
compilation terminated.
/home/mori/software/source/geant4.9.6.p03/environments/g4py/config/sys/linuxx8664gcc.gmk:45: recipe for target 'pyG4OpenGLImmediateX.o' failed
make[2]: *** [pyG4OpenGLImmediateX.o] Error 1

I have compiled and installed Geant4.9.6.p03 using CMake (see the attached cache file for the details of the configuration). Then I configured g4py with:

./configure linux64 --prefix=/home/mori/software/install/GEANT4_9.6.p03 --with-g4install-dir=/home/mori/software/install/GEANT4_9.6.p03 --with-xercesc-incdir=/home/mori/software/install/XERCESC_3.1.1/include/ --with-xercesc-libdir=/home/mori/software/install/XERCESC_3.1.1/lib/ --with-python-incdir=/home/mori/software/install/PYTHON_2.7.6/include/python2.7 --with-python-libdir=/home/mori/software/install/PYTHON_2.7.6/lib/python2.7 --with-boost-incdir=/home/mori/software/install/BOOST_1.55.0/include/ --with-boost-libdir=/home/mori/software/install/BOOST_1.55.0/lib/

I see that I have no G4OpenGLImmediateX.hh in my installation folder. Instead I have only these "Immediate" headers:

G4OpenGLImmediateQt.hh
G4OpenGLImmediateQtViewer.hh
G4OpenGLImmediateSceneHandler.hh
G4OpenGLImmediateViewer.hh
Comment 1 Koichi Murakami 2014-05-26 06:23:59 CEST
you did not cmake with -DGEANT4_USE_OPENGL_X11=ON, that is the reason the file is missing. g4py CMake build can mange better these user configurations in the versin 10.0 release.
Comment 2 Nicola Mori 2014-07-22 14:13:02 CEST
I still get the same error with 10.00.p02. I don't understand why the fact that the build of g4py fails when Geant has not been compiled with -DGEANT4_USE_OPENGL_X11=ON is not considered a bug...