More information can be found at pbrt.org.

==Building PBRT on Linux (the 'myth' machines in Sweet Hall)==

The public release of PBRT 1.02 available on www.pbrt.org requires modification to build on Stanford's 'myth' machines. We have placed a myth-specific tar file online at /afs/ir/class/cs348b/pbrt/pbrt1.02.cs348b.tar.gz. This archive contains two subdirectories:

After unzipping this archive to %%MY_LOCAL_DIR%% in your home directory, you will need to add the following directories to your environment's library search path.

For example, assume I unzipped the archive to /afs/ir/stanford/users/k/a/kayvonf/src. Then in csh I'd set my LD_LIBRARY_PATH to:

setenv LD_LIBRARY_PATH /afs/ir/stanford/users/k/a/kayvonf/src/pbrt/bin:/afs/ir/stanford/users/k/a/kayvonf/src/cs348b_extras/lib

So the entire process to compile PBRT on a myth machine is:

  1. extract /afs/ir/class/cs348b/pbrt/pbrt1.02.cs348b.tar.gz into your local AFS space.

  2. set the appropriate LD_LIBRARY_PATH (probably a good idea to add this to your .login)
  3. build pbrt by typing 'make' from the /pbrt directory
  4. build the tools by typing 'make' from the /pbrt/tools directory