From gottreu at latech.edu Thu Sep 21 16:12:05 2006 From: gottreu at latech.edu (Brian Gottreu) Date: Thu Sep 21 16:11:42 2006 Subject: [Pbrt-discuss] Compiling on Linux Message-ID: <1158869525.26425.61.camel@localhost> I'm having a host of problems compiling pbrt under linux. I first tried on 64-bit Ubuntu 6.06. When running pbrt it would give a "Fatal Error: Parsing error: parse error" on the first line of any example scene i tried. Then I tried 32-bit Ubuntu 6.06. It wouldn't give a parse error, but it would produce a 355 byte exr file regardless of input file specified. And when converted to tiff with exrtotiff the tiff would be 1 pixel in size. Finally I tried Fedora Core 5. Besides needing to edit the makefile to point to the OpenEXR libraries already on my system, building on Ubuntu went smoothly. But with Fedora I got many errors of the form "shapes/disk.cpp:24: error: extra qualification 'Disk::' on member 'Sample'". I removed all the extra qualifications and pbrt built, but running it produces errorw like "Error: Can't open plug-in "/home/gottreu/pbrt/src-1.02/bin/distant.so" (/home/gottreu/pbrt/src-1.02/bin/distant.so: cannot restore segment prot after reloc: Permission denied)" 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? Thanks, Brian Gottreu From viznut at charter.net Sat Sep 23 22:54:06 2006 From: viznut at charter.net (Randall Hopper) Date: Sat Sep 23 22:52:31 2006 Subject: [Pbrt-discuss] Re: Compiling on Linux In-Reply-To: <1158869525.26425.61.camel@localhost> References: <1158869525.26425.61.camel@localhost> Message-ID: <20060924025405.GA11025@charter.net> 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