-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compile Fails on MacOS 10.13.1 #5
Comments
+1. Facing the same issue. Tried to make it work by giving custom paths, like so, But now it's stuck at |
+2. Similar issue. macOS 10.13.1 High Sierra $git reset --hard HEAD && git pull HEAD is now at 8f89102 Merge pull request #4 from dennisfrett/master $ mkdir build && cd build $ cmake .. -DLIBXML2_INCLUDE_DIR:PATH=/usr/local/opt/libxml2/include/libxml2 -DLIBXML2_LIBRARIES:PATH=/usr/local/opt/libxml2/lib/libxml2 -DLLVM_DIR:PATH=/usr/local/opt/llvm/lib/cmake/llvm -- The C compiler identification is AppleClang 9.0.0.9000038 $ cmake --build . Scanning dependencies of target ebc |
Same issue |
Can you try again after running |
So you're not using the system libxml2? Brew requires that you force it because they're reluctant to override the system libxml2
The better choice during cmake configure is to pass -D options or in the file set:
|
I'm having the same issue as the issue author. I tried some of the work arounds that @palmerc suggested, but it's just leading me down a rabbit hole of similar errors. |
@tylermilner First, I'm a huge fan of rabbit holes. Second,
Passing the options as I suggested, given the correct path to your libxml2, gets FindLibrary to find libxml2. However, this project still has a number of build issues related to libxml2 which means I'll have to look at fixing it. I originally looked at this project but gave up because I was short on time. Stuff like this is popular amongst certain developers but considered bad form in CMake:
and mostly put me off touching it previously. |
So to get it to compile... Taking a bit of deeper dive it seems that generally compiling on a Mac with Brew is problematic for this project. I had to add the following to
The issue is that there isn't a variable for LibXML2 to hint where to look. ZLIB_ROOT and LLVM_DIR both hint the location for those projects. The include directory for XML2 has an additional directory so you need to correct that. |
Seems that to clue CMake into the correct location and avoid adding
|
The hints and suggestions in this thread helped me pull off a successful build on my mac - thanks guys! |
Same issue. And as suggested @palmrec had to pass CMAK_PREFIX_PATH with libxml2 and zlib, also need to specify LLVM_DIR variable
OS: Big Sur 11.0.1 |
Compile Fails on MacOS 10.13.1, here is the cmake log:
Here is the CMakeOutput.log
The text was updated successfully, but these errors were encountered: