-
Notifications
You must be signed in to change notification settings - Fork 0
/
INSTALL
80 lines (56 loc) · 1.9 KB
/
INSTALL
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
68
69
70
71
72
73
74
75
76
77
78
79
80
Xpdf
====
version 4.04 modified to be used as a library.
2023-Sept-28
M.Medour
version 4.04
2022-apr-18
The Xpdf software and documentation are
copyright 1996-2022 Glyph & Cog, LLC.
Email: xpdf@xpdfreader.com
WWW: http://www.xpdfreader.com/
Compiling xpdf
--------------
Xpdf is written in C++ (with a little bit of C). It should work with
any ANSI-compliant C++ and C compilers. The systems and compilers
it's been tested with are listed on the xpdf web page.
The following notes give specific instructions for compiling on
different systems.
*******************************
*** Linux, OS X, Freemint ***
*******************************
* Make sure you have the following installed:
- Make
- FreeType 2.0.5 or newer
- libpng (for pdftoppm and pdftohtml)
- zlib (for pdftoppm and pdftohtml)
* Build:
make
Defult destination folder will be xpdf_mint_release unless you set DESTDIR variable.
For cross-compile you can pass args to make as following for example
CXX=m68k-atari-mint-g++ AR=m68k-atari-mint-ar RANLIB=m68k-atari-mint-ranlib make
or
export CXX=m68k-atari-mint-g++ ;export AR=m68k-atari-mint-ar; exportRANLIB=m68k-atari-mint-ranlib; export CXXFLAGS=" -I./ -mcfv4e -fomit-frame-pointer -fno-strict-aliasing -O2 -Wno-multichar" ;export DESTDIR="xpdf_mint_release_cfv4e"; make
This will build the executables in the build directory:
tools/bin/pdftops
tools/bin/pdftotext
tools/bin/pdftohtml
tools/bin/pdfinfo
tools/bin/pdffonts
tools/bin/pdfdetach
tools/bin/pdftoppm
tools/bin/pdftopng
tools/bin/pdfimages
Headers and libraries should be available in
usr/include/xpdf_mint:
aconf.h
aconf2.h
fofi
goo
splash
xpdf
usr/lib:
libfofi.a
libgoo.a
libsplash.a
libxpdf.a