Mac install notes
To install and run PBRT on my Mac with OS 10.4
Steps to setup and build PBRT
Running PBRT
-
set up paths to get to the PBRT executable
source ~/.bashrc
-
cd into whatever directory has the scenes:
cd pbrt/scenes
-
Now render and view scenes:
pbrt simple.pbrt
-
Then double click on simple.exr to view it using Preview.
If the scene file does not specify an output filename, then the image will be in pbrt.exr
- To run the debugger:
The standard makefile sets the debugger flag (OPT -g)
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
Here's a follow-up note from Bruce Adcock about this page:
"...
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