Message: Why cannot find -lGLU ? Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Why cannot find -lGLU ? 

Keywords: lGLU
Forum: Documentation and Examples
Date: 18 May, 2006
From: chewen <chewen516@hotmail.com>

I install Geant4.6.2p02, CLHEP1.8.1.0 on Fedor core 2 system.
When i am trying to make exampleN02,the problem as follows: 
............
Creating shared library /home/pmo/geant4/tmp/Linux-g++/exampleN02/libexampleN02.so ...
/usr/bin/ld: cannot find -lGLU collect2: ld returned 1 exit status
gmake: *** [/home/pmo/geant4/tmp/Linux-g++/exampleN02/libexampleN02.so] error 1
............
From some advice, I try to make (source/visualization,source/interfaces) again,
but the problem is 
............
include/G4OpenGL.hh:30:19: GL/gl.h: not exit that file
include/G4OpenGL.hh:31:20: GL/glu.h: not exit that file
............
The environment i set as follows:

########### System
export G4SYSTEM=Linux-g++
export G4INSTALL=/home/pmo/geant4
export G4WORKDIR=$G4INSTALL
export G4DEBUG=1
export G4TMP=$G4INSTALL/tmp
export G4LIB=$G4INSTALL/lib
export G4BIN=$G4INSTALL/bin

export CLHEP_BASE_DIR=/home/pmo/CLHEP
export CLHEP_LIB=CLHEP-g++.1.8.1.0

export G4LIB_USE_GRANULAR=1
export G4LIB_BUILD_SHARED=1

export LD_LIBRARY_PATH="$CLHEP_BASE_DIR/lib"
export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:/usr/lib"
export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:/usr/X11R6/lib"
export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:$G4INSTALL/lib/$G4SYSTEM"

PATH=$G4BIN/Linux-g++:${PATH}

########### Physics data
export G4LEDATA=/home/pmo/G4DATA/G4EMLOW2.3
export NeutronHPCrossSections=/home/pmo/G4DATA/G4NDL3.7
export G4LEVELGAMMADATA=/home/pmo/G4DATA/PhotonEvaporation
export G4RADIOACTIVEDATA=/home/pmo/G4DATA/RadiativeDecay

########### INTERFACES
export G4UI_BUILD_TERMINAL_SESSION=1
export G4UI_USE_TERMINAL=1
export G4UI_USE_TCSH=1

########### OpenGL
export G4VIS_BUILD_OPENGL_DRIVER=1
export G4VIS_USE_OPENGL=1
export G4VIS_BUILD_OPENGLX_DRIVER=1
export G4VIS_USE_OPENGLX=1
export OGLHOME=/usr/X11R6
export OGLFLAGS="-I$OGLHOME/include"
export OGLLIBS="-L$OGLHOME/lib -lGLU -lGL"

Like this set has any questions?
And I check the CLHEP again, the following has appeared : 
............
checking for <strstream.h>... no
.............
I did not know whether this is a question. How should I do?

Thank you for attention!

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

1 None: Re: Why cannot find -lGLU ?   (John Allison - 12 Jun, 2006)
 Add Message Add Message
to: "Why cannot find -lGLU ?"

 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 ]