MATLAB Programming/Psychtoolbox/How to install the OS X Psychtoolbox Source on OS X

This is the steps I took to get Psychtoolbox to compile on my machine. I am sure this is probably not the best way (being that I was just winging it) but it might help you get going. Most are just a series of hacks and work arounds trying to get it all to compile without really knowing what I was doing. If anyone wants to improve these steps, feel free. --RobKohr 22:23, 26 January 2006 (UTC)


 * 1) Download the source and unzip it somewhere. Mostly this will not be used, since the version management system will be used to get the newest source, but it seems some of the stuff only exists in the source folder on the website.
 * 2) Follow these instructions to get the most up to date version of PTB
 * 3) svn checkout svn://svn.berlios.de/osxptb/trunk SOME_OUTPUT_PATH
 * 4) open the project file (located in PsychSourceGL/Projects/MacOSX/PsychToolbox/PsychToolbox.xcodeproj) with xcode 2.2 (project may need to be converted)
 * 5) There will be a number of red files. Do a get info on them and try to fix the file names and folder names in the finder to match the paths in the project view.
 * 6) Start with the files in IO Warrior libs. Rename the file folder appropriately
 * 7) For a bunch of them I had to go to PsychSourceGL/Source/Common/PsychSound/StaticOpenALLib/ and unzip a file, and drag the contents of the zip to the appropriate directory
 * 8) Some of the stuff in Cohorts need to be in the Resources folder and vice versa. Just take a look at the paths to make sure it is all in the right places.
 * 9) Download and install the CHUD framework
 * 10) Set the path for the CHUD.framework to /System/Library/PrivateFrameworks/CHUD.framework
 * 11) Put Development folder in PsychSourceGL/Projects/MacOSX/PsychToolbox/build/ . For some reason this is only in the source code you download from the psychtoolbox website.
 * 12) Go to terminal and type ln -s /Applications/YOUR_MATLAB_FOLDER /Applications/MATLAB704 ln -s /Applications/MATLAB704/toolbox/Psychtoolbox /Applications/Psychtoolbox
 * 13) Change path for QuickTime framework -> /System/Library/Frameworks/QuickTime.framework