Problem 1769 - Build problems on upcoming Mac OSX 10.11
Summary: Build problems on upcoming Mac OSX 10.11
Status: CLOSED DUPLICATE of problem 1770
Alias: None
Product: Geant4
Classification: Unclassified
Component: cmake (show other problems)
Version: 10.1
Hardware: Apple Mac OS X
: P5 normal
Assignee: Ben Morgan
URL:
Depends on:
Blocks:
 
Reported: 2015-07-10 16:07 CEST by Florian Uhlig
Modified: 2018-05-08 14:44 CEST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this problem.
Description Florian Uhlig 2015-07-10 16:07:55 CEST
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()
Comment 1 Ben Morgan 2015-07-13 11:23:39 CEST

*** This problem has been marked as a duplicate of problem 1770 ***