Compile Mac OS X
Apple Development Kit from OS X installation DVD.
Installation of libjpeg using Fink
You could go through the process of downloading, configuring, and compiling these yourself, but, if you're using Fink, there's really no need. Fink automates the installation of dozens of UNIX packages and is extremely easy to work with.
Follow these instructions and you'll end up with a new directory called /sw with a great deal of software in it. You can now use Fink to install libraries with a single command. Here's how you install libjpeg:
% sudo /sw/bin/fink install libjpeg
Return to TestDisk Compilation