there is an AUP report on how to checkout and build the berkeley software. it is at URL: http://graphics.lcs.mit.edu/~seth/BPRW/BPRW.html read this, and *set your environment vars*, before getting too deeply into the BMG code.