INSTALLING PDP_PIDIP_OSX ON OSX.3
by sara kolster


BEFORE YOU START
SOME USEFULL UNIX-COMMANDS
INSTALL FINK
CHANGE YOUR FINK.CONFIG FILE
INSTALLING X11 / X11SDK
INSTALLING REQUIRED LIBRARIES
INSTALL IMAGEMAGICK 5.5.6
INSTALL PD
INSTALL PDP_PIDIP_OSX
CHANGE / CREATE .PDRC FILE
YOUR PD.COMMAND FILE
START PD
HIDDEN FILES

Another usefull Installation-log is made by Rob Canning. You might have a look there as well: http://www.robcanning.utvinternet.com/pidip-install-osx.html



BEFORE YOU START:


1.I recommend to make a folder [i.e.in your Users/username-directory] where you can put all your downloads. This to make it more organized, so you can find you're packages easily.
2. Make sure you've OSX.3 [Panther] installed.
[I tried to do this installation with OSX2.8, but ran into trouble with the X11-system of Xfree86; Maybe there's another X11 system out there; [old version of MacX11-maybe, but since they don't give this download on their page anymore, I upgraded to Panther and started from there]



SOME USEFULL UNIX-COMMANDS:


% su
With this command you can login as root; remember your password; if you forgot you password or you don't have a root-account; you can create one with your install OSX-cd.

# means you're in rootmode [you basically are allowed to do everything [read/write/execute]
% means you're in usermode [depending on the permissions of a directory you can read/write/execute]

pico is a texteditor in which you can change textfiles. If you want to change a file in your /Users/username/ directory, you enter the following command: [you have to be root to do this]

% su
password:
# pico /Users/username/namefile


find / -name 'blabla*' -print
--> find all the files starting from root with the name starting with blabla

change permissions for a certain directory / file:
# chmod 755 namedirectory

7= read, write, execute
5= read, write

Other usefull terminal-links:
http://jimmont.com/resrc/osx.htm
http://www.gzip.org/#faq6
http://www.osxfaq.com/Tutorials/LearningCenter/UnixTutorials/LoseTheMouse/page2.ws



INSTALL FINK


Go to:
http://prdownloads.sourceforge.net/fink/Fink-0.6.2-Installer.dmg?download to download fink.

For installation-help:
http://fink.sourceforge.net/download/index.php



CHANGE YOUR FINK.CONFIG FILE:


1. Login as root
% su
password:

2. Edit your fink.conf file (which you can find here: /sw/etc/fink.conf)
# pico /sw/etc/fink.conf

You should make the line Trees: like the one below:

Trees: local/main stable/main unstable/main stable/crypto local/bootstrap

3. Exit pico:
ctrl-x / Y / enter



INSTALLING X11 / X11SDK


