Message: G4 OpenGL module compilation broken on Linux Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question G4 OpenGL module compilation broken on Linux 

Forum: Installation and Configuration
Date: 16 Aug, 2016
From: Jeremy McCormick <Jeremy McCormick>


The compilation of the OpenGL submodule is not working for me in the Linux environment.

It gets to this point and then prints many errors such as the following....

[100%] Building CXX object source/visualization/OpenGL/CMakeFiles/G4OpenGL.dir/src/
In file included from /work/scratch/geant4.10.02.p01/source/visualization/OpenGL/include/G4OpenGLImmediateViewer.hh:40:0,
                 from /work/scratch/geant4.10.02.p01/source/visualization/OpenGL/src/
/work/scratch/geant4.10.02.p01/source/visualization/OpenGL/include/G4OpenGLViewer.hh:155:25: error: 'GLdouble' has not been declared
   virtual G4String Pick(GLdouble x, GLdouble y);                          

The errors seem to indicate that it is not properly including one or more of the basic OpenGL header files.

This is using

gcc (GCC) 5.2.1
cmake version 3.6.1

[jeremym@ppa-jeremym-l build]$ cat /etc/redhat-release
Red Hat Enterprise Linux Workstation release 6.4 (Santiago)

I'm using a devtoolset which sets up a different compiler than the default (but that shouldn't matter).

I confirmed that the standard GL and GLX headers are installed in 


This has worked for me in the past, and I think something has changed in the Geant4 build system here in more recent versions so that this is no longer working in my environment or somehow my GL environment is not compatible with Geant4.

Any tips for trying to sort this out?



Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 Idea: Re: G4 OpenGL module compilation broken on Linux   (Jeremy McCormick - 16 Aug, 2016)
2 Note: Re: G4 OpenGL module compilation broken on Linux   (Ben Morgan - 19 Aug, 2016)
 Add Message Add Message
to: "G4 OpenGL module compilation broken on Linux"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews

[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]