Install notes for pdp_pidip_osx by Rob Canning
Install PD (if not already present)
Note: while installing all this, keep an eye on the output files as sometimes you may need to change the permissions of certain folders. If you encounter errors such as Access Denied or Permission Denied you may need to change the permissions of the folders. Do this by the Get Info command (select folder then CTRL - I) and make sure you have permission to write.
There is a graphical front end called Fink Commander, which is included in the fink download and makes thinks a little friendlier if you are terminal shy.
When
fink is installed it will create a folder on your computer called /sw/
After you have installed fink you probably will only have a few packages in
the list - you will need to:
Change the fink.conf file - do this by going to the toolbar Fink Commander - Preferences - hit the 'Fink' tab. Check the box that says 'use unstable packages'
Run
the command: fink update-cvs
or in fink commander go to the toolbar go to Source and then Self-update-CVS
You will need to be connected to the internet for this and if you have a slow
connection, be prepared to let it run for a couple of hours while it retrieves
the latest package descriptions.
Now you should see all the libraries mentioned below:
With Fink install the following libraries:
aalib
ffmpeg
gsl-shlib
libpng3
libpng3-shlibs
libquicktime0-shlibs
Imlib2
From the terminal use the command:
fink install [packagename]
or from fink commander, Source in the toolbar then select Install
Some of these libraries have lots of dependencies which fink will automatically get for you too, so again, if on a slow connection, have a cup of tea or two while they download.
For fink FAQ http://fink.sourceforge.net/faq/index.php
You need to install ImageMagick in a slightly different way. You have two options either build it yourself from source or use fink.
If you decide to build it from source make sure to add the following flag when configuring: ./configure --enable-shared
or
If you are using fink commander (which i did) open the .info file (that’s where the configure flags get fed in) by selecting ImageMagick in the list and then going to -File - open .info file.
Here, find where is says --disable-shared and change it to --enable-shared and save.
By default fink builds static libraries, you need to do this for it to create dynamic libraries other wise you won't be able to find the all important libMagick-5.5.6-Q16.0.dylib
Once this has been done:
fink install ImageMagick
or
Install from the Source menu in Fink Commander
Check
in /usr/local/lib/ and you should see the imagemagick .dylib files
the other .dylib files should have been put in your /sw/lib/ folder.
http://www.imagemagick.org/ for more info and mail list archive
OK that’s the libraries taken care of.
Install X11 which pdp uses for its windows
http://www.apple.com/macosx/features/x11/
This is only for OSX 10.3 or later I have 10.2.4 so I went and got XDarwin -via the terminal command fink install xfree86
(I can't remember whether I used fink to get this or whether I got it from http://opendarwin.org)
fink
install xfree86
Install PD
If you have not already installed PD on your computer do so. You can get it from Miller's site
http://www-crca.ucsd.edu/~msp/software.html
or
Hans-Christoph Steiner has made an Installer for OSX that will put everything in the right place and includes lots of externals as well:
http://www.pure-data.org/Members/hans
Either way PD should be installed at /usr/local/lib/pd/
Download and install pdp_pidip_osx.tar.gz from:
http://ydegoyon.free.fr/pidip.html its about 1.7MB
Unpack the .tar.gz and put the pdp_pidip_osx folder in the pd folder i.e. /usr/local/lib/pd/pdp_pidip_osx
by adding the lines:
-path /usr/local/lib/pd/pdp_pidip_osx/abstractions
-path /usr/local/lib/pd/extra:/usr/local/lib/pd/pdp_pidip_osx/abstractions
-lib /usr/local/lib/pd/pdp_pidip_osx/pdp
Remember .pdrc is a hidden file and should be located in your /home/ folder if it is not there make one yourself.
Running pdp_pidip
Before running pd make sure you start up the X11 server
Start PD
If you have successfully installed pdp_pidip_osx you should see no errors in pd's terminal window - if you do see errors try and figure it out, otherwise search the archives of the pd mail list:
http://old.iem.at/mailinglists/pd-list/ or subscribe and leave a message of your own giving full details of your problem.
If everything is ok try running one of the example patches, some of the examples rely on an object pdp_v4l, this does not work yet (nor does pdp_xv) so a lot of the examples won’t run as they are presented. Try running the quicktime.pd found at ..../pdp_pidip/doc/introduction/
Load a .mov file - there is one in .../pd/doc/GEM/data/ and try and get the patch to run.
I found that Xserver created a window but it was minimized so I couldn't see it at first - it also needed a bit of a wiggle before i saw the video.
Hopefully everything will be fine and you will see your .mov file playing in a window.
Objects that do not work on OSX : pdp_v4l, pdp_xv, pdp_ffmpeg~, pdp_live~
This is as I have got with the process at the time of writing this document.
10.18pm 5 December 2003
Good luck...
Thanks to Yves for all his help, and to Pedro for his notes, which were my starting point for this document.
Rob Canning - December 5, 2003
www.robcanning.utvinternet.com