Building 23.11 on Sonoma 14.1

Try to get 23.11 to build on Sonoma 14.1 and I get this many times:

clang-darwin.compile.c++ /Users/guido/USD_REL/USD-inst-arm64/build/boost/bin.v2/libs/python/build/clang-darwin-15/release/python-3.9/threading-multi/visibility-hidden/long.o
In file included from libs/python/src/long.cpp:5:
In file included from ./boost/python/long.hpp:8:
In file included from ./boost/python/detail/prefix.hpp:13:
./boost/python/detail/wrap_python.hpp:57:11: fatal error: ‘pyconfig.h’ file not found

include <pyconfig.h>


1 error generated.

Any clue ?


Have you installed Python with the installer, or are you relying on the one hidden inside Xcode, or elsewhere on the system? I’m on Sonoma as well, and am currently using a Python from the official installer, as I ran into complications with the bundled Python (or what’s left of it), as well as complications with conda (because conda does not link python in the conventional manner and that’s now become troublesome).

I’m using vanilla Installation but also I realized that I’m using Xcode-Beta 15.1 beta 2 to build VisionPRO apps. Will try to install regular Xcode to see what happens.


Can you check your system to see if pyconfig.h exists here? The screenshot shows the “conventional” location for it.


+1 the making sure you aren’t using Xcode’s Python. The Xcode version shouldn’t matter for this so much as long as you’re not also compiling embree.

Skipping embree works. What changes are needed to build with embree ?


You need to use Xcode 15.1 beta for now if you need to build Embree on macOS 14.