OSX install issues

Hi,

I had the following experience installing Radiance on OSX (10.2.6) and thought I would post it here in hopes of helping others and perhaps finding a better way of getting it installed.
The machine: dual 1.4 ghz G4, 1.5 Gb ram, 2-180 Gb drives.
Software: Apple Developer Tools and x11r6.

Initially I downloaded "radiance-rad3R5.tgz" and "rad3R5supp.tar.gz" from http://www.radiance-online.org/.

After unpacking the files I ran the install command (./makeall install) and got the following error after the first few prompts:

Where do you want the library files [/usr/local/lib/ray]?
ls: lib: No such file or directory
d1: Subscript out of range.

The directory exists and not really understanding the nuances of the install script I then downloaded "rad3R5.tar.gz" and "radbin_osx.tar.gz" from http://radsite.lbl.gov/radiance/HOME.html. I copied the radbin_osx directory to /usr/local/. Changed my .tcshrc to include the following paths, the last one pointing to my current radiance project.

setenv PATH /usr/local/radbin_osx:$PATH
setenv RAYPATH /usr/local/lib/ray:$PATH
setenv PATH /Users/username/Documents/Projects/CP_test:$PATH

I then moved the ray/lib to /usr/local/lib/ray per a note I found in the email archive. This doesn't work but I'll come back to that. The same email from the archive also noted to copy all the .cal files from the ray/source directory using this command:

