annotate wiki/Building.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 4bf09e7d8e15
children
rev   line source
tomwalters@270 1 #summary Building AIM-C
tomwalters@270 2 #labels Phase-Design
tomwalters@270 3
tomwalters@270 4 = Introduction =
tomwalters@270 5
tomwalters@270 6 AIM-C is built using the [http://www.scons.org/ SCons] build system. SCons is multiplatform, and is based on Python.
tomwalters@270 7
tomwalters@270 8 = Build Environment =
tomwalters@403 9 One of the major requirements of AIM-C is that it is written, as far as possible, in standard C++ (including some heavy dependence on the standard template library). This means that (in theory at least) it will compile under any reasonably sane C++ compiler. In practice, so far development has taken place mainly using GCC on Mac OS 10.6.
tomwalters@270 10
tomwalters@270 11 = External Dependencies =
tomwalters@403 12 Current dependencies are [http://www.mega-nerd.com/libsndfile/ libsndfile] and [http://cairographics.org cairo] for audio input and graphics output respectively. [http://www.portaudio.com/ PortAudio] is a requirement for live audio input. This will be ported over soon. The boost c++ extensions are also required for the module that adds noise to the input.
tomwalters@270 13
tomwalters@403 14 On Ubuntu, the necessary build tools and dependencies can be installed using the following command.
tomwalters@270 15
tomwalters@403 16 {{{
tomwalters@403 17 sudo apt-get install libsndfile-dev cairo-dev
tomwalters@403 18 }}}
tomwalters@270 19
tomwalters@403 20 The project also uses [http://code.jellycan.com/simpleini/ simpleini] version 4.12 for storing, parsing and writing out parameters files, but this file (and the UTF support code that it requires) is included in the source repository.
tomwalters@270 21
tomwalters@270 22 = Build Tools =
tomwalters@270 23 == Building ==
tomwalters@270 24
tomwalters@270 25 Assuming SCons is installed, to build the source tree simply navigate to the top level of the source tree (where the SConstruct file resides) and issue the command:
tomwalters@270 26
tomwalters@270 27 `scons`
tomwalters@270 28
tomwalters@270 29 == Getting SCons ==
tomwalters@270 30 On GNU/Linux systems, either use your favourite package manager to install scons, for example on Debian / Ubuntu:
tomwalters@270 31
tomwalters@270 32 `sudo apt-get install scons`
tomwalters@270 33
tomwalters@270 34 On Mac OS X, I'd recommend using MacPorts. It's a handy way of installing all sorts of free software. First install MacPorts, then run the command:
tomwalters@270 35
tomwalters@270 36 `sudo port install scons`
tomwalters@270 37
tomwalters@270 38 Alternatively, in either case, you can just download and install a tarball from the [http://www.scons.org/ SCons site].
tomwalters@270 39
tomwalters@325 40 On Windows
tomwalters@325 41 See BuildingOnWindows