Merge branch 'master' of https://github.com/ghennequin/llpp into ghennequin-master
[llpp.git] / BUILDING
blobfb52651e498f1e8e2f3714abe2f9043576eba434
1 Prerequisites for building from sources:
2         mupdf         [http://mupdf.com/]
3                        git://git.ghostscript.com/mupdf.git
4                        commit 321a6cbd2e4f3bd576ca0fd7a883f194742d0ec7
5         ocaml (4.02+) [http://ocaml.org/]
6         gcc           [https://gcc.gnu.org/]
7         binutils      [http://www.gnu.org/software/binutils/]
8         make          [http://www.gnu.org/software/make/]
9         git           [https://git-scm.com/]
10         openssl       [https://www.openssl.org/source/]
11                        MuPDF depends on libcrypto part of OpenSSL
12         opengl        [http://en.wikipedia.org/wiki/OpenGL]
14   llpp% git clone git://git.ghostscript.com/mupdf.git --recursive
15   llpp% cd mupdf
16   mupdf% git checkout 321a6cbd2e4f3bd576ca0fd7a883f194742d0ec7
17   mupdf% git submodule update --recursive
18   mupdf% make build=native
19   mupdf% cd ..
21 Easy way:
22   llpp% sh build.sh build
24   somewhere% sh /path/to/llpp/build.sh $(pwd)
26 Standalone binary should now be in build/llpp or somewhere/llpp
28 Hard way:
29      Prerequisites:
30         ghc           [https://www.haskell.org/ghc/]
31         shake         [http://shakebuild.com/]
33   llpp% shake -j0 [build/llpp.native]
35   llpp% runghc Shakefile.hs -j0 [build/llpp.native]
37 Standalone binary should now be in build/llpp[.native]