-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sh
17 lines (11 loc) · 607 Bytes
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash
sudo apt-get install libtesseract-dev libleptonica-dev tesseract-ocr-eng
git clone http://mupdf.com/repos/mupdf.git
git config --global url.http://git.insteadOf git://git
cd mupdf
git submodule update --init
HAVE_X11="no" XCFLAGS="-fPIC" make release
#For testing (builds an executable):
#gcc -g -o build/release/example -Iinclude ../conv.c build/release/libmupdf.a build/release/libmujs.a build/release/libfreetype.a build/release/libjbig2dec.a build/release/libjpeg.a build/release/libopenjpeg.a build/release/libz.a -lm -lcrypto -ltesseract -lmupdf -llept
cd ..
python setup.py install