Menu

Tree [2b1cb2] master /
 History

HTTPS access


File Date Author Commit
 build 2017-10-28 David Tardon David Tardon [038f18] drop MSVC project files obsoleted by move to C++11
 docs 2015-03-11 osnola osnola [e9c0de] doxygen: update doxygen.cfg to avoid warnings a...
 inc 2023-06-07 ALONSO Laurent ALONSO Laurent [66c795] Pocket Excel: begin to add a parser to retrieve...
 m4 2017-08-02 Miklos Vajna Miklos Vajna [86616d] m4: MSVC defines __cplusplus as 199711L still
 src 2023-06-14 ALONSO Laurent ALONSO Laurent [2b1cb2] PocketExcel: try to also parse 1.0 files, ...
 .clang-tidy 2019-12-13 Miklos Vajna Miklos Vajna [51559d] Avoid accessing static members through instance
 .gitignore 2017-07-30 David Tardon David Tardon [37c8b6] ignore only auto-generated m4 files
 CHANGES 2022-11-22 ALONSO Laurent ALONSO Laurent [05de4b] update configure.ac to be compatible with autoc...
 COPYING.LGPL 2013-04-19 Fridrich Štrba Fridrich Štrba [f838e5] By agreement of all contributors, dual-licensin...
 COPYING.MPL 2013-04-19 Fridrich Štrba Fridrich Štrba [f838e5] By agreement of all contributors, dual-licensin...
 CREDITS 2015-12-26 David Tardon David Tardon [3a0593] update CREDITS to reflect reality
 HACKING 2013-11-28 David Tardon David Tardon [8b33af] add options file for astyle
 INSTALL 2006-09-01 Andrew Ziehm Andrew Ziehm [d623fb] - Import an modified copy of libwpd 0.8.6 as pu...
 Makefile.am 2015-03-13 osnola osnola [7372f7] Makefile.am: add astyle command
 NEWS 2023-05-05 ALONSO Laurent ALONSO Laurent [f0e60d] NEWS and configure.ac: update before release...
 README 2013-11-02 osnola osnola [18a633] Make libwps depend on librevenge...
 astyle.options 2013-12-11 Fridrich Štrba Fridrich Štrba [27be09] Allow equal identing of functions
 autogen.sh 2017-11-15 osnola osnola [80008d] autogen.sh: fix creation of configure
 configure.ac 2023-05-05 ALONSO Laurent ALONSO Laurent [f0e60d] NEWS and configure.ac: update before release...
 libwps-zip.in 2007-12-03 Fridrich Štrba Fridrich Štrba [c84bc3] fix an omission in super/subscript parameter + ...
 libwps.pc.in 2014-05-27 Fridrich Štrba Fridrich Štrba [ddbf72] The library strictly speaking does not need the...

Read Me

INSTALLATION

General
=======

Since libwps was based on librevenge code (for convenience), you need to install
librevenge in order to build libwps. You can get librevenge from:

- librevenge <http://libwpd.sourceforge.net/download.html>


Unix/Linux
==========

Installation on Unix/Linux should be simple. Simply execute the following 
sequence of commands:

./configure ; make ; su -c 'make install'

Extensive installation instructions can be found in the INSTALL file.


Windows - Microsoft(tm) Visual Studio/C++
=========================================

A workspace for MSVC6 can be found in the ./build/win32/ directory.
This workspace contains a projects file to compile a release version or 
a debug version of libwps. 

NOTE: Using the MSVC build system will result in a static library only. 
No dll can be created yet using this build system. If you want to create 
a dll, please use the MingW build system (see below for details).


Windows - MinGW
===============

First of all, in order to use librevenge in your application, you do not need
to build it yourself. If you have access to a binary distribution, you
are encouraged to use it. If for whatever reason you still want to build
librevenge using MinGW, read following instructions.


* Build environment and dependencies

In order to build librevenge, you have to have installed MinGW distribution from
http://www.mingw.org. Because the build system of libwps uses autotools, you
must install also the MSys packages. It is advisable to install all recent
packages into a path that does not contain spaces. Besides the MinGW
distribution, you have to install the _runtime_ and _development_ packages of
libwps dependency librevenge from libwpd.sourceforge.net/download.html. The packages
you need are librevenge-{version}-MinGW.zip and librevenge-devel-{version}-MinGW.zip


* Build procedure

1. Unpack the source code by running:

  gunzip -dc libwps-{version}.tar.gz | tar xpf

You can also use WinZip or any other GUI compression tool.

2. Next, run:

  export ACLOCAL_FLAGS='-I <pkg-config installation prefix>/share/aclocal'; \
  ./autogen.sh

Some versions of libtool have bug that prevents MinGW from creating shared
libraries. The autogen.sh script "libtoolizes" the package using the libtool
included with MinGW distribution. Like that you are sure that your libtool is
able to create DLLs.
The ACLOCAL_FLAGS variable is there in order to allow the auto* scripts to find
the pkg.m4 macro that is part of the pkg-config distribution. If this macro is
not found, the generated configure script will be ending with an error.

3. Time to configure libwps; run:

  ./configure [--prefix=<target>] [--enable-static] [--disable-shared]

By default, the configure script uses as prefix "/usr/local" and configures to
create only shared libraries. Myself, I build using following options:
"./configure --prefix=/target --enable-static --enable-shared"

4. Nearly done. Make sure you have a clean build by running:
 
  make clean all

5. And last but not least, compile and install librevenge by running:

  make install [-i]

If you configure using "--enable-static --disable-shared" (pure static library
creation), the libtool import libraries are not created. Make will try to install
them and will stop with error. The "-i" option makes it to report the error, but
not to stop. Like that the installation will succeed.

That's all folks! For more information, ask questions at the mailing list
libwps-devel@list.sourceforge.net. Remember that Uncle Google can also be of big
help especially when the problem is not with libwps, but with one of its 
dependencies.
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.