Message: Re: Trouble with obtaining an open GL Window Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

More Re: Trouble with obtaining an open GL Window 

Forum: Installation and Configuration
Re: Question Trouble with obtaining an open GL Window (Thomas Eden)
Re: None Re: Trouble with obtaining an open GL Window (John Allison)
Re: None Re: Trouble with obtaining an open GL Window (Thomas Eden)
Re: More Re: Trouble with obtaining an open GL Window (Gabriele Cosmo)
Date: 21 May, 2010
From: Thomas Eden <Thomas Eden>

On Thu, 20 May 2010 07:26:09 GMT, Gabriele Cosmo wrote:
> Hi Thomas,
> 
> this issue should be solved in the more recent versions of Geant4 and
> Configure should correctly detect you're running on a 64-bit system,
> setting your environment accordingly.
> I suggest you to upgrade your Geant4 installation for the support of
> new hardware and compilers you may be using.
> In 9.0 you can manually set in your environment the variables for the
> path of GL and X11 libraries, i.e.:
>   export OGLLIBS = "-L/usr/lib64 -lGLU -lGL"
>   export X11LIBS = "-L/usr/X11R6/lib64  -lXmu -lXt -lXext -lX11 -lSM -lICE"
> and those will be taken into account.
> 
> Cheers, Gabriele
> 
> -----------------
> On Thu, 20 May 2010 03:44:43 GMT, Thomas Eden wrote:
> > Thanks John for replying to my message. If I don't specify new
> > environment variable paths to /usr/lib64 on my machine, then
> > geant4/config can not find what it needs for a successful build. As I
> > stated in my original message, I am able to make a successful build and
> > executable image.
> > 
> > One thing I do remember from running './Configure -build' is that when I
> > answer 'y' to the Open GL question in the SLAC installation guide, it
> > does say it finds what it needs in /usr, regardless of reassigning new
> > environment variable paths. That seemed a bit strange to me.
> > 
> > I have a couple of questions for you: 1) In
> > '~geant4/geant4.9.0/config/sys/Linux-g++.gmk', environment variable
> > paths are defined there for X11 and Open GL libraries. Do I need to
> > change anything in this make file?
> > 
> > 2) Because my machine is 64-bit, I think all 32-bit libraries for X11
> > and Open GL are deemed useless, is that a fair assumption?
> > 
> > I hope I have made myself clear to you. If you need anything from me to
> > help in understanding this problem, please don't hesitate to ask.
> > 
> > Thanks, Tom Eden
> > 
> > On Wed, 19 May 2010 15:10:54 GMT, John Allison wrote:
> > 
> > > What happens if you let geant4/Configure find OpenGL?
> 

Thanks for your reply Gabriele.

My problems still persist. I am still unable to open after running the 'A01app' using '/vis/open OGLIX'. The message is:

G4OpenGLViewer::G4OpenGLViewer couldn't create context.
Window name: viewer-0 (OpenGLImmediateX)
X Error of failed request:  BadMatch (invalid parameter attributes)
  Major opcode of failed request:  1 (X_CreateWindow)
  Serial number of failed request:  27
  Current serial number in output stream:  34

I manually set the following environment variables prior to building Geant 4.9.3:

export OGLHOME="/usr" export OGLFLAGS="-I$OGLHOME/include" export OGLLIBS="-L$OGLHOME/lib64 -lGLU -lGL"

export X11FLAGS="-I/usr/include/X11/extensions -I/usr/include/X11" export X11LIBS="-L/usr/lib64 -lXmu -lXt -lXext -lX11 -lXi -lSM -lICE"

One question I have is does the include files in $OGLFLAGS system dependent, i.e., 32 bit versus 64 bit? I know the libraries are, but I am not sure about the header files.

If I do a 'ldd A01app', I get the following dependencies for the viewer libraries:

libG4global.so => /home/Tom/geant4/geant4.9.3/lib/Linux-g++/libG4global.so (0x00002b234d012000)
        libGLU.so.1 => /usr/lib64/libGLU.so.1 (0x00000039e2800000)
        libGL.so.1 => /usr/lib64/libGL.so.1 (0x00000039e7800000)
        libXmu.so.6 => /usr/lib64/libXmu.so.6 (0x00000039e3800000)
        libXt.so.6 => /usr/lib64/libXt.so.6 (0x00000039f3200000)
        libXext.so.6 => /usr/lib64/libXext.so.6 (0x00000039e0000000)
        libX11.so.6 => /usr/lib64/libX11.so.6 (0x00000039df800000)
        libXi.so.6 => /usr/lib64/libXi.so.6 (0x00000039e6800000)
        libSM.so.6 => /usr/lib64/libSM.so.6 (0x00000039e3c00000)
        libICE.so.6 => /usr/lib64/libICE.so.6 (0x00000039e4000000)
        libCLHEP-2.0.4.5.so => /home/Tom/CLHEP/lib/libCLHEP-2.0.4.5.so (0x00002b234d271000)
        libz.so.1 => /usr/lib64/libz.so.1 (0x00000039df000000)
        libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x00000039e4800000)
        libm.so.6 => /lib64/libm.so.6 (0x00000039de400000)
        libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00002b234d5c7000)
        libc.so.6 => /lib64/libc.so.6 (0x00000039de000000)
        libGLcore.so.1 => /usr/lib64/libGLcore.so.1 (0x0000003825200000)
        libnvidia-tls.so.1 => /usr/lib64/tls/libnvidia-tls.so.1 (0x0000003825000000)
        libdl.so.2 => /lib64/libdl.so.2 (0x00000039de800000)
        libXau.so.6 => /usr/lib64/libXau.so.6 (0x00000039dfc00000)
        libXdmcp.so.6 => /usr/lib64/libXdmcp.so.6 (0x00000039df400000)
        /lib64/ld-linux-x86-64.so.2 (0x00000039ddc00000)

From an old posting on this forum, if OpenGL is running, I should be able to run 'glxgears':

ldd /usr/bin/glxgears
        libGL.so.1 => /usr/lib64/libGL.so.1 (0x00000039e7800000)
        libc.so.6 => /lib64/libc.so.6 (0x00000039de000000)
        libX11.so.6 => /usr/lib64/libX11.so.6 (0x00000039df800000)
        libm.so.6 => /lib64/libm.so.6 (0x00000039de400000)
        libGLcore.so.1 => /usr/lib64/libGLcore.so.1 (0x0000003825200000)
        libnvidia-tls.so.1 => /usr/lib64/tls/libnvidia-tls.so.1 (0x0000003825000000)
        libXext.so.6 => /usr/lib64/libXext.so.6 (0x00000039e0000000)
        libdl.so.2 => /lib64/libdl.so.2 (0x00000039de800000)
        /lib64/ld-linux-x86-64.so.2 (0x00000039ddc00000)
        libXau.so.6 => /usr/lib64/libXau.so.6 (0x00000039dfc00000)
        libXdmcp.so.6 => /usr/lib64/libXdmcp.so.6 (0x00000039df400000)
[Tom@hydra Linux-g++]$ glxgears

Hopefully, you can recognize something from this message. If you need more information, please let me know.

Regards, Thomas Eden Error: glXCreateContext failed

 Add Message Add Message
to: "Re: Trouble with obtaining an open GL Window"

 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 ]