Sync with upstream
[llpp.git] / BUILDING
blobc7caf89fccf914880ed1a5b9d6368a149c4ceae9
1 Prerequisites for building from sources:
2         mupdf         [http://mupdf.com/
3                        git://git.ghostscript.com/mupdf.git
4                        commit 75f6057a294db286856965e32685032b9f07118c]
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/]
11   llpp% git clone git://git.ghostscript.com/mupdf.git --recursive
12   llpp% cd mupdf
13   mupdf% make build=native
14   mupdf% cd ..
16 Easy way:
17   llpp% sh build.sh
19 Standalone binary should now be in build/llpp
21 Hard way:
22      Prerequisites:
23         ghc           [https://www.haskell.org/ghc/]
24         shake         [http://shakebuild.com/]
26   llpp% runghc Build.hs -j0 [build/llpp.native]
28 Standalone binary should now be in build/llpp[.native]