Build instructions for MSYS2 MinGW32.
Clone this wiki locally
The build process on MSYS2 is a lot easier than manually installing
Boost and using Visual Studio, in my opinion. However, the source was
not set up to build properly in this environment. When running
a standard MSYS2/MinGW32 environment,
WIN32 is not set, but
__WIN32__ are. Checking these along with the unqualified
version catches all the varieties of Windows builds.
t_value's header was not set up to properly import the
replacement on Windows, so it is added.
The process for building on MSYS is similar to the method for Visual Studio documented in the Wiki. All the work is done from inside the 32-bit MinGW shell. The basic development pipeline, CMake, and Boost all need to be installed (from inside MSYS and for the MinGW32 environment).
cmake -G "MSYS Makefiles" to create build files.
system.hh, replacing all the blank
#defines in the application
configuration section with
#define VARNAME 0.
system.hh to 0 as well; It's wrong.
ledger.exe should work fine from inside the MSYS
shell, but outside it needs dynamic access to some DLLs. Tracking down
exactly which ones is nasty; I used Dependency Walker for it. Note that
if you have Git for Windows installed on your PATH, libstdc++ will seem
like it exists, but as the wrong architecture. Put the 32 bit libstdc++
in the EXE's directory.
In my case, the necessary DLLs were:
libboost_filesystem-mt.dll libboost_regex-mt.dll libboost_system-mt.dll libgcc_s_dw2-1.dll libgmp-10.dll libicudt57.dll libicuuc57.dll libledger.dll libstdc++-6.dll libwinpthread-1.dll