sudo gcc_select 3.3since default is 4.0
export PBRT_SEARCHPATH=$HOME/pbrt/src/bin export PATH=$PBRT_SEARCHPATH:$PATHUse whatever pathname corresponds to where you put the PBRT files. I have to manually issue
source ~/.bashrceverytime I log in. According to documentation I've read, the .bashrc file should be executed automatically, but it doesn't seem like it is. Maybe these commands should go in some other system file but for now I'm content to manually source it.
ranlib pbrt/src/OpenEXR/lib-osx/*.aagain, use whatever path you've put pbrt in.
maketo build the executable after which I could render simple.pbrt and view it
source ~/.bashrc
cd pbrt/scenes
pbrt simple.pbrt
gdb pbrt ... (gdb) break Scene::Render() Breakpoint 1 at 0x18a98: file core/scene.cpp, line 21. (gdb) run < simple.pbrt ... Breakpoint 1, Scene::Render (this=0xd00a40) at core/scene.cpp:21 21 Sample *sample = new Sample(surfaceIntegrator, (gdb) continue ... (gdb) quit
"... In there, you note a problem with getting the environmental variables to be read by Bash. I was able to get this to work if I put the same lines in ~/.profile, instead of ~/.bashrc (this seems to be a Mac OS X specific oddity of where Bash looks). I also ended up using GCC 4.0, and the Fink version of OpenEXR, which I detail more at http://talamathi.blogspot.com/2007/09/pbrt-and-mac-os-x-10410.html"Thanks, Bruce