Problem 1291

Summary: GEANT4_USE_SYSTEM_EXPAT is not documented
Product: Documentation Reporter: Tom Roberts <tjrob>
Component: Installation GuideAssignee: Ben Morgan <Ben.Morgan>
Status: CLOSED FIXED    
Severity: normal    
Priority: P5    
Version: 9.5   
Hardware: All   
OS: All   

Description Tom Roberts 2012-02-24 18:49:32 CET
The cmake variable GEANT4_USE_SYSTEM_EXPAT is not documented. It must be set to ON in order to build with the Coin3D visualization (and coin's similar --enable-system-expat must be given to its configure script). Both Geant4 and Coin3D use the expat library, both contain a local version, and those local versions are incompatible, so it is necessary to supply a system expat library.

Please describe all cmake variables in the installation guide, no matter how esoteric. Until I found this I was greatly perplexed.

Also, please document the ability to add flags to the C++ compiler:
    CXXFLAGS="-DCOIN_NOT_DLL -DSOWIN_NOT_DLL" cmake ....

(Those specific flags are necessary to build the OpenInventor driver using Coin3D and static libraries; omit the "_NOT" for shared libraries.)
Comment 1 Tom Roberts 2012-04-19 21:18:05 CEST
ON =>NO
Comment 2 Tom Roberts 2012-04-19 21:19:27 CEST
My mistake. It should be ON.
Comment 3 Ben Morgan 2012-09-25 14:56:35 CEST
Expat option(s) documented, added section on use of various C/CXX/CFLAGS/CXXFLAGS variables and associated CMake command line options, added section on use of initial cache file to encode build settings.

Committed in revision:4002 of documentation repository, will be in 9.6 Release.