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:
/pbrt - which contains the PBRT 1.02 source tree with modifications made to its makefiles
/cs348b_extras - which contains a build of OpenEXR and libtiff that are required to properly build PBRT on myth.
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.
%%FULL_PATH_TO_MY_LOCAL_DIR%%/pbrt/bin
%%FULL_PATH_TO_MY_LOCAL_DIR%%/cs348b_extras/lib
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:
extract /afs/ir/class/cs348b/pbrt/pbrt1.02.cs348b.tar.gz into your local AFS space.
- set the appropriate LD_LIBRARY_PATH (probably a good idea to add this to your .login)
- build pbrt by typing 'make' from the /pbrt directory
- build the tools by typing 'make' from the /pbrt/tools directory