-
Notifications
You must be signed in to change notification settings - Fork 11
/
INSTALL
126 lines (84 loc) · 2.87 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
pdftoxml
====
version 1.0.0
2007-jul-12
The Xpdf software and documentation are
copyright 1996-2007 Glyph & Cog, LLC.
Email: derekn@foolabs.com
WWW: http://www.foolabs.com/xpdf/
Compiling pdftoxml
--------------
pdftoxml is written in C++ (with a little bit of C). It should work with
any ANSI-compliant C++ and C compilers.
The following notes give specific instructions for compiling on
different systems.
**************
*** UNIX ***
**************
pdftoxml
|- png
|- zlib
|- exe
|- src
|- xpdf-3.XX
|- fofi
|- goo
|- splash
|- xpdf
Makefile.linux
* Install libxml2 (Should be already installed on your linux distribution). See http://xmlsoft.org/
* compile the zlib and png libraries (make.bat or make.linux64)
* Install xpdf. See http://www.foolabs.com/xpdf/
* create libxpdf.a in xpdf-XX/xpdf/ with ar -rc libxpdf.a *.o
* Update Makefile.linux (paths to xpdf)
Use Makefile.linux64 for last version on Linux 64bits
* Type 'make -f <MAKEFILENAME>'. This should build the executable:
exe/pdftoxml.exe
***************
*** Win32 ***
***************
Installation has been done using the above project organization:
pdftoxml
|- exe
|- src
|- iconv-1.9.1.win32
|- include
|- lib
|- libxml2-2.6.19+win32
|- bin
|- include
|- libxml
|- lib
|- xpdf_3.01
|- fofi
|- goo
|- splash
|- xpdf
Makefile
* Install xpdf: See http://www.foolabs.com/xpdf/
With cygwin, the procedure is(should be!) the same as for Unix
with MinGW
* Download MinGW (Minimalist GNU for Windows) at http://www.mingw.org/download.shtml
* Open a DOS window.
* update make.bat if necessary (paths)
* ./make.bat
***********************
*** Win32/Eclipse ***
***********************
With mingw:
* Install the following libraries:
libxml2-2.6.19+.win32, iconv-1.9.1.win32, zlib-1.2.3.win32: http://www.zlatkovic.com/pub/libxml
* Download MinGW (Minimalist GNU for Windows) at http://www.mingw.org/download.shtml
* select MinGW-3.1.0-1.exe.
* execute MinGW-3.1.0-1.exe to install MinGW.
* add to the environment variable Path the directory bin which is the installation of MinGW-3.1.0-1 (for example : C:\MinGW\bin).
* update the Makefile if necessary (CC, GCC and LIBPRO varaibles)
Eclipse configuration with mingw:
* Select Window > Preferences, C/C++/Make/New Make Project.
* Select Make Builder: Unselect Use default and add the Build command as: mingw32-make.exe -k all
* Select binary Parser: select PE Windows Parser
* Select Discovery Options:
* select GCC per project scanner ino profile
* COmpiler invocation command: mingw32-g++.exe
* create the pdftoxml project
* build your project