Next: , Previous: Compiling on MacOS X 10.6 Snow Leopard, Up: Specific installation examples

2.6.2 Compiling on Ubuntu 11.04 - Natty Narwhal (2011)

These steps were used to install in a fresh install of Ubuntu (11.04 - Natty Narwhal - 32 bits) on September 2011. All the command were typed in a terminal but it should be straightforward to use the synaptic package manager instead of apt-get. The text in parentheses after each command is a simple explanation and should not be typed in the terminal.

  1. sudo apt-get install subversion (install the subversion version control system)
  2. svn co my-marsyas-dir
  3. cd marsyas
  4. mkdir build
  5. cd build
  6. sudo apt-get install cmake (the regular cmake)
  7. sudo apt-get install cmake-curses-gui (the curses gui invoked by ccmake)
  8. sudo apt-get install libasound2-dev (alsa development library and headers)
  9. ccmake ../src
  10. Press [c] to configure and [g] to generate the Makefile and exit
  11. make (or make -j k where k is the number of cores of your computer + 1)
  12. cd bin
  13. ./helloWorld (you should hear a sine wave played)

Additional instructions for creating the Marsyas python bindings through Swig as well as installing matplotlib.

  1. sudo apt-get install swig (the swig interface generator for the Python bindings)
  2. sudo apt-get install python-dev (the header files for Python)
  3. sudo apt-get install python-matplotlib (the matlab-like plotting capabilities for Python)
  4. sudo apt-get install ipython
  5. cd ..
  6. ccmake ../src
  7. enable the WITH_SWIG option
  8. make
  9. sudo ldconfig /usr/local/lib (add /usr/local/lib to the location searched for libraries)
  10. sudo make install (install the Marsyas python bindings)

Now you are ready to test that everything works:

  1. python
  2. ipython –pylab

You should see a plot that has been created by passing data through a Marsyas processing network. Congratulations - you now can work with Marsyas and matplotlib a powerful combo.

If you decide to add PNG support you need the following additional steps:

  1. sudo apt-get install libfreetype6-dev
  2. enable the WITH_PNG option
  3. make
  4. sudo make install