cp -p src/*.cal /usr/local/lib/ray

This didn't work, reporting "no match found" so I went through the each of the sub-directories of ray/src and used this command to get them to their proper home:

mv *.cal /usr/local/lib/ray

On first test picture.cal wasn't found so I downloaded "rad3R5supp.tar.gz" from
http://www.radiance-online.org/ unpacked it and moved the contents of its ray/lib to /usr/local/lib/ray. Somehow picture.cal wasn't being seen in /usr/local/lib/ray/lib/ after the initial copy.

Now radiance works!

Ultimately I hope some knowledgeable person updates the install script to make it functional but in the interim perhaps these crude workarounds will help.

some of the renders
http://jefferson.village.virginia.edu/london/model/gallery1/index.html

Take care,

Chris Jessee
[email protected]

Chris Jessee wrote:

....

Initially I downloaded "radiance-rad3R5.tgz" and "rad3R5supp.tar.gz" from http://www.radiance-online.org/.

Many thanks for your detailed report. Although I'm not sure wether this fixes your problem, it is better to download /radiance-HEAD.tgz/ instead of /radiance-rad3R5.tgz/ - quite a few bug fixes with a very minor chance for troublesome changes. Labeling it "current experimental/bug-fixed version" may not sound attractive enough,- sorry for that.
For those with limited bandwidth to the Internet, there's also a cumulative patch available on radiance-online which contains the differences between all files in rad3R5 and HEAD.
Btw: It's called HEAD because the software revision control system (CVS) labels the most recent versions with a tag 'HEAD' . The HEAD files are generated nightly and since Greg and Schorsch are actively fixing and extending the source, it makes HEAD a good choice.

While we're at it and because someone asked for CVS access lately: Realtime read access to the CVS system and the history of changes and log messages for each file is offered by a web interface at http://www.radiance-online.org/cgi-bin/viewcvs.cgi/ray/src/ .

-Peter

···

--
pab-opto, Freiburg, Germany, www.pab-opto.de

Thank you for the quick reply. I had previously tried the radiance-HEAD.tgz with the same resulting error. I believe the problem lies in the makeall script, something incorrect with a path designation or a loop that is incorrect. If someone will attempt to correct the installer I would be happy to test it and report the results. There are several people here who want to run Radiance on OSX and a working installer would really help. Have you considered putting Radiance in the Fink Project? (http://fink.sourceforge.net/) They have a great installer integrated with CVS making for easy installs and updates.

Thank you,

Chris Jessee
[email protected]

···

On Thursday, July 17, 2003, at 03:17 AM, Peter Apian-Bennewitz wrote:

Chris Jessee wrote:

....

Initially I downloaded "radiance-rad3R5.tgz" and "rad3R5supp.tar.gz" from http://www.radiance-online.org/.

Many thanks for your detailed report. Although I'm not sure wether this fixes your problem, it is better to download /radiance-HEAD.tgz/ instead of /radiance-rad3R5.tgz/ - quite a few bug fixes with a very minor chance for troublesome changes. Labeling it "current experimental/bug-fixed version" may not sound attractive enough,- sorry for that.
For those with limited bandwidth to the Internet, there's also a cumulative patch available on radiance-online which contains the differences between all files in rad3R5 and HEAD.
Btw: It's called HEAD because the software revision control system (CVS) labels the most recent versions with a tag 'HEAD' . The HEAD files are generated nightly and since Greg and Schorsch are actively fixing and extending the source, it makes HEAD a good choice.

While we're at it and because someone asked for CVS access lately: Realtime read access to the CVS system and the history of changes and log messages for each file is offered by a web interface at http://www.radiance-online.org/cgi-bin/viewcvs.cgi/ray/src/ .

-Peter

--
pab-opto, Freiburg, Germany, www.pab-opto.de

_______________________________________________
Radiance-dev mailing list
[email protected]
http://www.radiance-online.org/mailman/listinfo/radiance-dev

Hi Chris,

I'm sorry you're having troubles with makeall on OS X, especially using my exact machine and configuration! I'm really puzzled in fact how you're getting this error. I looked at the makeall and installib scripts, and I think they're OK, it's just the download part that's screwing up.

From: Chris Jessee <[email protected]>
Date: Wed Jul 16, 2003 1:49:05 PM US/Pacific

Hi,

I had the following experience installing Radiance on OSX (10.2.6) and thought I would post it here in hopes of helping others and perhaps finding a better way of getting it installed.
The machine: dual 1.4 ghz G4, 1.5 Gb ram, 2-180 Gb drives.
Software: Apple Developer Tools and x11r6.

Initially I downloaded "radiance-rad3R5.tgz" and "rad3R5supp.tar.gz" from http://www.radiance-online.org/.

After unpacking the files I ran the install command (./makeall install) and got the following error after the first few prompts:

Where do you want the library files [/usr/local/lib/ray]?
ls: lib: No such file or directory
d1: Subscript out of range.

The problem is not with the installer, it's with the download procedure. If you download in your browser, it automatically calls StuffIt Expander, which creates TWO ray directories, one for the source and the other for the auxiliary files. The first download gets named ray, and the second directory gets named ray.1. In fact, the two distributions are meant to be merged, which is what would happen normally if you called tar xzf on the distributions from the same directory. As a result, your lib directory doesn't end up where it's supposed to be on the same level as installib.

I don't have a fix for this, other than to instruct users of Mac OS X to install the distributions manually using tar instead of StuffIt Expander.

The directory exists and not really understanding the nuances of the install script I then downloaded "rad3R5.tar.gz" and "radbin_osx.tar.gz" from http://radsite.lbl.gov/radiance/HOME.html. I copied the radbin_osx directory to /usr/local/. Changed my .tcshrc to include the following paths, the last one pointing to my current radiance project.

setenv PATH /usr/local/radbin_osx:$PATH
setenv RAYPATH /usr/local/lib/ray:$PATH

PATH shouldn't be part of this variable setting, unless you really want to search all your executable directories for Radiance auxiliary files.

setenv PATH /Users/username/Documents/Projects/CP_test:$PATH

I won't even ask what this is about, but it doesn't sound like something to recommend to others.

I then moved the ray/lib to /usr/local/lib/ray per a note I found in the email archive. This doesn't work but I'll come back to that. The same email from the archive also noted to copy all the .cal files from the ray/source directory using this command:

cp -p src/*.cal /usr/local/lib/ray

This didn't work, reporting "no match found" so I went through the each of the sub-directories of ray/src and used this command to get them to their proper home:

mv *.cal /usr/local/lib/ray

On first test picture.cal wasn't found so I downloaded "rad3R5supp.tar.gz" from
http://www.radiance-online.org/ unpacked it and moved the contents of its ray/lib to /usr/local/lib/ray. Somehow picture.cal wasn't being seen in /usr/local/lib/ray/lib/ after the initial copy.

Again, it may be because you weren't actually copying from the correct distribution download. Maybe you forgot to remove ray and ray.1 before downloading from radsite, so you got a ray.2 directory as well.

Now radiance works!

Ultimately I hope some knowledgeable person updates the install script to make it functional but in the interim perhaps these crude workarounds will help.

some of the renders
http://jefferson.village.virginia.edu/london/model/gallery1/index.html

These are very cool -- how did you build your model?

More notes from your second e-mail...

From: Chris Jessee <[email protected]>
Date: Thu Jul 17, 2003 3:57:04 AM US/Pacific

Thank you for the quick reply. I had previously tried the radiance-HEAD.tgz with the same resulting error. I believe the problem lies in the makeall script, something incorrect with a path designation or a loop that is incorrect. If someone will attempt to correct the installer I would be happy to test it and report the results. There are several people here who want to run Radiance on OSX and a working installer would really help. Have you considered putting Radiance in the Fink Project? (http://fink.sourceforge.net/) They have a great installer integrated with CVS making for easy installs and updates.

Fink is nice in that it has the downloads all done for you automagically via wget commands or something like it. However, I wasted an entire day, perhaps two, trying to get Fink to install an X11 server on my Mac, with no luck. It went through the most tedious, extensive install and compile procedure imaginable, and I never did figure out what it was doing or why it didn't work. What I ended up with was hundreds of megabytes of mystery programs, with no clue where to start or what it was all about. I guess it gave me a taste for what a lot of novice Radiance users go through... In the end, I ended up keeping the distribution around for a while, thinking I'd look into it, but I never did. It's gone, and I haven't missed it.

-Greg

Greg Ward wrote:

Hi Chris,

I'm sorry you're having troubles with makeall on OS X, especially using my exact machine and configuration! I'm really puzzled in fact how you're getting this error. I looked at the makeall and installib scripts, and I think they're OK, it's just the download part that's screwing up.

Thanks for sorting that out, Greg. I was baffled by Chris' error, and rad3R5 installed just fine on my OSX machine. I *am* still unable to compile 3.5 on my RHL8 box, but alas, no time to investigate.

some of the renders
http://jefferson.village.virginia.edu/london/model/gallery1/index.html

These are very cool -- how did you build your model?

Yes, please, Chris. Details! How'd ya build it? How many ambient bounces? Render times? They are really very nice. Are you excluding heavily? The render with the sky full of cumulus clouds, was that a Photoshop trick, or did you use colorpict? They look great. Are you extracting quantitative data from these renderings as well?

Fink is nice in that it has the downloads all done for you automagically via wget commands or something like it. However, I wasted an entire day, perhaps two, trying to get Fink to install an X11 server on my Mac, with no luck. It went through the most tedious, extensive install and compile procedure imaginable, and I never did figure out what it was doing or why it didn't work. What I ended up with was hundreds of megabytes of mystery programs, with no clue where to start or what it was all about. I guess it gave me a taste for what a lot of novice Radiance users go through...

Haha, I'd have paid admission for a ringside seat to watch YOU get baffled by a machine, Greg. A taste, perhaps, yes. Of course, I'm the guy who typed /usr/rpg/stuff/nested/deep/down/in/the/tree/downloads/radiance/current/makeall install, the first few times I attempted installing Radiance. Learning about the magical dot was a watershed moment! Sigh. It's an uphill battle learning Radiance, and if you have to learn UNIX at the same time, it's pretty daunting. Too bad Fink is funky. "Automatic" installers can help newbies a great deal. But there is a pretty wide array of binaries available for Radiance, so I guess it's really not that big a deal.

···

----

      Rob Guglielmetti

e. [email protected]
w. www.rumblestrip.org

I've seen this--I forget the ins & outs of the problem, but it's
something I've looked at. Next week, when I have time.

Randolph

···

On Wed, Jul 16, 2003 at 04:49:05PM -0400, Chris Jessee wrote:

Where do you want the library files [/usr/local/lib/ray]?
ls: lib: No such file or directory
d1: Subscript out of range.

Hello all,

Thank you all for the tips and suggestions regarding OSX install issues. Its good to know others have had success on a similar system, I'll try a clean install on another machine using tar rather than stuffit to unpack files and take greater care in setting up my path statements. Admittedly my limited knowledge of unix may be the real problem.

On a previous attempt at using FINK I also encountered serious problems requiring a complete reinstall of the system. Thank goodness for CCC (http://www.bombich.com/software/ccc.html) The latest version of Fink combined with FINK commander (http://finkcommander.sourceforge.net/) actually works and avoids the pile of unneeded apps. Although on my next install of Radiance I'll skip any prior install of FINK to eliminate it as possible problem source.

More information about the Crystal Palace model is available here.
http://jefferson.village.virginia.edu/london/model/

In broad strokes, Will Rourk ([email protected])and I built the model in FormZ and used objtorad to move it to Radiance. Will also built a nice VRML version using Cosmo. I setup a master .rif file and materials file and ran the initial tests. Some of these were rendered at SDSC on Big machines. Ying Yao ([email protected]) is currently attempting to render the entire model in Radiance. She has only been able to render about 1/3 of the model at a time due to the large amount of geometry. Our aging Sun server doesn't seem to be up to the task. Here are a few notes from Ying's rendering efforts:

To generate an octree file for one section (Center or East or West) of
the Crystal Palace, usually takes about 5 hours or so.
After the octree is generated, to render the image with medium quality,
it takes about 5 hours to render the first 360x360 image.
With the previous ambient file ready for 360x360 image, it takes additional
4 to 8 hours to render 2880x2880 image, which depends on how much geometry
overlap between the two images.

High quality images take a little longer:

to render 360*360 image, takes 3.5 day;
to render 2880*2880 image with the ambient file from 360*360 image, takes 1.6 days;
to render 2880*2880 image without any ambient file, it takes 5.5 days.

We get the following error when attempting to render all three sections of the building at once.

oconv: system - out of octree space
rad: error generating octree

Any suggestions on this front would be most welcome.

The image with the clouds is a composite done in Photoshop. The clouds were generated in Alias Power Animator, several years ago.
(http://jefferson.village.virginia.edu/london/model/gallery1/source/image18.html)
The horizon line is kind of screwy, guess I should fix that. I have a number of those old sky images. If anyone wants to use them just drop me a note.

Take care,

Chris Jessee
[email protected]