[Pbrt-discuss] Re: Compiling on Linux

Randall Hopper viznut at charter.net
Sat Sep 23 22:54:06 EDT 2006


Brian Gottreu:
|I'm having a host of problems compiling pbrt under linux. I first tried
|on 64-bit Ubuntu 6.06. ... 32-bit Ubuntu 6.06. ... Fedora Core 5.
|... "error: extra qualification 'Disk::' ...
|
|On what versions of Linux have you all successfully compiled and run
|pbrt? Have any suggestions as to what I can do to get it working?

SuSE 10.1 32- and 64-bit here. Formerly SuSE 9.1 and 9.3 (32- and 64-bit).
Free download: www.opensuse.org

As you found out on Fedora, pbrt 1.02 does need a few changes to build on
newer versions of gcc as it's more syntax picky and aggressive with its
optimizations (e.g. variable aliasing). You also need -fPIC on AMD64
(64-bit) as shared libraries must be PIC on that platform. The attached
patch will get you going with gcc's up through 4.1.0 on 32- and 64-bit.

Can't speak to your Ubuntu issues though as I've never seen those.
However, re your "Cannot restore segment prot after reloc" error on Fedora,
it appears you are running your system in secure mode and need to grant
some permissions to PBRT or need to disable secure mode:

http://www.ittvis.com/services/techtip.asp?ttid=3092
http://www.adeptscience.co.uk/kb/article/E876
http://support.wolfram.com/mathematica/systems/linux/general/selinux.html

Randall
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pbrt-1.02.patch.zip
Type: application/zip
Size: 2376 bytes
Desc: not available
Url : http://six.pairlist.net/pipermail/pbrt-discuss/attachments/20060923/c44fce76/pbrt-1.02.patch.zip


More information about the pbrt-discuss mailing list