Print

Print


I would guess that CMake has a more intelligent macro to get the X11 directory and that the current set of Makefiles have fallen behind this.  I should probably look at using CMake in the near future for the G4 build, but it is a major reengineering of the Geant4 portion of SimDist.  Perhaps you can find where this is hard-coded in the Makefiles and change it manually?  Not sure...

You may also turn off visualization entirely, which I realize is not a long-term solution but may at least get you a working batch build.

I'll look into it further and let you know.

--Jeremy

-----Original Message-----
From: Maurik Holtrop [mailto:[log in to unmask]] 
Sent: Monday, March 04, 2013 7:49 AM
To: McCormick, Jeremy I.; hps-software
Subject: Beyond my debugging capability....

Hi Jeremy,

Rebuilding SimDist to get the newer version on my Mac, OS X 10.8. Mostly worked is CXX=g++  (else gdml does not compile). However, I get a problem with Geant4. The G4 RayTracer stuff does not look in the correct place for X11. It looks in /usr/include/X11, while it should be looking in /usr/X11R6.
The variables appear to be correct though:

> make debuginfo
CLHEP_BASE_DIR=/data/HPSlcsim/Release/SimDist/packages/clhep/v2r1p0_1
CLHEP_INCLUDE_DIR=/data/HPSlcsim/Release/SimDist/packages/clhep/v2r1p0_1/include
CLHEP_LIB_DIR=/data/HPSlcsim/Release/SimDist/packages/clhep/v2r1p0_1/lib
G4INSTALL=/data/HPSlcsim/Release/SimDist/packages/geant4/v9r5p01
G4SYSTEM=Darwin-g++
OGLHOME=/usr/X11R6

You have any clues for me?
My other experience is that wiith "cmake" the new Geant4 compiles quite nicely, but somehow in SimDist something goes different.

Cheers,
	Maurik



Making dependency for file src/G4RayTracerXViewer.cc ...
In file included from src/G4RayTracerXViewer.cc:38:
include/G4RTXScanner.hh:45:22: error: X11/Xlib.h: No such file or directory
include/G4RTXScanner.hh:46:23: error: X11/Xutil.h: No such file or directory Making dependency for file src/G4RTXScanner.cc ...
In file included from src/G4RTXScanner.cc:34:
include/G4RTXScanner.hh:45:22: error: X11/Xlib.h: No such file or directory
include/G4RTXScanner.hh:46:23: error: X11/Xutil.h: No such file or directory
src/G4RTXScanner.cc:41:23: error: X11/Xatom.h: No such file or directory
g++ -Wall -ansi -pedantic -Wno-non-virtual-dtor -Wno-long-long 
g++ -Wwrite-strings -Wpointer-arith -Woverloaded-virtual -pipe -O2 
g++ -DG4OPTIMISE -Iinclude  
g++ -I/data/HPSlcsim/Release/SimDist/packages/clhep/v2r1p0_1/include 
g++ -DG4LIB_USE_GDML 
g++ -I/data/HPSlcsim/Release/SimDist/packages/xerces/v3r1p1/include 
g++ -DG4VERBOSE -DG4_STORE_TRAJECTORY -DG4VIS_BUILD 
g++ -DG4VIS_BUILD_DAWN_DRIVER -DG4VIS_BUILD_OPENGLX_DRIVER 
g++ -DG4VIS_BUILD_OPENGL_DRIVER -DG4VIS_BUILD_RAYTRACERX_DRIVER 
g++ -DG4VIS_BUILD_VRML_DRIVER  -I/usr/include/X11/extensions 
g++ -I/usr/include/X11 -DG4VIS_ALLOC_EXPORT 
g++ -I/data/HPSlcsim/Release/SimDist/packages/geant4/v9r5p01/source/visu
g++ alization/modeling/include 
g++ -I/data/HPSlcsim/Release/SimDist/packages/geant4/v9r5p01/source/visu
g++ alization/management/include 
g++ -I/data/HPSlcsim/Release/SimDist/packages/geant4/v9r5p01/source/grap
g++ hics_reps/include 
g++ -I/data/HPSlcsim/Release/SimDist/packages/geant4/v9r5p01/source/glob
g++ al/management/include 
g++ -I/data/HPSlcsim/Release/SimDist/packages/geant4/v9r5p01/source/glob
g++ al/HEPGeometry/include 
g++ -I/data/HPSlcsim/Release/SimDist/packages/geant4/v9r5p01/source/glob
g++ al/HEPRandom/include 
g++ -I/data/HPSlcsim/Release/SimDist/packages/geant4/v9r5p01/source/geom
g++ etry/management/include 
g++ -I/data/HPSlcsim/Release/SimDist/packages/geant4/v9r5p01/source/geom
g++ etry/navigation/include 
g++ -I/data/HPSlcsim/Release/SimDist/packages/geant4/v9r5p01/source/geom
g++ etry/volumes/include 
g++ -I/data/HPSlcsim/Release/SimDist/packages/geant4/v9r5p01/source/digi
g++ ts_hits/detector/include 
g++ -I/data/HPSlcsim/Release/SimDist/packages/geant4/v9r5p01/source/digi
g++ ts_hits/digits/include 
g++ -I/data/HPSlcsim/Release/SimDist/packages/geant4/v9r5p01/source/inte
g++ rcoms/include 
g++ -I/data/HPSlcsim/Release/SimDist/packages/geant4/v9r5p01/source/even
g++ t/include 
g++ -I/data/HPSlcsim/Release/SimDist/packages/geant4/v9r5p01/source/trac
g++ k/include 
g++ -I/data/HPSlcsim/Release/SimDist/packages/geant4/v9r5p01/source/trac
g++ king/include 
g++ -I/data/HPSlcsim/Release/SimDist/packages/geant4/v9r5p01/source/digi
g++ ts_hits/hits/include 
g++ -I/data/HPSlcsim/Release/SimDist/packages/geant4/v9r5p01/source/part
g++ icles/bosons/include 
g++ -I/data/HPSlcsim/Release/SimDist/packages/geant4/v9r5p01/source/part
g++ icles/management/include 
g++ -I/data/HPSlcsim/Release/SimDist/packages/geant4/v9r5p01/source/proc
g++ esses/management/include 
g++ -I/data/HPSlcsim/Release/SimDist/packages/geant4/v9r5p01/source/proc
g++ esses/cuts/include 
g++ -I/data/HPSlcsim/Release/SimDist/packages/geant4/v9r5p01/source/mate
g++ rials/include -c -o 
g++ /data/HPSlcsim/Release/SimDist/packages/geant4/v9r5p01/tmp/Darwin-g+
g++ +/G4RayTracer/G4RTXScanner.o src/G4RTXScanner.cc
In file included from src/G4RTXScanner.cc:34:
include/G4RTXScanner.hh:45:22: error: X11/Xlib.h: No such file or directory
include/G4RTXScanner.hh:46:23: error: X11/Xutil.h: No such file or directory
src/G4RTXScanner.cc:41:23: error: X11/Xatom.h: No such file or directory In file included from src/G4RTXScanner.cc:34:
include/G4RTXScanner.hh:85: error: ISO C++ forbids declaration of 'Display' with no type
include/G4RTXScanner.hh:85: error: expected ';' before '*' token
include/G4RTXScanner.hh:86: error: 'Window' does not name a type
include/G4RTXScanner.hh:87: error: 'GC' does not name a type
include/G4RTXScanner.hh:88: error: ISO C++ forbids declaration of 'XStandardColormap' with no type
include/G4RTXScanner.hh:88: error: expected ';' before '*' token


########################################################################
Use REPLY-ALL to reply to list

To unsubscribe from the HPS-SOFTWARE list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=HPS-SOFTWARE&A=1