mstorsjo / llvm-mingw

An LLVM/Clang/LLD based mingw-w64 toolchain
Other
1.85k stars 179 forks source link

Cannot find zlib #357

Open hilmanahwaa opened 1 year ago

hilmanahwaa commented 1 year ago

I want to cross-compile sqlite3 with the SQLITE_USE_ZLIB option but it fails because the toolchain does not have zlib.

Can you add zlib headers and static libraries on the next release, or tell me how to compile one?

cristianadam commented 1 year ago

See https://github.com/mstorsjo/llvm-mingw/issues/330 for a similar issue.

zlib is C library which consists of some C source files. If you want to compile sqlite3, you can do the same for zlib. It's quite easy to include in a project. See how Qt bundles it here.

But you can use a source package manager like vcpkg or conan to do that for you.