| Summary: | header files cant be found | ||
|---|---|---|---|
| Product: | Geant4 | Reporter: | slater |
| Component: | visualization/OpenGL | Assignee: | John.Allison |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | P2 | ||
| Version: | 3.2 | ||
| Hardware: | Sun | ||
| OS: | Solaris | ||
|
Description
slater
2001-10-09 14:16:11 CEST
If you want to use OpenGL, you have to tell Geant4 where your OpenGL include files and libraries are. On my machine I have to set: export OGLHOME=/usr/X11R6 (except I don't have to, since on my machine, running RedHat Linux, the OpenGL include files and libraries are in the same place as X11 ones, and asking for OpenGL with G4VIS_BUILD_OPENGLX_DRIVER is enough to trigger the inclusion in the search path). So please find out where your OpenGL include files and libraries are. If you do not have OpenGL on your system, you can use DAWN or VRML, perhaps, or install OpenGL or the free version of it, called Mesa, http://www.mesa3d.org. See http://geant4.kek.jp/~tanaka/GEANT4/g4_vis_gui_linkpage.html, "How to make environments for Geant4 visualization". If they are under the same top directory, then OGLHOME is enough. If they are in separate branches, you might need OGLFLAGS and OGLLIBS. See geant4/config/architecture.gmk, where you will find # ---------------- OpenGL -------------------- # The user can define his own values of OGLFLAGS and OGLLIBS. # OGLFLAGS gives the directory containing include files. # E.g.: OGLFLAGS := -I$(OGLHOME)/include # OGLLIBS gives the libraries. # E.g.: OGLLIBS := -L$(OGLHOME)/lib -lGLU -lGL # Or : OGLLIBS := -L$(OGLHOME)/lib -lMesaGLU -lMesaGL # OGLHOME is often /usr or /usr/local. Or it can point to a special # installation. # If the user does not set his/her own values, system-dependent values # are set below. Most system-dependent code assumes OGLHOME is set. |