alonso laurent David Tardon


Getting the sources

libwps sources are stored in git. To get them, you can use:

git clone git:// libwps

or you can browse the code online.

Building it


You will need these applications in order to compile libwps:

Once the source has been checked out, libwps can be built in usual manner:

cd libwps
make install

Finally, if you want also to create ODF documents, you need:


Once you have done a change that you are happy with, and that builds with libwps, contribute it back, we'll be happy to integrate it! All you need to do is to send us a patch. The followning commands will commit the changes to your local repository and create one or more patch files. You can send these as a ticket.

git commit -a
git format-patch origin/master


On OSX or on Linux, the simpler method is probably to install afl . Then you can recompile libwps using:

CXX=PATH_TO_AFL/afl-g++ ./configure [--with-sharedptr=boost|c++11|tr1]
make clean all install

or if you compile with clang:

CXX=PATH_TO_AFL/afl-clang++ ./configure [--with-sharedptr=boost|c++11|tr1]
make clean all install

the next step consists in regrouping a list of test files in some directory (for instance input) ; finally, you can launch the afl-fuzz:

afl-fuzz -i input -o output wps2raw @@


afl-fuzz -i input -o output wks2raw @@


On OSX, the creation of the libraries seems to work while the creation of the executables is still not supported,
ie. after installing Emscripten from and creating a zlib's javascript version: in /usr/local/em,
I am able to compile librevenge, libwps, libodfgen by

  emconfigure ./configure PKG_CONFIG_LIBDIR=/usr/local/em/lib/pkgconfig/ [OPTIONS] --prefix=/usr/local/em/
  emmake make clean all
  sudo emmake make install

which creates a byte code version of the corresponding libraries and install them in /usr/local/em/.

Then I begin to compile writerperfect by

  emconfigure ./configure PKG_CONFIG_LIBDIR=/usr/local/em/lib/pkgconfig/ [OPTIONS] --prefix=/usr/local/em/
  emmake make clean all

and I finish compiling a final executable by hand, ie. I update wps2odt.cxx (see and I compile with:

  em++ -O2 -DSHAREDPTR_STD -I $WRITERDIR/lib -I $WRITERDIR/conv/odf -I$EMDIR/include/librevenge-0.0 -s DEMANGLE_SUPPORT=1 -L$EMDIR/lib -llibwps-0.4 -llibodfgen-0.1 -llibrevenge-0.0 -llibrevenge-stream-0.0 -llibz wps2odf.cxx -L$WRITERDIR/conv/odf/.libs -llibodfhelper -llibodfwps -L$WRITERDIR/lib/.libs -llibwriterperfect_internal -s EXPORTED_FUNCTIONS='["_main","_callConversion"]' -o wps2odf.js

Finally, I copy in the final repository:


You can get in touch with us:

Project Admins:

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks