1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67
|
The instructions below assume you're building from the tarball. If you're
pulling the sources from git, you need to install libtool, automake and
autoconf then run ./autogen.sh prior to running ./configure.
Unix
====
On an Unix system, do:
+ apt-get install libz-dev libbz2-dev liblzma-dev libzstd-dev libcurl4-gnutls-dev
Or equivalent. If you skip this step, the .gz/.bz2/.xz/.zst support
won't get compiled in. Without libcurl, http/https/gopher/... URLs won't
be available.
+ ./configure
+ make
Windows
=======
Building the Windows version from source is more tricky. To compile it, you
need a way to run the GNU configure. It can be done by:
* getting MinGW and MSYS
+ download them from http://mingw.org
+ ./configure
+ make
* using Cygwin
for cygwin:
+ ./configure
+ make
for mingw:
+ CC=/cygdrive/c/MinGW/bin/gcc ./configure
+ make
* cross-compiling from an Unix platform
+ ./configure --host i586-mingw32msvc
+ make
For the compression plugins, you'll need to grab zlib, libbz2 and/or lzma.
If you're building for Cygwin (but not just on Cygwin), please install them
from Cygwin's repositories.
For native win32, it's easiest to do so by cloning the submodule:
+ git submodule update --init
If you're putting them together by hand, put the files into win32/lib/ :
* zlib:
+ zconf.h
+ zlib.h
+ libz.dll.a
+ zlib1.dll
* bzlib:
+ bzlib.h
+ libbz2.dll.a
+ bzip2.dll
* lzma:
+ lzma.h
+ lzma/*.h
+ liblzma.a
+ liblzma.dll
* zstd:
+ zstd.h
+ libzstd.dll.a
+ libzstd.dll
|