I have been trying to install ROOT on macOS by cloning the ROOT repository, checking out the v6-16-00 branch and then using CMake in accordance with the recommendations. The compilation failed around 74% due to the following message:
/opt/local/include/unicode/ucnv.h:52:10: fatal error: ‘unicode/ucnv_err.h’ file not found #include “unicode/ucnv_err.h”
After some investigation it turns out that all files under /opt/local/include/unicode/*.h
have include commands of the form: #include “unicode/.h”
and this causes the compilation break. The work around is that all such lines in all header files must be replaced with: #include “/opt/local/include/unicode/.h” ?
Is this issue expected and known? This surely must affect all Mac users, right? Is there a specific flag or version recommended for Mac users?
It seems whatever package installed files with #include "unicode/.h" failed somewhere to add the proper filename. This is likely a problem in Homebrew, given the paths you are showing, and the package could be libxml2, but that’s just a guess.
/opt/local does not exist in a fresh install of MacOS. I just logged into our test node to check. Only /opt/X11 exists, because we have XQuartz installed. It must come from some other package manager, like fink, macports, homebrew, etc. In any case, this is surely not a problem with ROOT. Cheers,