Most of the external libraries used to build Pd can be installed very easily via Fink. If you don't already have Fink installed, here are the download instructions. The below commands install all of the needed libraries for the various parts of Pd.
For Pd-extended, you need a lot of packages. If you want to try to install binaries and save the time it takes to compile everything, replace the command
apt-get. Not all packages are available in binary format, so you'll have to use
fink to compile those. You can install these from the stable binary distro:
sudo fink install coreutils-default svn-client sed libsndfile1-dev libsndfile1 libogg libvorbis0 libtiff pcre lua51 lua51-dev imlib2 libgnugetopt
For these, they need to be compiled from source:
sudo fink install libtheora0 imagemagick imagemagick10-dev libjpeg libpng3 libmpeg freetype219 gsl mysql15-dev postgresql82-dev ladspa ladspa-dev sdl libusb a52dec-dev a52dec-shlibs libiconv libiconv-dev
These packages need to be installed from the "unstable" Fink distro. To use these packages also, then you need to configure your Fink install to use the "unstable" distro (which has been quite stable for me). The Fink FAQ, question 5.8 tells you how.
It is a good idea to try installing all of the dependencies from stable, then switch to unstable for the rest. If an unstable package adds more dependencies, then I switch back to stable and try building them all there, then switch back to unstable to finish everything. It may sound complicated, but it is not really. It is just some copy-n-pasting of package names, and running
fink configure a few times.
sudo fink install ffmpeg ffmpeg-dev libavutil-dev libavcodec-dev libavcodec1-dev libavcodec1-shlibs libdv4 speex3 lame-dev lame-shlibs fftw3 libftgl1 libhid0 libquicktime0 faac-shlibs faac-dev libfaad1-dev libfaad1-shlibs libpostproc1
These are dependencies that aren't required for the automatic builds as of now, but there are some libraries in SVN that use them. They can be a pain to build, so they are optional.
- Apple Developer tools
- You will need to install the Apple Developer's Tools to get the Apple compiler and tools. It comes with the Mac OS X CDs or you can download it from Apple. Make sure that you also have X11User.pkg and X11SDK.pkg installed.
You need the Tcl/Tk frameworks in order to build Pd. Currently, there aren't regular releases of Tcl/Tk for Mac, but it is easy to build from source. To download the version used for Pd-extended, use these rsync instructions. First, rsync pd-extended, then rsync tcltk_core-8-4-branch into the same folder, then run these commands:
- Jack OS X
- Pd-extended uses Jack on Mac OS X also. I have not used it beyond very basic testing, but it has been reported to work. It does compile fine. This is the version I used: JackOSX.0.76.pkg.zip Its an installer, once its downloaded, just run the installer.
sudo mv build/tcl/Tcl.framework /Library/Frameworks
sudo mv build/tk/Tk.framework /Library/Frameworks
If you are running Mac OS X 10.4 Tiger or newer, this is not technically necessary since Tcl/Tk 8.4.7 is included. But there are lots of advantages to running the newer versions of Tcl/Tk
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.