radiance install OS 10.1.5

Hello
Newbie here! I know enough about Unix to be dangerous
Ive DL'd the binaries and distribution.
I've read posts about installing, and I'm still confused.
According to the readme, it says type
makeall install into the Terminal

That did'nt work, so I typed
[sudo ./makeall install -- (I know sudo is superuser do - but not sure why
the ./ for makeall)

It got me further - asking for places to install the binaries and the lib
Where do you want the executables [/usr/local/bin]? I hit return so far so
good
Where do you want the library files [/usr/local/lib/ray]? I hit return
mkdir: /usr/local/lib/ray: No such file or directory

So I mkdir called lib inside the local directory - thinking it will find
lib and make a ray directory
Where do you want the library files [/usr/local/lib/ray]? /usr/lib
should I have made a ray dir as well?

Install library files now [n]? y
Copying library files to /usr/lib... Done.

exec make "SPECIAL=ogl" \
        "OPT=-O -DSPEED=200" \
        "MACH=-DBSD -DALIGN=double -DDCL_ATOF -DNOSTEREO -Dfreebsd
-I/usr/X11R6/include -L/usr/X11R6/lib -DBIGMEM" \
        ARCH=PowerPC "COMPAT=bmalloc.o erf.o" \
        INSTDIR=/usr/local/bin \
        LIBDIR=/usr/lib \
        CC=cc CONFIGURE_ARCH=powerpc MLIB= "$@" -f Rmakefile
Do you want to change it?
not knowing what that all means, I type "n"

I get lots of errors
radogl.h:10: header file 'GL/glu.h' not found
radogl.h:28: undefined type, found `GLfloat'
etc.

Does it matter where I am when I install? I tried it from the ray directory
[localhost:~/ray] robfitzs% sudo ./makeall install

other posts say to copy everything manually into bin and lib directories -
have'nt tried that yet.

Thanks for helping a unix dummy.
Rob

Fitzsimmons, Rob wrote:

Hello
Newbie here! I know enough about Unix to be dangerous

I know a little more than you, which simply means I'm even more dangerous. =8-)

Ive DL'd the binaries and distribution.
I've read posts about installing, and I'm still confused.
According to the readme, it says type
makeall install into the Terminal

That did'nt work, so I typed [sudo ./makeall install -- (I know sudo is superuser do - but not sure why
the ./ for makeall)

The ./ means "run this program right here in the current directory, even tho it's not on my search path." And that stupid little period eluded me for a long time.

It got me further - asking for places to install the binaries and the lib
Where do you want the executables [/usr/local/bin]? I hit return so far so
good...

Terrance will be the authority here, but I got the impression that the CD contained not only a bootable Linux OS but also a set of pre-installed binaries for Radiance. Did you have a look in /usr/local/bin to see if the radiance progs are already in there? I'm pretty sure it's ready to go.

···

----

      Rob Guglielmetti

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

Hi!

That did'nt work, so I typed
[sudo ./makeall install -- (I know sudo is superuser do - but not sure why
the ./ for makeall)

As the for root, the current directory is usually not included into the PATH
for obvious security reasons (if you have ./ in your root path, and a clever
guy has put a little script called "ls" into a directory that simply
contains "rm -R /", you would be surprised ;-), you will usually have to specify the
path to scripts in non-standard directories.

It got me further - asking for places to install the binaries and the lib
Where do you want the executables [/usr/local/bin]? I hit return so far
so
good
Where do you want the library files [/usr/local/lib/ray]? I hit return
mkdir: /usr/local/lib/ray: No such file or directory

So I mkdir called lib inside the local directory - thinking it will find
lib and make a ray directory
Where do you want the library files [/usr/local/lib/ray]? /usr/lib

Why /usr/lib, you should have kept the default /usr/local/lib/ray (after
creating /usr/local/lib... you have a funny Linux distribution if there hasn't
been a /usr/local/lib before).

should I have made a ray dir as well?

No, the makeall script will do this.

Install library files now [n]? y
Copying library files to /usr/lib... Done.

exec make "SPECIAL=ogl" \
        "OPT=-O -DSPEED=200" \
        "MACH=-DBSD -DALIGN=double -DDCL_ATOF -DNOSTEREO -Dfreebsd
-I/usr/X11R6/include -L/usr/X11R6/lib -DBIGMEM" \
        ARCH=PowerPC "COMPAT=bmalloc.o erf.o" \
        INSTDIR=/usr/local/bin \
        LIBDIR=/usr/lib \
        CC=cc CONFIGURE_ARCH=powerpc MLIB= "$@" -f Rmakefile
Do you want to change it?
not knowing what that all means, I type "n"

Hmmm that doesn't look like a Linux / x86 setting.... There is something
"preconfigured" that you don't want. Do a ./makeall clean first. If that doesn't
help (the makeall should ask you about your system / environment, e.g.
Linux, Solaris, AIX, BSD...), touch the makeall script (afaik, if the script has
been "modified", e.g. by setting the modification time, it will go through the
whole configuration procedure - else it will just recompile).

I get lots of errors
radogl.h:10: header file 'GL/glu.h' not found
radogl.h:28: undefined type, found `GLfloat'

Of course, that's not for your Linux box.

I hope you will get a working radiance soon. I wonder if we will see a
standard installation for radiance one day (make config, make, make test, make
install, or even a configure script).

BTW: if you have successfully installed radiance for the first time, the
next might be to try some optimizations with gcc (e.g. -O3 -ffast-math
-mcpu=YourCpu)... But that will be the next step...

Good luck, CU, Lars.

···

--
+++ GMX - Mail, Messaging & more http://www.gmx.net +++
Bitte l�cheln! Fotogalerie online mit GMX ohne eigene Homepage!

Greg Ward wrote:

Hi Rob,

It sounds like you're compiling under Mac OS X, not running the

bootable

Linux CD -- is that right?

Yes - OSX - I Downloaded from the Radiance website
version 3.4
I actually DL'd both rad3R4.tar.gz and radbin_osx.tar.gz
But it sound like I didn't need the rad3R4, since it has already been
compiled as radbin_osx?

I DL'd and unpacked all the files in a radbin_osx folder

Are you saying I'm good to go? I didn't need to compile. (I actaully thought
I was installing, not compiling!)
I don't plan on doing anything groundbreaking, just poking around and
looking at some sample scenes.

Thanks for all the help.
Lets see if I can get it to work now.

Rob Fitz

Oh jeez, if I had studied the error messages (or the subject line)
better, I'd have realized that too. Sorry! But I believe the main
problem is Terrance's CD is intended to be a free-standing unit, and
does not require compilation of anything. At least that's the idea, I
think.

Rob F., if you *are* in fact running OS X, then yes follow Greg's
advice, by all means! I got a Mac last January specifically to run OS X
(and in turn, Radiance), and it has changed my life.With OS X and the
pre-compiled binaries, you can quickly get to work with the tutorials
instead of jacking around with UNIX sysadminning.
That's just one of those newbie things that a UNIX guru assumes is
common knowledge, but isn't.

As for the include files being missing, I discovered to

···

my dismay that Apple's Beta release of X11 doesn't include all the
header files and libraries, so it's a bitch to compile things for X11

--

you have to download these from the XDarwin org website. I'm just

going

to recommend that people use the precompiled binaries if they are not
doing development work.

Bummer. I was never able to compile Radiance on my Mac, even before the

advent of Apple's X11. Guess I'll go straight to the binaries for 3.5.
  (and Rob F., if you go that route, it's still a good idea to grab the
source tree and have it around, because there's all kinds of useful
documentation and stuff in there).

PS
Greg, you used my comcast address again! =8-)

