Skip to content
hatapitk edited this page Jul 4, 2012 · 2 revisions

Building on Windows

Building libreoffice-voikko requires a recent version of LibreOffice (like 3.4), LibreOffice SDK of same version and a MSVC compiler supported by the SDK. Additionally you need to install

  • GNU Make, GNU Sed and zip to C:\voikko\bin
  • headers of libvoikko (src/*.h from libvoikko source package) to C:\voikko\include\libvoikko
  • libvoikko-1.dll and libvoikko-1.lib (these you get by building libvoikko with MSVC) to C:\voikko\lib

Unpack the source package. If you are building a standalone extension (which is what usually is done on Windows) you should create directory extras under the source tree and place libvoikko-1.dll there. Additionally you can place any dictionaries you want to ship with the extension under that directory. At least extras/2/mor-standard is recommended.

Open Windows command prompt and go to the source directory. Run setsdkenv_windows.bat from LibreOffice SDK. On the first run it will ask a series of questions. You need to provide correct paths for the office, SDK, MSVC, GNU Make and zip installations. There are other questions too, answers to them do not matter here. When paths to office and SDK are asked you should use the legacy "8.3" names for directories that contain spaces in their names, for example C:\PROGRA1\LIBREOF1. Finally the script creates another bat script that can be used later to initialize the build environment without going through the same questions again.

Some settings in the Makefile need to be changed for the build. You can either edit the file directly or pass the variables to make on the command line.

LIBVOIKKO_PATH=c:/voikko STANDALONE_EXTENSION_PATH=extras SHOW_LICENSE=1

(the last one is only needed if you want to distribute the extension as an independent product)

Finally start the build by running make oxt. During the build xcopy may ask about overwriting certain files in the build directory, you can allow it to do that. If everything goes fine the final extension can be found from build/voikko.oxt.

Clone this wiki locally