Error while compiling ROOT 6.14/04 on macOS 10.14 (Mojave)

Wait a second…

I was absolutely able to build even 6.12/06 on Mojave myself. But I did have to do a few things…

  • Calling xcode-select --install was a good move, you of course have to do that after the whole Mojave update;
  • I found while I was trying to build Python-2.7.13, that I also had to install system header files under /usr/include to make the Python build successful. This is sort of a long story, you can read a bit more about it under for instance:

Bottom line is, you should execute the following to get the headers installed:

open /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg
  • Finally, I had to call
export MACOSX_DEPLOYMENT_TARGET=10.14

before starting my build. More of this is explained on for instance:

So… With the headers installed, and MACOSX_DEPLOYMENT_TARGET set, I was able to build ROOT without problems.

Cheers,
Attila

1 Like