Problem 1611 - Error compiling g4py due to G4OpenGLImmediateX
Summary: Error compiling g4py due to G4OpenGLImmediateX
Status: REOPENED WONTFIX
Alias: None
Product: Environments
Classification: Unclassified
Component: g4py (show other problems)
Version: 9.6
Hardware: PC Linux
: P5 normal
Assignee: Koichi Murakami
URL:
Depends on:
Blocks:
 
Reported: 2014-04-15 17:59 CEST by Nicola Mori
Modified: 2014-07-22 14:13 CEST (History)
1 user (show)

See Also:


Attachments
CMake cache file for Geant4 build (74.02 KB, text/plain)
2014-04-15 17:59 CEST, Nicola Mori
Details

Note You need to log in before you can comment on or make changes to this problem.
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...