dragonfly-msg / dragonfly

Dragonfly is a simple messaging system that helps programmers create modular distributed applications rapidly
http://dragonflymessaging.org/
Other
15 stars 8 forks source link

Building on Windows 7 64-bit with Visual Studio Express #2

Open amcmorl opened 10 years ago

amcmorl commented 10 years ago

Experience report for building Dragonfly on a Windows 7 64-bit with Visual Studio Express 2013 (a free version):

  1. A number of warnings and error came up when converting the VS solution file to VSE2013 format. I ignored them all and tried it anyway.
  2. VSE doesn't include ATL. You can get ATL from the Windows Driver Developers Kit here.
  3. Switch to 64-bit compilation. This was necessary because I wanted to use it with 64-bit Python down the line. Simply follow instructions here.

[EDIT - all is now working. I have edited the above to show the steps undertaken.]

amcmorl commented 10 years ago

Further, building PyDragonfly:

  1. Downloaded SWIG from here. Added directory containing swig.exe to my path, added PYTHON_LIB and PYTHON_INCLUDE env variables.
  2. Also switched to 64-bit compilation (see original post).
  3. As I don't have a debug version of python27.lib, I switched both Dragonfly (inc all submodules) and PyDragonfly to the Release version. I presume there was another way to specify the non-debug library to link to but this so far seems to have worked and was easy.
  4. Install ctypeslib and ctypesgen, and define CTYPESGEN environment variable as path to directory containing ctypesgen.py. Actually, I'm not sure if ctypeslib is needed - it was under linux, I think, which is why I tried that first.