LNK1112 and plain setup.py
I was scratching my head over why I couldn’t create a Windows AMD64 installer for PyMQI and even though I had Visual Studio 2008 Proffesional Edition installed I was still greeted with “LNK1112: module machine type ‘x64′ conflicts with target machine type ‘X86′”. All of the blog posts were mentioning various tweaks to nmake but that wasn’t actually helpful because I just wanted plain “python setup.py build” to work first and besides, I’m not using any makefiles.
Once again, turned out that reading the fine documentation should’ve been my first step. As you can read over there, for some unknown reason the compiler for 64-bit systems isn’t installed by default. Once I installed it, I found I could run a new “vcvarsx86_amd64.bat” command and then miraculously I could do “python setup.py build –plat-name=win-amd64 bdist_wininst” to make the installer