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: => /home/Tom/geant4/geant4.9.3/lib/Linux-g++/ (0x00002b234d012000) => /usr/lib64/ (0x00000039e2800000) => /usr/lib64/ (0x00000039e7800000) => /usr/lib64/ (0x00000039e3800000) => /usr/lib64/ (0x00000039f3200000) => /usr/lib64/ (0x00000039e0000000) => /usr/lib64/ (0x00000039df800000) => /usr/lib64/ (0x00000039e6800000) => /usr/lib64/ (0x00000039e3c00000) => /usr/lib64/ (0x00000039e4000000) => /home/Tom/CLHEP/lib/ (0x00002b234d271000) => /usr/lib64/ (0x00000039df000000) => /usr/lib64/ (0x00000039e4800000) => /lib64/ (0x00000039de400000) => /lib64/ (0x00002b234d5c7000) => /lib64/ (0x00000039de000000) => /usr/lib64/ (0x0000003825200000) => /usr/lib64/tls/ (0x0000003825000000) => /lib64/ (0x00000039de800000) => /usr/lib64/ (0x00000039dfc00000) => /usr/lib64/ (0x00000039df400000)
        /lib64/ (0x00000039ddc00000)

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

ldd /usr/bin/glxgears => /usr/lib64/ (0x00000039e7800000) => /lib64/ (0x00000039de000000) => /usr/lib64/ (0x00000039df800000) => /lib64/ (0x00000039de400000) => /usr/lib64/ (0x0000003825200000) => /usr/lib64/tls/ (0x0000003825000000) => /usr/lib64/ (0x00000039e0000000) => /lib64/ (0x00000039de800000)
        /lib64/ (0x00000039ddc00000) => /usr/lib64/ (0x00000039dfc00000) => /usr/lib64/ (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 ]