| Summary: | Build problems on upcoming Mac OSX 10.11 | ||
|---|---|---|---|
| Product: | Geant4 | Reporter: | Florian Uhlig <f.uhlig> |
| Component: | cmake | Assignee: | Ben Morgan <Ben.Morgan> |
| Status: | CLOSED DUPLICATE | ||
| Severity: | normal | ||
| Priority: | P5 | ||
| Version: | 10.1 | ||
| Hardware: | Apple | ||
| OS: | Mac OS X | ||
*** This problem has been marked as a duplicate of problem 1770 *** |
When compiling Geant4 on the beta version of Mac OSX I encounter two problems. 1. The output of "clang -v" again changed, so the code in Geant4MakeRules_cxx.cmake extracting the compiler version does£t work any longer Output of clang: Apple LLVM version 7.0.0 (clang-700.0.57.2) Target: x86_64-apple-darwin15.0.0 Thread model: posix I made a bloody patch which overcomes the problem, but in my opinion the better way to check if the compiler supports c++11 is to compile a small test program and deduce the information from the fact if the program could be compiled or not. 2. libXmu couldn't be found. This is fixed by the patch below. --- cmake/Modules/Geant4InterfaceOptions.cmake_orig 2015-07-10 15:17:37.000000000 +0200 +++ cmake/Modules/Geant4InterfaceOptions.cmake 2015-07-10 15:18:07.000000000 +0200 @@ -215,7 +215,7 @@ ) find_path(X11_Xmu_INCLUDE_PATH X11/Xmu/Xmu.h ${X11_INC_SEARCH_PATH}) - find_library(X11_Xmu_LIBRARY Xmu ${X11_SEARCH_PATH}) + find_library(X11_Xmu_LIBRARY Xmu ${X11_LIB_SEARCH_PATH}) if(NOT X11_Xmu_LIBRARY OR NOT X11_Xmu_INCLUDE_PATH) message(FATAL_ERROR "could not find X11 Xmu library and/or headers") endif()