Problems building against MacPorts/HomeBrew libxml2

Hi all,

v6-16-00 will not build against libxml2 as provided by MacPorts/HomeBrew.

The current version of libxml2 has ICU as a compile time dependency, and this is causing the following problems:
libxml-2.0.pc does not report the additional dependency requirement, so the call to “pkg-config --cflags libxml-2.0” in cmake returns junk. This was previously claimed to be fixed in MacPorts Trac #57990 however the fix is broken, and I have raised #58350 to remove the hard coded paths, and update the package manager to provide a correct path.

Some of the ${LIBXML2_INCLUDE_DIR}'s in the ROOT CMakeLists.txt’s should be updated to ${LIBXML2_INCLUDE_DIRS}, changing io/xmlparser/CMakeLists.txt gets me past my compilation errors (The same error as reported in Compiling xmlparser on Mac OS X Mojave), I’m not sure if the other uses of ${LIBXML2_INCLUDE_DIR} should be changed.

As the ROOT change is independent of the fix to MacPorts, should we go ahead and make this change?


ROOT Version: v6-16-00
Platform: macOS 10.14.4
Compiler: Apple LLVM version 10.0.1 (clang-1001.0.46.3)

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