Skip to content

Setup CSC Windows Development Environment

ajochems edited this page Apr 19, 2016 · 17 revisions

To be able to build the windows wallet you need to setup and configure a C++ development environment first. The wallet is developed with Qt and uses the MinGW compiler on windows.

Install MSYS2

The following description comes from https://wiki.qt.io/MSYS2:

  1. download and install msys2 from: https://msys2.github.io/
  2. execute commands to install the necesarry packages:
pacman -Sy
pacman --needed -S bash pacman pacman-mirrors msys2-runtime

[exit] -> Close the msys2 terminal window instead of using the exit command
pacman -Su
[exit] -> Close the msys2 terminal window instead of using the exit command

pacman -S base-devel git mercurial cvs wget p7zip
pacman -S perl ruby python2 mingw-w64-i686-toolchain mingw-w64-x86_64-toolchain

Install Qt 5 32 and 64 bit versions

pacman -S mingw-w64-i686-qt-creator mingw-w64-x86_64-qt-creator

Change the minimum windows version from XP to Vista or higher else Boost 1.60 will not compile
edit: C:\msys64\mingw32\i686-w64-mingw32\include_mingw.h

	change:
		#define _WIN32_WINNT 0x502
	to:
		#define _WIN32_WINNT 0x600

Create a symbolic link for icudt56.dll because it is needed by windeployqt

ln -s /mingw32/bin/libicudt56.dll /mingw32/bin/icudt56.dll