I upgrade my mac to macOS11.5 and I’ve installed geant4.10.07 with cmake:
cmake -DCMAKE_INSTALL_PREFIX = /Users/chloe/g4/geant4.10.07.p02-install -DGEANT4_INSTALL_DATA=ON -DGEANT4_USE_OPENGL_X11=ON -DGEANT4_INSTALL_EXAMPLES=ON -DBUILD_SHARED_LIBS=ON -DBUILD_STATIC_LIBS=ON /Users/chloe/g4/geant4.10.07.p02 make make install
which I think worked fine, the installation was successful.
But I got this error when try build example B1 with the following lines:
cmake -DGEANT4_PREFIX_PATH=/Users/chloe/g4/geant4.10.07.p02-install/lib64/Geant4-10.7.2 ../g4/geant4.10.07.p02/examples/basic/B1 CMake Error in CMakeLists.txt: Imported target "Geant4::G4OpenGL" includes non-existent path "/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk/System/Library/Frameworks/OpenGL.framework" in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include: * The path was deleted, renamed, or moved to another location. * An install or uninstall procedure did not complete successfully. * The installation package was faulty and references files it does not provide.
I checked my /Library/Developer/CommandLineTools/SDKs folder and indeed it only contains MacOSX.sdk,MacOSX10.15.sdk,MacOSX11.1.sdk,MacOSX11.3.sdk,MacOSX11.sdk, NO MacOSX11.0.sdk exists. My understanding is that the path in cmakelists.txt points to an older version sdk. Any way to edit it and is that all?
Thanks in advance!