# Runtime issues while making examples due to issues with CommandLineTools SDKs

**URL:** <https://geant4-forum.web.cern.ch/t/runtime-issues-while-making-examples-due-to-issues-with-commandlinetools-sdks/13300>\
**Category:** Getting Started\
**Created:** [December 3, 2024, 5:41pm UTC](https://geant4-forum.web.cern.ch/t/runtime-issues-while-making-examples-due-to-issues-with-commandlinetools-sdks/13300 "2024-12-03T17:41:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kavya\_Wadhwa](https://geant4-forum.web.cern.ch/letter_avatar_proxy/v4/letter/k/ce7236/32.png) [@Kavya\_Wadhwa](https://geant4-forum.web.cern.ch/u/Kavya_Wadhwa)\
**Post date:** [December 3, 2024, 5:41pm UTC](https://geant4-forum.web.cern.ch/t/runtime-issues-while-making-examples-due-to-issues-with-commandlinetools-sdks/13300/1 "2024-12-03T17:41:54Z")

</div>

Please fill out the following information to help in answering your question, and also see [tips for posting code snippets](https://geant4-forum.web.cern.ch/t/how-to-post-code-snippets/9944). If you don’t provide this information it will take more time to help with your problem!

_Geant4 Version:_ 11.2.2  
_Operating System:_ MacOS Sequia 15.1  
_Compiler/Version:_ Apple clang version 16.0.0 (clang-1600.0.26.3)  
_CMake Version:_ cmake version 3.30.5

* * *

CMake Error in CMakeLists.txt:  
Imported target “Geant4::G4Tree” includes non-existent path

```
"/Library/Developer/CommandLineTools/SDKs/MacOSX15.0.sdk/usr/include"

```

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.

CMake Error in CMakeLists.txt:  
Imported target “Geant4::G4Tree” includes non-existent path

```
"/Library/Developer/CommandLineTools/SDKs/MacOSX15.0.sdk/usr/include"

```

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.

– Generating done (0.0s)  
CMake Generate step failed. Build files cannot be regenerated correctly.

```auto
Last login: Tue Dec 3 23:05:50 on ttys001
kavyawadhwa@KAVYAs-MacBook-Air build % cmake ..
-- The C compiler identification is AppleClang 16.0.0.16000026
-- The CXX compiler identification is AppleClang 16.0.0.16000026
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found EXPAT: /Library/Developer/CommandLineTools/SDKs/MacOSX15.0.sdk/usr/lib/libexpat.tbd (Required is at least version "2.6.1")
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Found XercesC: /opt/homebrew/lib/libxerces-c.dylib (found suitable version "3.3.0", minimum required is "3.3.0")
-- Found X11: /usr/X11R6/include
-- Looking for XOpenDisplay in /usr/X11R6/lib/libX11.dylib;/usr/X11R6/lib/libXext.dylib
-- Looking for XOpenDisplay in /usr/X11R6/lib/libX11.dylib;/usr/X11R6/lib/libXext.dylib - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found OpenGL: /Library/Developer/CommandLineTools/SDKs/MacOSX15.0.sdk/System/Library/Frameworks/OpenGL.framework
-- Found Geant4: /usr/local/Geant4/lib/cmake/Geant4/Geant4Config.cmake (found version "11.2.2")
-- Configuring done (2.3s)
CMake Error in CMakeLists.txt:
  Imported target "Geant4::G4Tree" includes non-existent path

    "/Library/Developer/CommandLineTools/SDKs/MacOSX15.0.sdk/usr/include"

  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.

CMake Error in CMakeLists.txt:
  Imported target "Geant4::G4Tree" includes non-existent path

    "/Library/Developer/CommandLineTools/SDKs/MacOSX15.0.sdk/usr/include"

  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.

-- Generating done (0.0s)
CMake Generate step failed. Build files cannot be regenerated correctly.
kavyawadhwa@KAVYAs-MacBook-Air build % 

```

---

<div class="post-metadata">

**Author:** ![bmorgan](https://geant4-forum.web.cern.ch/user_avatar/geant4-forum.web.cern.ch/bmorgan/32/7_2.png) [@bmorgan](https://geant4-forum.web.cern.ch/u/bmorgan)\
**Post date:** [December 3, 2024, 6:52pm UTC](https://geant4-forum.web.cern.ch/t/runtime-issues-while-making-examples-due-to-issues-with-commandlinetools-sdks/13300/2 "2024-12-03T18:52:25Z")

</div>

I think this almost certainly due to a system update that has invalidated the `Geant4PackageCache.cmake` file installed with Geant4. This should be present at

```console
/usr/local/Geant4/lib/cmake/Geant4/Geant4PackageCache.cmake

```

and can be safely removed. The example should then configure fine.

---

<div class="post-metadata">

**Author:** ![system](https://geant4-forum.web.cern.ch/uploads/default/original/1X/ce519a43ebdf7ac48a98a03c6ad6eea013b68c46.png) [@system](https://geant4-forum.web.cern.ch/u/system)\
**Post date:** [January 2, 2025, 6:53pm UTC](https://geant4-forum.web.cern.ch/t/runtime-issues-while-making-examples-due-to-issues-with-commandlinetools-sdks/13300/3 "2025-01-02T18:53:18Z")

</div>

Closed on January 2, 2025, 6:53pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
