Personal tools
You are here: Home documentation developer Debian
Views

Edit history

Edit: -1 of 1
Time: 2012-02-06 23:23:34
Note: /pd/pd/docs/developer/Debian/edit "amd64 & libhid"

changed:
-
= Building for GNU/Linux using Debian or Ubuntu =

First you will need to make sure that you have all of the standard development tools installed.  To do that, run this command in your Terminal:

'''
sudo apt-get build-dep puredata gem pdp
'''


== Extra Required Packages ==

All of these packages are used in the compilation of Pd-extended on Debian Sarge/stable.  All of them come from the standard Debian repositories except those marked.  The easiest way to install all of these is to copy and paste the list of packages on a line starting with '''apt-get install'''.

This is all that is needed to compile Pd-extended:

'''
sudo apt-get install 
fakeroot
ttf-dejavu
libfftw3-dev
libspeex-dev
libvorbis-dev
libflac-dev
libsndfile1-dev
libsamplerate0-dev
libgavl-dev
libmad0-dev
dssi-dev
liblo-dev
libhid-dev
flite1-dev
libtk-img
tcllib
swig
tcl8.5-dev
tk8.5-dev
liblua5.1-0-dev
'''

Note: Debian Squeeze for AMD64 users might have to download [http://packages.debian.org/lenny/amd64/libhid-dev/download libhid-dev] and [http://packages.debian.org/lenny/amd64/libhid0/download libhid0] from the Lenny oldstable repository

LAME is a free library that provides mp3 support.  It was not in Debian until Debian/wheezy or Ubuntu until Ubuntu/intrepid.  You can install it by doing

'''
sudo apt-get install 
libmp3lame-dev
'''

If that fails, then you need to add an external repository.  The mp3 format is patented
([http://www.nosoftwarepatents.com/ No Software Patents!]) in the U.S.A., Germany, and maybe other countries, so Debian could not include LAME.  Some of the patents recently expired.  You can get LAME packages from the [http://www.debian-multimedia.org/ debian-multimedia .org repository].  If you live in a country where these patents apply, you need to make sure you have a license for the patented software, or only use this software for research purposes.  You can add this to your '''/etc/apt/sources.list''' using a text editor or using '''synaptics'''.

{{{
deb http://www.debian-multimedia.org stable main
}}}

For Ubuntu, you can get it by enabling '''multiverse'''.  You can add it manually in your '''/etc/apt/sources.list''', uncomment the lines that have '''dapper universe''' and add '''multiverse''' to the end:

{{{
deb http://us.archive.ubuntu.com/ubuntu/ dapper universe multiverse
}}}

Now run '''apt-get update''' and then install these packages:

'''
liblame0 
liblame-dev 
'''
Or for ''Ubuntu/intrepid'' and ''Debian/squeeze'', use these:
'''
libmp3lame0
libmp3lame-dev
'''

Note that it's not easy to build pd without mp3 support, so installing these packages is recommended even if you don't plan on using it.

=== Gridflow ===

For building gridflow, you will need :

'''
ruby1.9-dev 
ruby1.9
libx11-dev
libpng12-dev 
libmpeg3-dev
libquicktime-dev
libjpeg62-dev
xlibs-dev
'''

You should use the version from the gridflow.ca CVS repository. Download it in a new directory as it is not self-contained. Type  '''./configure; make;'''. Then, you will need to manually copy the directory to anywhere you want it to be installed. Let say ~+`/usr/local/lib/pd/extra/gridflow`+~.




= Building Pd and/or Pd-extended =

Before you start building, you will of course need to get the source code.  There are multiple ways of getting it, check out [GettingPdSource] for the options. Then move on to [BuildingPd] or [BuildingPdExtended], depending on what you want to build.

=== Autobuilders ===

The Debian autobuilders are servers which automatically build all of the Debian packages.  The Pd sources must be properly setup in order for this to work.

----
[[DebianOldStyle]]


Powered by IEM Powered by Plone Section 508 WCAG Valid XHTML Valid CSS Usable in any browser