Message: Re: Linking error while running example A01 : Please help Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: Linking error while running example A01 : Please help 

Forum: Installation and Configuration
Re: None Linking error while running example A01 : Please help (sonal ambwani)
Date: 11 Apr, 2008
From: Ben Morgan <Ben Morgan>

Hi Sonal,

This is an issue with the linker picking up 32bit libraries in /usr/X11R6/lib rather than the 64bit versions in /usr/X11R6/lib64. There are two solutions, the first being to set the following environment variables

X11LIBS (set as->) -L/usr/X11R6/lib -lXmu -lXt -lXext -lX11 -lSM -lICE

OGLLIBS (set as->) -L${OGLHOME}/lib64 -lGLU -lGL

I've used the OGLHOME variable there (so OGLLIBS should be set -after- all the other Geant4 environment variables are set), although you could also just find where the 64bit libGL.so, libGLU.so libraries are located on your system (probably /usr/X11R6/lib64 or /usr/lib64) and put the full path in.

These variables are used by the $G4INSTALL/config/sys/Linux-g++.gmk file, so your second option would be to edit the default values of X11LIBS and OGLLIBS in this file. I'd suggest the environment variable route first to test things, and use the edit if things work to make the change more permanent and so that you don't have to worry about setting the environment variables.

Hope that helps.

Ben.

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

1 None: Re: Linking error while running example A01 : Please help   (Ben Morgan - 11 Apr, 2008)
 Add Message Add Message
to: "Re: Linking error while running example A01 : Please help"

 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 ]