Simple instructions for building this library in Win32/64 via MSYS with g++
Log into MSYS console and and install the required mingw64 libraries and mingw64 compiler using pacman
Log into MSYS console and and install the required mingw64 libraries and mingw64 compiler using pacman Please install all the building environment with g++/gcc/cmake (mingw64)
These are the required (mandatory) libraries:
boost development
openssl development
jsoncpp development
These are the optional libraries for database compatibility
sqlite3 development
postgresql development
mariadb development
You can build the application using this command:
cmake . -DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_PREFIX:PATH=$HOME/ROOT -DCMAKE_INSTALL_LIBDIR=lib -B../libMantids-BuildWin32 -DCMAKE_C_COMPILER=/mingw64/bin/gcc.exe -DCMAKE_CXX_COMPILER=/mingw64/bin/g++.exe -G "MinGW Makefiles"
cd ../libMantids-BuildWin32
mingw32-make.exe -j12 install
and if you are using a recent MSYS that does not comes with boost::regex, you can do as follow:
cmake . -DUSE_STD_REGEX=ON -DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_PREFIX:PATH=$HOME/ROOT -DCMAKE_INSTALL_LIBDIR=lib -B../libMantids-BuildWin32 -DCMAKE_C_COMPILER=/mingw64/bin/gcc.exe -DCMAKE_CXX_COMPILER=/mingw64/bin/g++.exe -G "MinGW Makefiles"
cd ../libMantids-BuildWin32
mingw32-make.exe -j12 install
Note: please replace $HOME/ROOT
prefix installation for your own target dir.