view wiki/BuildingOnWindows.wiki @ 426:b43c2eec4f73

Edited wiki page BuildingOnWindows through web user interface.
author tom@acousticscale.org
date Tue, 02 Nov 2010 22:17:13 +0000
parents 1a232b481f47
children 36cf5d60d584
line wrap: on
line source
#summary Building AIM-C on Windows

= Windows build =
Windows build instructions tested on Windows XP. If you know about building on Windows 7 or other platforms, please add the details here.

Install [http://www.python.org/download/ Python 2.7] (default options)

Install [http://www.scons.org/download.php SCons 2.0.0.final.0]

Add C:\Python27\Scripts to the path
Control Panel->System->Advanced->Environment Variables->System Variables>PATH->Edit->Add ';C:\Python27\Scripts' (sans quotes) to the end of the line

Install subversion

There's a  [http://subversion.apache.org/packages.html#windows list of various subversion packages for Windows here], I used [http://www.sliksvn.com/en/download SilkSVN].

Install [http://www.mega-nerd.com/libsndfile/#Download libsndfile]

Download and install [http://www.microsoft.com/express/Downloads/#2010-Visual-CPP MS Visual C++ Express 2010]

The defaults should be fine for installing just VC++ 2010

To build the video output for AIM-C, you'll need to install the Cairo development libraries and a few other support files. According to the page at http://cairographics.org/download/ you need the cairo dev library, libpng and Zlib from [http://www.gtk.org/download-windows.html the GTK Windows downloads page].

To use the noise generator module in AIM-C, you need to install the boost random library.
To do this download the boost package for your visual studio version from [http://www.boostpro.com/download/ boostpro.com] and install at least the 'random' package.
(If you don't need this module, you can remove ModuleNoise.cc from the list of modules in the SConstruct file and then you don't need boost at all).




Open Command Prompt

cd to the directory of your choice

 svn checkout http://aimc.googlecode.com/svn/trunk/ aimc-read-only

Run the 'Visual Studio Command Prompt' and execute the command:
 scons

== Building the Python Module ==
Download [http://www.swig.org/download.html SWIG]

If using MSVC 2010
Edit
C:\Python27\Lib\distutils\msvc9compiler.py line 243 to be
 toolskey = "VS100COMNTOOLS"

For all versions of MSVC, you may also need to add the line
 ld_args.append('/MANIFEST')
just after the line
  ld_args.append('/MANIFESTFILE:' + temp_manifest)

then run
 pythonsetup.py "build_ext"