I finally figured out what I was doing wrong, so I thought I would answer my own question and avoid a Wisdom of the Ancients.
- install Xcode.
- install Xcode Command Line Tools via the Preferences dialog (Apple's documentation showing how to do this in Xcode 4)
- download CPPUnit from Sourceforge
- extract
- Run
./configure
- run
make
- run
sudo make install
It's possible that the first time I tried this I didn't run the correct command for ./configure
but that's a dubious claim given the fact that I was able to tab complete i.e. I shouldn't have been able to run say ./config
.
But I think the real key to my problem was having to call sudo
on the make install
. I was getting a permission error because the script needs admin rights to put the libraries where they need to go. I could have swore I tried this at some point and it too failed.
I had a coworker try this for me a month or so ago and he got it to work. I procrastinated retrying, but once I did, it worked like a charm. As far as I know, there's no bug between OS X 10.8.1 and 10.8.2 or .3.
Once I followed the steps I have listed above, I was able to go back to Netbeans and add a unit test without the dialog complaining. Furthermore, the test code compiled and ran.