| Summary: | Snow Leopard and geant4 crash at run time | ||
|---|---|---|---|
| Product: | Geant4 | Reporter: | garnier |
| Component: | config | Assignee: | garnier |
| Status: | RESOLVED FIXED | ||
| Severity: | major | ||
| Priority: | P5 | ||
| Version: | other | ||
| Hardware: | Apple | ||
| OS: | Mac OS X | ||
|
Description
garnier
2010-07-29 17:13:46 CEST
This problem could occurs with
- OpenGL AND MacOsX snow leopard (and after) versions.
- All Geant4 versions
The fact is it does not link with correct OpenGL libraries.
You have to change *one* line in /config/sys/Darwin-g++.gmk file :
- Go in "config/sys/Darwin-g++.gmk
- around line 60, you will find :
_____________________________
ifndef OGLLIBS
ifeq ($(shell uname -r | sed 's/\([0-9]*\).[0-9]*.[0-9]*/\1/'),9)
# the following lines are for building on MacOSX 10.5 "Leopard"
OGLLIBS := $(shell test -f /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib && echo "-L/usr/X11R6/lib -lGLU -lGL -Wl,-dylib_file,/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib")
else
OGLLIBS := -L$(OGLHOME)/lib -lGLU -lGL <-----LINE TO MODIFY !!!!
endif
endif
_____________________________
- change the line :
OGLLIBS := -L$(OGLHOME)/lib -lGLU -lGL <-----LINE TO MODIFY !!!!
By :
OGLLIBS := -F/System/Library/Frameworks/ -framework OpenGL -framework AGL
- go in /source/visualization/OpenGL;
- make clean; make
- go in your prog folder
- make clean; make
Thanks,
Laurent
|