Windows Compiler - SiLab-Bonn/pyBAR GitHub Wiki
This section is deprecated.
Please use Microsoft Visual C++ Compiler for Python 2.7.
- Under windows, be sure you have Visual Studio 2008. VS 2013 wouldn’t work, since distutils does not support it so far (without hacks). Best way is to have the Professional Version of VS. If this is not available install the Express Version.
- If you are using Visual Studio Professional for 64-bit make sure that you have installed the 64-bit tools. To compile it might be necessary to use the Visual Studio command prompt, e.g. if you have several versions of Visual Studio installed. It might also be needed to activate the 64 compiler.
- If you want to have a 64-bit compiler in the Visual Studio Express Version follow this hack:
- Since VS2008, doesn’t come with a 64-bit compiler, after Installing VS 2008, install Windows SDK for Windows7 and .NET Frame Work Sp1 (link)
- During installation, only tick Windows Headers and Libraries and Visual C++ Compilers
- To verify that you have all installed components, check that the Microsoft SDK contains the “amd64” version of the C/C++ compiler “cl.exe”. This is usually installed into C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\amd64\cl.exe
- copy …/VC/bin/vcvars64.bat to …/VC/bin/vcvarsamd64.bat
copy …/VC/bin/vcvars64.bat to _…/VC/bin/amd64/vcvarsamd64.bat