Setup MSVS 2013 Environment for building Armory in Windows
You must use 64-bit packages!
List of packages needed
The latest versions of all packages might be different by the time your are reading this, and it tends to be safe to use newer versions, but we know these versions work. You must use python 2.x and Python-Qt4, do not use python3.x or Python-Qt5.
To just build the _CppBlockUtils.pyd so you can run ArmoryQt.py, you can omit py2exe and NSIS, and any steps related to them (such as making sure stuff is in your PATH).
Extra steps besides just installing everything
To accommodate systems with multiple versions of python, some tweaks were made to distinguish between them.
C:\Python27\python.exewas copied and renamed to
C:\Python27_64\Lib\site-packages\PyQt4\pyrcc4.exeis referenced by a build script even though default python installation does not have the _64. Either rename the base directory or modify BitcoinArmory/cppForSwig/BitcoinArmory_SwigDLL/build_installer_64.bat to reference the correct path.
Make sure the following folders are in your PATH (environment variable):
C:\Program Files (x86)\NSIS\
py2exe chokes on zope because its directory does does not contain a init.py. Make sure the following file exists (and is empty):
Swig is not installed like the other packages. Unpack swig directory into cppForSwig and rename it to swigwin. The following path should be valid: