I’m trying to build libxml2 for various platforms using BinaryBuilder.jl. This works very well on Ubuntu 16.04, which is on VirtualBox or on TravisCI. However, when building libxml2, I found Windows failed to find libz, which is required to read gzipped XML files. This happens only on Windows, not on either Linux or macOS.
This is the log (https://travis-ci.org/bicycle1885/XML2Builder/jobs/331711593#L8985, around line 8985):
... [09:20:10] Checking zlib [09:20:10] checking for Z... no [09:20:10] checking zlib.h usability... no [09:20:10] checking zlib.h presence... no [09:20:10] checking for zlib.h... no ...
I think this is because configuration options passed to
configure is wrong (https://github.com/bicycle1885/XML2Builder/blob/0e19e58cfcdfb27e3f3eb67e7b6e2f40f67c0529/build_tarballs.jl#L33-L41):
cd $WORKSPACE/srcdir cd zlib-1.2.11/ ./configure --prefix=/ make make install cd ../libxml2-2.9.7/ ./configure --prefix=/ --host=$target --without-python --with-zlib=$(pwd)/../../destdir make make install
These options are the same on all platforms but I guess special consideration is needed on Windows. I have no clue to fix that since I don’t have access to Windows machines.
Any suggestions are welcome. I can try on my virtual machine if you could give me some hint.