List Archive
Thread
- Re: Setting zlib path when compiling on Windows, (continued)
- Re: Setting zlib path when compiling on Windows, Lubomir I. Ivanov (2017/10/03 12:53:22)
- Re: Setting zlib path when compiling on Windows, Andreas Falkenhahn (2017/10/03 12:57:42)
- Re: Setting zlib path when compiling on Windows, Lubomir I. Ivanov (2017/10/03 13:02:38)
- Re: Setting zlib path when compiling on Windows, Michał Janiszewski (2017/10/03 13:15:09)
- Re: Setting zlib path when compiling on Windows, Andreas Falkenhahn (2017/10/03 16:07:38)
Message
I'm not sure what your compiler is, but we have created a vcpkg recipe for a bit older version of libzip (pre-1.3.0, as 1.3.0 includes some of our fixes upstream).
See https://github.com/Microsoft/vcpkg/pull/1305 we specifically needed static build and it's done there.
On Tue, Oct 3, 2017 at 3:02 PM, Lubomir I. Ivanov <neolit123%gmail.com@localhost> wrote:
On 3 October 2017 at 15:57, Andreas Falkenhahn <andreas%falkenhahn.com@localhost> wrote:
> On 03.10.2017 at 14:52 Lubomir I. Ivanov wrote:
>
>> On 3 October 2017 at 15:00, Thomas Klausner <tk%giga.or.at@localhost> wrote:
>
>>> On Tue, Oct 03, 2017 at 01:59:30PM +0200, Andreas Falkenhahn wrote:
>>>> On 03.10.2017 at 13:48 Thomas Klausner wrote:
>
>>>> > On Tue, Oct 03, 2017 at 01:37:03PM +0200, Andreas Falkenhahn wrote:
>>>> >> Thanks, using absolute paths seems to solve the problem of CMake not finding zlib.
>>>> >> But now there's a new problem: Libzip now complains about being unable to find
>>>> >> zconf.h which is obvious because zconf.h is of course in a target-dependent
>>>> >> directory since I'm doing out-of-tree builds.
>
>>>> > Well, you should do the equivalent of 'make install' then the header
>>>> > files will be in the same directory.
>
>>>> And what is that equivalent with CMake on Windows? :-)
>
>>> I don't know. "copy"? :)
>
>> Andreas, i think Tomas has a point.
>> if you don't have a zconf.h in the root zlib directory, can you try
>> coping it from the build directory to the root directory?
>
> That will work of course but it defies the idea of out-of-tree builds.
>
you have two options:
1) manually copy the relevant headers from the root zlib directory to
the out-of-tree build directory
2) copy only the zconf.h to the root zlib directory
then decide which location to pass to libzip's cmake command - root or build.
but the issue itself should be reported at zlib, i would say.
lubomir
--
--
Michal Janiszewski
Made by MHonArc.