1. If you have an older / other version of X11 [via Fink f.e.] you need to remove this first. [if you haven't; skip this step]

% sudo dpkg -r --force-all system-xfree86 system-xfree86-42 system-xfree86-43 \ xfree86-base xfree86-base-shlibs
% rm -rf /Library/Receipts/X11SDK.pkg
% rm -rf /Library/Receipts/X11User.pkg
% rm -rf /usr/X11

% fink selfupdate
% fink index

2. Install X11 / X11SDK

--> X11 is also available from the website:
http://www.apple.com/macosx/features/x11/
--> X11SDK is available from:
http://developer.apple.com/tools/download/
[pain --> after you creat a login, you can freely download]

Install the packages X11 / X11SDK [follow installer instructions]
Then try to selfupdate fink:
[see: --> http://fink.sourceforge.net/faq/usage-packages.php#apple-x-bugs]

Even if you install XCode [from cd], the X11SDK is not installed by default. It has to be installed either with a custom Xcode install, or by clicking on the X11SDK pkg in the Packages folder.

3. Selfupdate Fink:

% fink selfupdate
% fink index

4. Controlling methods:

You can check your install by running fink-virtual-pkgs and checking to see that the Package: system-xfree86 section is present and the provides: line contains x11.

Or,

If you run the command:
% fink list -i xfree

Then you should get the following output:

i system-xfree86
i system-xfree86-dev
i system-xfree86-shlibs
2:4.3-1
2:4.3-1
2:4.3-1

[placeholder for user installed x11]
[placeholder for user installed x11 development tools]
[placeholder for user installed x11 shared libraries]


If you don't see everything properly installed, the safest way to fix this error is to remove all older copies of xfree86 or system-xfree86 and reinstall Apple's X11 and the X11SDK. [repeat step 1 again]



INSTALLING REQUIRED LIBRARIES WITH FINK:


1. Required packages:
aalib
ffmpeg
gsl-shlib
libpng3
libpng3-shlibs
libquicktime0-shlibs
libquicktime0
libquicktime0-bin
Imlib2

2. Installing

You can install those packages by entering the following commands:
% apt-get install package
or
% fink install package
or
via the Fink Commander application [in your Application-folder] by clicking or typing the package and go to the menu: --> source --> install

So if one of those methods is not working for you, try the other.

3. Troubleshooting

Lots of packages are dependant on other packages. Fink will install those packages for you, if this doesn't work for you, write down the dependant packages and install those individually. [Fink install name-package]

The Faq [http://fink.sourceforge.net/faq] or Finklist might help you out.

4. If you get the Error-message: Table of contents is out of date:

I found a solution at the Fink Faq-page:
Q5.10: When I try to build a package, I get a message that a "table of contents" is out of date. What do I need to do?

A: The output hints at what to do. The message is usually something like:
ld: table of contents for archive: /sw/lib/libintl.a is out of date; rerun ranlib(1) (can't load from it)

What you need to do is run ranlib (as root) on whatever library is causing the problem. As an example, for the case above, you would run:

sudo ranlib /sw/lib/libintl.a

From --> http://fink.sourceforge.net/faq/comp-general.php



INSTALL IMAGEMAGICK 5.5.6


[It needs to be 5.5.6, and that's the install version via Fink. However, i didn't succeed via Fink, but built it from source myself]

[Depending on following packages:
freetype freetype2 freetype2-shlibs ghostscript ghostscript-fonts lcms lcms-shlibs type1inst]

1. Method via Fink:
First edit .info file from ImageMagick:
--> Open Finkcommander, click on ImageMagick and open File --> open .info
or in your terminal:
# pico
/sw/fink/10.2-gcc3.3/unstable/main/finkinfo/graphics/imagemagick-5.5.6-12.info

Here, find where is says --disable-shared and change it to --enable-shared and save.
[make sure you're root]

NB. Make sure you've permissions to read and write in the /sw/ folder. If not, change this

Then do:
% fink install Imagemagick

--> copy Imagemagick to your /usr/local/lib/
[I think the libs of Imagemagick are in the folder /sw/lib/ , but i'm not sure]
% cd /sw/Iib/
% cp /sw/lib/imagemagick* /usr/local/lib/

2. Method by source:
--> Download Imagemagick.5.5.6 from:
http://studio.imagemagick.org

--> Install-instructions you'll find at:
http://studio.imagemagick.org/www/Install-unix.html

--> Unpack the downloaded file:
[Make sure you're in the directory of the downloaded package]

# gzip -dc ImageMagick-5.5.6-12.tar.gz | tar xvf -
# cp -Rf ImageMagick-5.5.6-12 /usr/local/
# cd /usr/local/ImageMagick-5.5.6-12
# ./configure --enable-shared
# make install

3. Controlling
Make sure ImageMagick is in /usr/local/lib

% cd /usr/local/lib
% ls

Here you should see all your ImageMagick-files.



INSTALL PD


Follow notes of Hans-Christoph Steiner who 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

Miller's site has also a package of pd available:
http://www.crca.ucsd.edu/~msp/software.html

Pd should be installed at /usr/local/lib/



INSTALL PDP_PIDIP_OSX


1. download package: pdp_pidip.osx.tar.gz from:
--> http://ydegoyon.free.fr/pidip.html
[direct link is: http://ydegoyon.free.fr/pdp_pidip_osx.tar.gz]

2. unpack and copy the directory pdp_pidip_osx to pd-folder.
[while copying file, make sure you're in the directory that contains the pdp_pidip_osx directory]

# gzip -dc pdp_pidip_osx.tar.gz | tar xvf -
# cp -Rf pdp_pidip_osx /usr/local/lib/pd

3. Copy the font which is in the /usr/local/lib/pd/pdp_pidip_osx/fonts/helmetr.ttf to /usr/X11R6/lib/X11/fonts/TTF/

% cd /usr/local/lib/pd/pdp_pidip_osx/fonts/
% cp helmetr.ttf /usr/X11R6/lib/X11/fonts/TTF/



CHANGE / CREATE .PDRC FILE


1. If you don't have one, create one in your home directory: [/Users/username/]
# cd /Users/...
# pico .pdrc

2. add the lines:
-path /usr/local/lib/pd/extra
-lib zexy:bonk~:choice:expr~:fexpr~:fiddle~:lrshift~:loop~
-lib pique:iem_mp3:iem_t3_lib:iemlib1:iemlib2:pdp:
-path /usr/local/lib/pd/pdp_pidip_osx/doc/pidip
-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
-verbose



YOUR PD.COMMAND FILE


Your pd.command file [/Applications/Pd.command] should look like this:

#!/bin/sh

/usr/local/bin/pd -rt



START PD


--> First start X11 -program [Applications/Utilities/X11]
--> Start pd: go to your Applications folder and doubleclick on Pd.command.

Open one of the Documentation-files to see if everything is working ok.
Pd-documentation --> Pdp_pidip_osx --> doc --> Introduction --> Quicktime.pd

Load a movie with photo.jpeg codec
--> click on Bang [on right side]
--> open movie
--> press play in patch



HIDDEN FILES


To see all of your hidden-files in the Finder. [For some usability-reasons, Apple keeps these files out of your sight]

You can directly edit your /Users/username/Library/Preferences/com.apple.finder.plist file with the Property List Editor application.

1. Launch the Property List Editor [/Developer/Applications/Utilities/]
2. Open the com.apple.finder.plist file located in Users/username/Library/Preferences
3. Click on the disclosure triangle next to Root to reveal the values and keys for the Finder's preferences.
4. Select Root by clicking on it once.
5. Click on the New Child button.
6. In the first column, enter AppleShowAllFiles
7. Change its class to Boolean
8. Change its value to yes
9. Save the changes to the plist file [File --> save]
10. Quit the Property List Editor

Your almost there. To make the changes take effect, you need to relaunch the Finder, as follows:

1. Go to [apple] --> force quit [or Option-apple-esc]
2. Select the Finder
3. Click the relaunch button

I relaunched my FInder twice, since i didn't see the files the 1st time.

From:
Book: MacOSX in a Nutshell / Author: Jason McIntosh, Chuck Toporek, Chris Stone / [O'reilly]



BACK TO TOP