-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILDING
37 lines (31 loc) · 1.28 KB
/
BUILDING
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
Prerequisites for building from sources:
mupdf [http://mupdf.com/]
git://git.ghostscript.com/mupdf.git
commit 321a6cbd2e4f3bd576ca0fd7a883f194742d0ec7
ocaml (4.02+) [http://ocaml.org/]
gcc [https://gcc.gnu.org/]
binutils [http://www.gnu.org/software/binutils/]
make [http://www.gnu.org/software/make/]
git [https://git-scm.com/]
openssl [https://www.openssl.org/source/]
MuPDF depends on libcrypto part of OpenSSL
opengl [http://en.wikipedia.org/wiki/OpenGL]
llpp% git clone git://git.ghostscript.com/mupdf.git --recursive
llpp% cd mupdf
mupdf% git checkout 321a6cbd2e4f3bd576ca0fd7a883f194742d0ec7
mupdf% git submodule update --recursive
mupdf% make build=native
mupdf% cd ..
Easy way:
llpp% sh build.sh build
or
somewhere% sh /path/to/llpp/build.sh $(pwd)
Standalone binary should now be in build/llpp or somewhere/llpp
Hard way:
Prerequisites:
ghc [https://www.haskell.org/ghc/]
shake [http://shakebuild.com/]
llpp% shake -j0 [build/llpp.native]
or
llpp% runghc Shakefile.hs -j0 [build/llpp.native]
Standalone binary should now be in build/llpp[.native]