----

      Rob Guglielmetti

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

All-

In my recent post on this thread, I somehow assumed that Rob F. was using the bootable CD-ROM that Terrance recently posted about. Now I see that he is not. I also have absolutely no idea which synapses were firing and in what order, for me to have assumed that from Rob's post he was using that CD! Sorry for any confusion this caused.

···

----

      Rob Guglielmetti

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

Yes - OSX

Stupid me!

When I read the word "distribution", I always think we are talking about
Linux, and right, OS 10.1.5 is OS X....

[I must read the subject line. I must read the subject line. I must read...]

Please ignore my last mail. CU Lars.

···

--
+++ GMX - Mail, Messaging & more http://www.gmx.net +++
Bitte l�cheln! Fotogalerie online mit GMX ohne eigene Homepage!

It seems that we had at least three people answer Rob's e-mail, each thinking his situation was slightly different. I guess that goes to show just how helpful this community is! Maybe we can ask people to state the specific hardware and software they're working with next time...

With OS X, you can just move the binaries from radbin_osx to /usr/local/bin (or wherever you'd like in your path), run "./makeall library" and you should be good to go.

Have fun!
-Greg

···

[email protected] wrote:

Yes - OSX - I Downloaded from the Radiance website
version 3.4
I actually DL'd both rad3R4.tar.gz and radbin_osx.tar.gz
But it sound like I didn't need the rad3R4, since it has already been
compiled as radbin_osx?

Fitzsimmons, Rob wrote:

Yes - OSX - I Downloaded from the Radiance website
version 3.4
I actually DL'd both rad3R4.tar.gz and radbin_osx.tar.gz
But it sound like I didn't need the rad3R4, since it has already been
compiled as radbin_osx?

I DL'd and unpacked all the files in a radbin_osx folder

Are you saying I'm good to go? I didn't need to compile. (I actaully thought
I was installing, not compiling!)

OK, sorry about the confusion. Yes, if you have radbin_osx you're pretty close:

Copy the binaries to /usr/local/bin/ray (permissions should be set already, but if you get "permission denied" errors when you try to run things, run "chmod -R a+rx /usr/local/bin/ray", sans quotes, from the command line).

From the source distribution, copy the /ray/lib folder to: /usr/local/lib/ray

Add the radiance directory to your search path, by adding this line:

set path=(/usr/local/bin/ray $path)

... to your .cshrc file (which is in your home directory).

I think that was all I had to do to get things going on OS X. And do have a look at the various documentation and sample files in the source folder.

Good luck! Have fun! Enough shouting!

···

----

      Rob Guglielmetti

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