Skip to content
Discussion options

You must be logged in to vote

on windows with mingw, llvm and libxml2 linking can be tricky. the error about libxml2s.lib means llvm was built expecting msvc static libraries but youre using mingw.

few options:

  1. use prebuilt llvm for mingw. download from llvm releases page, get the mingw64 version specifically.

  2. if building llvm yourself, disable libxml2:

cmake .. -G "MinGW Makefiles" \
  -DLLVM_ENABLE_LIBXML2=OFF
  1. install libxml2 for mingw. if using msys2:
pacman -S mingw-w64-x86_64-libxml2

then set cmake to find it:

cmake .. -DLIBXML2_INCLUDE_DIR=/mingw64/include/libxml2 \
  -DLIBXML2_LIBRARY=/mingw64/lib/libxml2.dll.a
  1. for inkwell specifically, try setting these env vars before cargo build:
$env:LLVM_SYS_180_…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by rupakhetibinit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants