Minimalist GNU for Windows MinGW provides the tool set used to build the library and should be installed. When the MinGW installer starts select the mingw32-base and mingw32-gcc-g++ components. From the menu select "Installation" -> "Apply Changes", then click "Apply". Finally add C:\MinGW\bin to the PATH variable.
CMake is required to build the library and can be downloaded from www.cmake.org
The C Foreign Function Interface for Python CFFI module is also required, if you wish to use the Python module.
- pip install cffi
In order to build the documentation doxygen is required.
Start a command prompt as an administrator
The default build is for 32 bit machines
- mkdir Release
- cd Release
- cmake -G "MinGW Makefiles" ..
- mingw32-make
- mingw32-make test
- mingw32-make doc
- mingw32-make install
Post install append the PATH system variable to point to the install ./lib.
My Computer -> Properties -> Advanced > Environment Variables
The build can be configured using by setting flags on the command line i.e.
- cmake -G "MinGW Makefiles" -DWORD_LENGTH=64 ..
- mingw32-make uninstall
After having built the libraries you can build a Windows installer using this command
- sudo mingw32-make package
In order for this to work NSSI has to have been installed