Git Product home page Git Product logo

Comments (7)

0-wiz-0 avatar 0-wiz-0 commented on May 20, 2024

We recently integrated some Windows-specific changes, so please try the latest git version. I'm not aware of any patches needed for building on Windows.

That being said, we're not using Windows ourselves, so we're always happy to integrate improvements for that, as long as they don't break stuff on Unix systems. I'm looking forward to your PR! :)

from libzip.

thokra1 avatar thokra1 commented on May 20, 2024

First of all, thank you for commenting! I'll have to spread the PRs out a little, i think.

I strongly suggest to add Windows CI using something like AppVeyor - like TravisCI, it's free for OSS. Even if Windows isn't a first-class citizen, this way you'd at least get instant feedback. I'd be happy to do this for you, if you wish (and if you're willing to permit the corresponding github webhooks πŸ˜ƒ ).

Just to bring some problems to your attention, please read the follow-up below.


I'm not aware of any patches needed for building on Windows.

The issue with the GCC attribute has already been fixed on master. However, assuming that I didn't miss any Windows-specific mandatory settings, master simply doesn't build - right out the gate. The config header template seems to be missing some variables here. There are other build errors in the
commit with which I'm trying to work (6eb844d ...).

Another issue is the distribution custom commands - one should not assume the existence of xz-utils on any platform. At the very least, one should use find_program and abort configuration if nothing is found - or make the whole thing optional. Better yet, simply use CPack for packaging. A TGZ generator is readily available with CMake on all platforms (IIRC) - as is a ZIP generator, which I'd prefer for Windows (even if the only reason is basic OS support for the archive type).

Regarding the distcheck target, unless you're using something like Cygwin (or for a subset of the utilized commands, the PowerShell), there is no way you're writing to /dev/null, calling rm or sh or any other Unix command on Windows. πŸ˜‰


as long as they don't break stuff on Unix systems

It'd be useful to know the minimum-viable set of supported platforms and distros. I probably cannot assume that building on Ubuntu and Windows is enough, can I? I couldn't find anything about this in the docs tho.

Some examples currently cannot build on Windows (for instance, norandomopen uses unistd.h which isn't available with MSVC). I assume you want them and the regression tests to work cross-platform, correct?

I find that manpage generation on Windows isn't desirable. The real problem is that even HTML documentation generation is dependent on mandoc. A way to independently generate HTML or manpages could be doxygen, albeit this would introduce a new dependency (which shouldn't be a problem on any reasonable Linux distro or any of the BSDs) and would force one to rewrite documentation in the doxygen format.

from libzip.

0-wiz-0 avatar 0-wiz-0 commented on May 20, 2024

Thank you, you touch a lot of interesting points.

As for appveyor, we'd be very happy to have that working for libzip. I have tried setting it up a few months ago, but gave up after about a day of not getting it going correctly. You can still find my .appveyor* file in the git history, I removed it in f0b8dda. Please note that appveyor currently has different settings directly in its web configuration than were in that file.

Various people have reported success building on Windows, but I guess there are many different ways to build this on various different Windows systems, so please just send patches for what you need fixed.

The dist and distcheck targets are currently only intended to be run on Unix systems. If you want to make them work on Windows too, please go ahead, but I don't think this is high priority.

As for supported systems, we regularly build on travis (Linux, MacOS) and NetBSD, and the releases are also build-tested on Solaris/Illumos. If your changes keep it working on Linux/OSX/Windows that's good enough, we can fix the rest.

As for the test suite: some of our test use library pre-loading to override functions with test functions (especially the AES tests). I'm not sure if that'll work on Windows, and so far we didn't have the aim or the knowledge to get the tests working on Windows, but we'll gladly accept patches.

We're not planning on rewriting the documentation in a different format. The one for the latest release is always available as HTML on libzip.org. Is there a mandoc port for Windows?

Looking forward to your PRs!

from libzip.

0-wiz-0 avatar 0-wiz-0 commented on May 20, 2024

For some other needed Windows work, please see https://libzip.org/libzip-discuss/msg00837.html -- we've replaced the Crypto code by using external libraries, that needs a new Windows backend too.

from libzip.

janisozaur avatar janisozaur commented on May 20, 2024

@thokra1 please see my PR for adding appveyor.yml: #32

from libzip.

janisozaur avatar janisozaur commented on May 20, 2024

See some relevant discussion: microsoft/vcpkg#2973

from libzip.

0-wiz-0 avatar 0-wiz-0 commented on May 20, 2024

For finding libzip, use the standard CMake FindPkgConfig module (see e.g. https://cmake.org/cmake/help/v3.11/module/FindPkgConfig.html).
As for the other points, we'll gladly accept PRs, but will not work on this ourselves.

from libzip.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.