"SfR Fresh" - the SfR Freeware/Shareware Archive 
Member "odt2txt-0.4/INSTALL" of archive odt2txt-0.4.tar.gz:
As a special service "SfR Fresh" has tried to format the requested source page into HTML format using source code syntax highlighting with prefixed line numbers.
Alternatively you can here view or download the uninterpreted source code file.
That can be also achieved for any archive member file by clicking within an archive contents listing on the first character of the file(path) respectively on the according byte size field.
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 NetBSD:
24 NetBSD > 2.0 comes with an iconv implementation, it has everything
25 you need.
26
27 HP-UX:
28 If zlib is not already installed on the system, build it. Then
29 build odt2txt with "gmake ZLIB_DIR=/path/to/zlib"
30
31 Windows (Cygwin):
32 You need to install libiconv.
33
34 Windows (mingw32):
35 This is a little harder, but will produce a binary that has no
36 further dependencies. I don't have a Windows system here but I have
37 a Debian Sarge system with a cross-compile environment. The
38 resulting binary has been reported to work without problems. I guess
39 the same process should work with a native mingw environment in a
40 similar way.
41
42 Install mingw32, mingw32-binutils and mingw32-runtime. Download and
43 untar GNU libiconv, configure and build and install it:
44
45 $ ./configure --host=i586-mingw32msvc --prefix=/usr/i586-mingw32msvc/
46 $ make
47 $ su -c "make install"
48
49 Download GNU regex-0.12, untar it (for example to /tmp/regex-0.12)
50 and compile the source file:
51
52 $ i586-mingw32msvc-gcc -DSTDC_HEADERS=1 -c regex.c
53
54 Then go into the odt2txt source directory and build it:
55
56 $ make CC=i586-mingw32msvc-gcc MINGW32=1 REGEX_DIR=/tmp/regex-0.12
57
58 The result should be a file named odt2txt.exe. The only dependency
59 is the file libiconv-2.dll which was built from your iconv source
60 directory.
61
62 You can also link statically against libiconv if you add
63 STATIC=1 ICONV_DIR=<your_iconv_dir> to the make command line.