Debian Codegraph @

INSTALL

raw
1
2 odt2txt is known to compile on Linux, Windows (Cygwin and native),
3 Solaris, FreeBSD, OpenBSD and NetBSD.
4
5 To build odt2txt you need GNU make on all platforms. On platforms
6 other than Linux and Cygwin, it is usually called "gmake".
7
8 Linux:
9 A modern Linux system has everything you need in the
10 libc. Just run "make" in the source directory.
11
12 Solaris:
13 Everything you need comes with the system.
14 I have test-compiled odt2txt on Solaris 9 (sparc) and
15 Solaris 10 (x86), both with gcc and the Sun C Compiler.
16
17 FreeBSD/OpenBSD:
18 You need to install libiconv from the ports.
19
20 The regex library that comes with FreeBSD is extremely slow
21 on my FreeBSD system (5.3, i386).
22
23 Mac OS X:
24 libiconv has to be installed separately. The Makefile contains
25 support for a MacPorts installation:
26
27 - install MacPorts http://www.macports.org/
28 - install libiconv in MacPorts
29 $ sudo port install libiconv
30 - run "make" in the source directory
31
32 NetBSD:
33 NetBSD > 2.0 comes with an iconv implementation, it has everything
34 you need.
35
36 HP-UX:
37 If zlib is not already installed on the system, build it. Then
38 build odt2txt with "gmake ZLIB_DIR=/path/to/zlib"
39
40 Windows (Cygwin):
41 You need to install libiconv.
42
43 Windows (mingw32):
44 This is a little harder, but will produce a binary that has no
45 further dependencies. I don't have a Windows system here but I have
46 a Debian Sarge system with a cross-compile environment. The
47 resulting binary has been reported to work without problems. I guess
48 the same process should work with a native mingw environment in a
49 similar way.
50
51 Install mingw32, mingw32-binutils and mingw32-runtime. Download and
52 untar GNU libiconv, configure and build and install it:
53
54 $ ./configure --host=i586-mingw32msvc --prefix=/usr/i586-mingw32msvc/
55 $ make
56 $ su -c "make install"
57
58 Download GNU regex-0.12, untar it (for example to /tmp/regex-0.12)
59 and compile the source file:
60
61 $ i586-mingw32msvc-gcc -DSTDC_HEADERS=1 -c regex.c
62
63 Then go into the odt2txt source directory and build it:
64
65 $ make CC=i586-mingw32msvc-gcc MINGW32=1 REGEX_DIR=/tmp/regex-0.12
66
67 The result should be a file named odt2txt.exe. The only dependency
68 is the file libiconv-2.dll which was built from your iconv source
69 directory.
70
71 You can also link statically against libiconv if you add
72 STATIC=1 ICONV_DIR=<your_iconv_dir> to the make command line.