Name | Modified | Size | Downloads / Week |
---|---|---|---|
Parent folder | |||
README.txt | 2016-08-28 | 2.5 kB | |
wps2odf.cxx | 2016-08-28 | 2.1 kB | |
wps2odf.html | 2016-08-28 | 2.9 kB | |
Totals: 3 Items | 7.4 kB | 0 |
=============================================================== == Small example to create a javascript executable on OSX == =============================================================== In the following, I choose to install all bytecode/javascript in /usr/local/em/ and I do: - I install Emscripten from http://emscripten.org, add emscripten binary directory to my PATH and create a zlib's javascript version: see https://kripken.github.io/emscripten-site/docs/compiling/Building-Projects.html#using-libraries. - then I download and install librevenge from http://libwpd.sourceforge.net/download.html: emconfigure ./configure PKG_CONFIG_LIBDIR=/usr/local/em/lib/pkgconfig/ [YOUR OPTIONs] --prefix=/usr/local/em/ emmake make clean all sudo emmake make install - then I download and install libwps from https://sourceforge.net/projects/libwps/files/: emconfigure ./configure PKG_CONFIG_LIBDIR=/usr/local/em/lib/pkgconfig/ [YOUR OPTIONs] --prefix=/usr/local/em/ emmake make clean all sudo emmake make install - then I download and install libodfgen from http://libwpd.sourceforge.net/download.html: emconfigure ./configure PKG_CONFIG_LIBDIR=/usr/local/em/lib/pkgconfig/ [YOUR OPTIONs] --prefix=/usr/local/em/ emmake make clean all sudo emmake make install - then I download writerperfect also from http://libwpd.sourceforge.net/download.html, and I compile it: emconfigure ./configure PKG_CONFIG_LIBDIR=/usr/local/em/lib/pkgconfig/ [YOUR OPTIONs] --prefix=/usr/local/em/ emmake make clean all then I download wps2odf.cxx(from https://sourceforge.net/projects/libwps/files/testEmscriptenCompilation/) and I finish the linking by hand: EMDIR=/usr/local/em/ ; WRITERDIR=~/sources/libwpd-rw.git/writerperfect/src; 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 - to finish, I regroup: + wps2odf.html (from https://sourceforge.net/projects/libwps/files/testEmscriptenCompilation/) + fileSaver.js from https://github.com/eligrey/FileSaver.js/blob/master/FileSaver.js + wps2odf.js (just created) + wps2odf.js.mem (just created) in the final repository.