• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

build/H03-May-2022-6,0055,576

docs/H03-May-2022-2,8442,205

inc/H03-May-2022-1,194982

m4/H30-Dec-2014-8,6257,763

src/H03-May-2022-36,82628,306

COPYING.LGPLH A D21-Apr-201325.9 KiB503418

COPYING.MPLH A D21-Apr-201316.3 KiB374293

CREDITSH A D19-Apr-20141.8 KiB4940

ChangeLogH A D30-Dec-201464.3 KiB2,071957

HACKINGH A D19-Apr-20142.3 KiB4938

INSTALLH A D21-Apr-20139 KiB230175

Makefile.amH A D20-Sep-2013521 3021

Makefile.inH A D03-May-202228.3 KiB906806

NEWSH A D30-Dec-2014764 2419

READMEH A D19-Apr-20143.6 KiB10165

aclocal.m4H A D30-Dec-201446.6 KiB1,3191,195

ar-libH A D16-May-20135.7 KiB271210

autogen.shH A D21-Apr-20131.1 KiB5546

config.guessH A D16-May-201343.8 KiB1,5311,321

config.h.inH A D30-Dec-20141.8 KiB7248

config.subH A D16-May-201334.6 KiB1,7741,631

configureH A D30-Dec-2014593.7 KiB19,81216,659

configure.acH A D30-Dec-201411.4 KiB396374

depcompH A D16-May-201320.4 KiB709460

install-shH A D16-May-201313.7 KiB528351

libwps-zip.inH A D21-Apr-20131 KiB4634

libwps.pc.inH A D27-Jun-2014392 1310

ltmain.shH A D29-Jan-2014276.8 KiB9,6567,304

missingH A D16-May-201310.1 KiB332243

README

1INSTALLATION
2
3General
4=======
5
6Since libwps was based on librevenge code (for convenience), you need to install
7librevenge in order to build libwps. You can get librevenge from:
8
9- librevenge <http://libwpd.sourceforge.net/download.html>
10
11
12Unix/Linux
13==========
14
15Installation on Unix/Linux should be simple. Simply execute the following
16sequence of commands:
17
18./configure ; make ; su -c 'make install'
19
20Extensive installation instructions can be found in the INSTALL file.
21
22
23Windows - Microsoft(tm) Visual Studio/C++
24=========================================
25
26A workspace for MSVC6 can be found in the ./build/win32/ directory.
27This workspace contains a projects file to compile a release version or
28a debug version of libwps.
29
30NOTE: Using the MSVC build system will result in a static library only.
31No dll can be created yet using this build system. If you want to create
32a dll, please use the MingW build system (see below for details).
33
34
35Windows - MinGW
36===============
37
38First of all, in order to use librevenge in your application, you do not need
39to build it yourself. If you have access to a binary distribution, you
40are encouraged to use it. If for whatever reason you still want to build
41librevenge using MinGW, read following instructions.
42
43
44* Build environment and dependencies
45
46In order to build librevenge, you have to have installed MinGW distribution from
47http://www.mingw.org. Because the build system of libwps uses autotools, you
48must install also the MSys packages. It is advisable to install all recent
49packages into a path that does not contain spaces. Besides the MinGW
50distribution, you have to install the _runtime_ and _development_ packages of
51libwps dependency librevenge from libwpd.sourceforge.net/download.html. The packages
52you need are librevenge-{version}-MinGW.zip and librevenge-devel-{version}-MinGW.zip
53
54
55* Build procedure
56
571. Unpack the source code by running:
58
59  gunzip -dc libwps-{version}.tar.gz | tar xpf
60
61You can also use WinZip or any other GUI compression tool.
62
632. Next, run:
64
65  export ACLOCAL_FLAGS='-I <pkg-config installation prefix>/share/aclocal'; \
66  ./autogen.sh
67
68Some versions of libtool have bug that prevents MinGW from creating shared
69libraries. The autogen.sh script "libtoolizes" the package using the libtool
70included with MinGW distribution. Like that you are sure that your libtool is
71able to create DLLs.
72The ACLOCAL_FLAGS variable is there in order to allow the auto* scripts to find
73the pkg.m4 macro that is part of the pkg-config distribution. If this macro is
74not found, the generated configure script will be ending with an error.
75
763. Time to configure libwps; run:
77
78  ./configure [--prefix=<target>] [--enable-static] [--disable-shared]
79
80By default, the configure script uses as prefix "/usr/local" and configures to
81create only shared libraries. Myself, I build using following options:
82"./configure --prefix=/target --enable-static --enable-shared"
83
844. Nearly done. Make sure you have a clean build by running:
85
86  make clean all
87
885. And last but not least, compile and install librevenge by running:
89
90  make install [-i]
91
92If you configure using "--enable-static --disable-shared" (pure static library
93creation), the libtool import libraries are not created. Make will try to install
94them and will stop with error. The "-i" option makes it to report the error, but
95not to stop. Like that the installation will succeed.
96
97That's all folks! For more information, ask questions at the mailing list
98libwps-devel@list.sourceforge.net. Remember that Uncle Google can also be of big
99help especially when the problem is not with libwps, but with one of its
100dependencies.
101