annotate wiki/BuildingOnWindows.wiki @ 706:f8e90b5d85fd tip

Delete CARFAC code from this repository. It has been moved to https://github.com/google/carfac Please email me with your github username to get access. I've also created a new mailing list to discuss CARFAC development: https://groups.google.com/forum/#!forum/carfac-dev
author ronw@google.com
date Thu, 18 Jul 2013 20:56:51 +0000
parents 36cf5d60d584
children
rev   line source
tomwalters@326 1 #summary Building AIM-C on Windows
tomwalters@326 2
tomwalters@331 3 = Windows build =
tomwalters@326 4 Windows build instructions tested on Windows XP. If you know about building on Windows 7 or other platforms, please add the details here.
tomwalters@326 5
tomwalters@326 6 Install [http://www.python.org/download/ Python 2.7] (default options)
tomwalters@326 7
tomwalters@326 8 Install [http://www.scons.org/download.php SCons 2.0.0.final.0]
tomwalters@326 9
tomwalters@326 10 Add C:\Python27\Scripts to the path
tomwalters@327 11 Control Panel->System->Advanced->Environment Variables->System Variables>PATH->Edit->Add ';C:\Python27\Scripts' (sans quotes) to the end of the line
tomwalters@326 12
tomwalters@326 13 Install subversion
tomwalters@327 14
tomwalters@327 15 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].
tomwalters@326 16
tomwalters@326 17 Install [http://www.mega-nerd.com/libsndfile/#Download libsndfile]
tomwalters@326 18
tomwalters@326 19 Download and install [http://www.microsoft.com/express/Downloads/#2010-Visual-CPP MS Visual C++ Express 2010]
tomwalters@327 20
tomwalters@327 21 The defaults should be fine for installing just VC++ 2010
tomwalters@326 22
tom@428 23 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 and the runtime libraries for libpng, freetype, fontconfig, expat and Zlib from [http://www.gtk.org/download-windows.html the GTK Windows downloads page]. Unzip all these into a directory somewhere (I used C:\Program Files\cairo\) and set the windows_cairo_libraries variable at the top of the SConstruct file to the correct path.
tom@426 24
tom@426 25 To use the noise generator module in AIM-C, you need to install the boost random library.
tom@426 26 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.
tom@426 27 (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).
tom@426 28
tom@426 29
tom@428 30 Then, to build:
tom@428 31 Open (Visual Studio) Command Prompt
tomwalters@327 32
tomwalters@326 33 cd to the directory of your choice
tomwalters@327 34
tomwalters@327 35 svn checkout http://aimc.googlecode.com/svn/trunk/ aimc-read-only
tomwalters@327 36
tomwalters@328 37 Run the 'Visual Studio Command Prompt' and execute the command:
tomwalters@331 38 scons
tomwalters@331 39
tomwalters@331 40 == Building the Python Module ==
tomwalters@332 41 Download [http://www.swig.org/download.html SWIG]
tomwalters@332 42
tomwalters@332 43 If using MSVC 2010
tomwalters@332 44 Edit
tomwalters@333 45 C:\Python27\Lib\distutils\msvc9compiler.py line 243 to be
tomwalters@333 46 toolskey = "VS100COMNTOOLS"
tomwalters@333 47
tomwalters@333 48 For all versions of MSVC, you may also need to add the line
tomwalters@333 49 ld_args.append('/MANIFEST')
tomwalters@333 50 just after the line
tomwalters@333 51 ld_args.append('/MANIFESTFILE:' + temp_manifest)
tomwalters@333 52
tomwalters@333 53 then run
tomwalters@333 54 pythonsetup.py "build_ext"