List Archive
Thread
-
Windows cross-build of libzip 1.4.0 fails,
Benjamin Gilbert
(2018/01/07 08:46:02)
-
Re: Windows cross-build of libzip 1.4.0 fails,
Thomas Klausner
(2018/01/07 19:00:38)
- Re: Windows cross-build of libzip 1.4.0 fails, Lubomir I. Ivanov (2018/01/07 19:11:31)
-
Re: Windows cross-build of libzip 1.4.0 fails,
Thomas Klausner
(2018/01/07 19:00:38)
Message
Hi,
libzip 1.4.0 has several problems cross-building for Windows from Linux with MinGW-w64:1. regress/malloc.c #includes dlfcn.h, which doesn't exist on Windows. The Autotools infrastructure did not attempt to build malloc.c on Windows, but regress/CMakeLists.txt does not appear to contain any such exclusion.
CMakeFiles/nonrandomopentest.dir/objects.a(nonrandomopentest.c.obj): In function `main':
[...]/libzip-1.4.0/regress/nonrandomopentest.c:45: undefined reference to `zip_random'
That makes sense, as zip_random is not declared dllexport.
--Benjamin Gilbert
Made by MHonArc.