Closed abirchall closed 8 years ago
Notice that the CMAKE_INCLUDE_PATH includes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/libxml2 This directory exists (as well as libxml/parser.h)
Due to issues with cmake automagically picking up the wrong libs, we have this code to defeat the default path detection, which IIRC makes CMAKE_INCLUDE_PATH
irrelevant. We explicitly specify the location of libxml2 as in /usr/include
.
Picking it up out of the xcode dir might be better, if you know how to do that in a safe and consistent way.
Note that I already have the developer tools installed
Have you done xcode-select --install
recently? I believe you that the tools are installed, but there are bits of the CLI tools that seem to go missing from time to time (I don't really understand), and this libxml error is the usual symptom of that. You pointed out lots of details of the tools, and even mentioned #40, but never mentioned if you ran xcode-select --install
as suggested there :)
I also tried installing libxml2 from brew on a whim but no luck
Yeah, this is irrelevant due to the above path trickery.
Thanks for the fast reply!
xcode-select install performs a no-op since the tools are already installed:
abirchall-mbp: xcode-select --install
xcode-select: error: command line tools are already installed, use "Software Update" to install updates
What's even more bizarre is that the libxml2 headers exist under /usr/include
:
abirchall-mbp: ls /usr/include/libxml2/libxml/parser.h
-rw-r--r-- 1 root wheel 39717 Aug 3 19:48 /usr/include/libxml2/libxml/parser.h
haha. I just tried rebuilding and it worked... I don't recall changing anything since I posed the original message though. How strange.
Description
Installation failed with error
fatal error: 'libxml/parser.h' file not found
Note: I already had a look at #40; this seems like a distinct issue.
Output
Notice that the
CMAKE_INCLUDE_PATH
includes/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/libxml2
This directory exists (as well aslibxml/parser.h
)Note that I already have the developer tools installed
I also tried installing libxml2 from brew on a whim but no luck
Context and Logs
Output of clang -v:
Build logs: https://gist.github.com/1c76edc7b65f99e1f149c96bf9a26255