Giter Club home page Giter Club logo

pigz's Introduction

This is a fork of pigz that adds Windows support, courtesy of Krzysztof Kowalczyk.

To download binaries: http://blog.kowalczyk.info/software/pigz-for-windows.html

How to build

First, get premake and put somewhere in the %PATH%. I use premake 4.3

Building via script

You can run scripts\build.bat (python required), which will auto-detect Visual Studio 2010 or 2012, build and run tests.

The result (pigz.exe and unpigz.exe) will be in rel directory.

Building manually

Alternatively, do it manually:

For Visual Studio 2008:

  • run premake4 vs2008 to generate Visual Studio 2008 solution
  • open build\pigz.sln in Visual Studio and build

For Visual Studio 2010:

  • run premake4 vs2010 to generate Visual Studio 2010 solution
  • open build\pigz.sln in Visual Studio 2010 and build

For Visual Studio 2012:

  • run premake4 vs2010 to generate Visual Studio 2012 solution
  • open build\pigz.sln in Visual Studio 2012. You'll have to convert to VS 2012 format, but it should work

How the port was made

Pigz uses pthreads for threading. For easy porting, I used pthread-win32. I added the following at the top of pthread.h:

#define __CLEANUP_C
#define PTW32_STATIC_LIB

I used dirent.[c|h] from http://www.two-sdg.demon.co.uk/curbralan/code/dirent/dirent.html.

I wrote a simple win32/wincompat.h that aliases names of some Unix functions to their win32 equivalents.

I used premake for the build system.

pigz's People

Contributors

madler avatar kjk avatar andschenk avatar fedterzi avatar

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.