[Radiance-general] evalglare installation on mac

Guglielmetti, Robert Robert.Guglielmetti at nrel.gov
Thu May 31 19:22:56 PDT 2012


It seems like you're getting it to compile. I would recommend you place it in the same directory as all your Radiance binaries, so that evalglare will be in a search path target. Also make sure it's been set to be executable. You may need admin privileges to do both of these things. For example, if Radiance is in /usr/local/bin, and you are currently in the directory where you compiled evalglare:

sudo cp evalglare /usr/local/bin (you will be prompted for the admin password)
sudo chmod 755 /usr/local/bin/evalglare

Give that a whirl, and if you still have problems, maybe some more detail about what happens when you try to run evalglare will be needed. 

- Rob
________________________________________
From: Stefano Moret [smoret at ucdavis.edu]
Sent: Thursday, May 31, 2012 6:40 PM
To: radiance-general at radiance-online.org
Subject: [Radiance-general] evalglare installation on mac

Hi,

I've downloaded the v.1.04 version of evalglare on my mac os 10.6.8.
I added to the flags the -fnested-functions to the CFLAGS as indicated in the previous emails, unpacked the folder into /radiance/evalgare, and ran "make" from the command line.
It doesn't seem to install properly though, basically what I see in output is:

MacBook-di-Stefano-Moret:evalglare Cinese$ make
gcc -c -g  -DMSDOS  -DPICT_GLARE -DFLOAT=double -O3  -fnested-functions -Wall  -o common/color.o common/color.c -I. -Igeometry
gcc -c -g  -DMSDOS  -DPICT_GLARE -DFLOAT=double -O3  -fnested-functions -Wall  -o common/resolu.o common/resolu.c -I. -Igeometry
common/resolu.c: In function ‘str2resolu’:
common/resolu.c:98: warning: implicit declaration of function ‘atoi’
gcc -c -g  -DMSDOS  -DPICT_GLARE -DFLOAT=double -O3  -fnested-functions -Wall  -o common/header.o common/header.c -I. -Igeometry
gcc -c -g  -DMSDOS  -DPICT_GLARE -DFLOAT=double -O3  -fnested-functions -Wall  -o common/image.o common/image.c -I. -Igeometry
gcc -c -g  -DMSDOS  -DPICT_GLARE -DFLOAT=double -O3  -fnested-functions -Wall  -o common/fvect.o common/fvect.c -I. -Igeometry
gcc -c -g  -DMSDOS  -DPICT_GLARE -DFLOAT=double -O3  -fnested-functions -Wall  -o common/badarg.o common/badarg.c -I. -Igeometry
gcc -c -g  -DMSDOS  -DPICT_GLARE -DFLOAT=double -O3  -fnested-functions -Wall  -o common/words.o common/words.c -I. -Igeometry
gcc -c -g  -DMSDOS  -DPICT_GLARE -DFLOAT=double -O3  -fnested-functions -Wall  -o common/fputword.o common/fputword.c -I. -Igeometry
gcc -c -g  -DMSDOS  -DPICT_GLARE -DFLOAT=double -O3  -fnested-functions -Wall  -o common/expandarg.o common/expandarg.c -I. -Igeometry
gcc -c -g  -DMSDOS  -DPICT_GLARE -DFLOAT=double -O3  -fnested-functions -Wall  -o common/wordfile.o common/wordfile.c -I. -Igeometry
gcc -c -g  -DMSDOS  -DPICT_GLARE -DFLOAT=double -O3  -fnested-functions -Wall  -o common/bmalloc.o common/bmalloc.c -I. -Igeometry
gcc -c -g  -DMSDOS  -DPICT_GLARE -DFLOAT=double -O3  -fnested-functions -Wall  -o common/mat4.o common/mat4.c -I. -Igeometry
gcc -c -g  -DMSDOS  -DPICT_GLARE -DFLOAT=double -O3  -fnested-functions -Wall  -o pictool.o pictool.c -I. -Igeometry
pictool.c:98: warning: ‘read_exposure’ defined but not used
gcc -c -g  -DMSDOS  -DPICT_GLARE -DFLOAT=double -O3  -fnested-functions -Wall  -o geometry/g3vector.o geometry/g3vector.c -I. -Igeometry
gcc -c -g  -DMSDOS  -DPICT_GLARE -DFLOAT=double -O3  -fnested-functions -Wall  -o geometry/gbasic.o geometry/gbasic.c -I. -Igeometry
gcc -c -g  -DMSDOS  -DPICT_GLARE -DFLOAT=double -O3  -fnested-functions -Wall  -o geometry/g3affine.o geometry/g3affine.c -I. -Igeometry
gcc -c -g  -DMSDOS  -DPICT_GLARE -DFLOAT=double -O3  -fnested-functions -Wall  -o geometry/g3sphere.o geometry/g3sphere.c -I. -Igeometry
gcc -c -g  -DMSDOS  -DPICT_GLARE -DFLOAT=double -O3  -fnested-functions -Wall  -o geometry/g3flist.o geometry/g3flist.c -I. -Igeometry
gcc -g  -DMSDOS  -DPICT_GLARE -DFLOAT=double -O3  -fnested-functions -Wall  -DEVALGLARE -o evalglare  evalglare.c pictool.o geometry/g3vector.o geometry/gbasic.o geometry/g3affine.o geometry/g3sphere.o geometry/g3flist.o \
-I. -Igeometry common/color.o common/resolu.o common/header.o common/image.o common/fvect.o common/badarg.o common/words.o common/fputword.o common/expandarg.o common/wordfile.o common/bmalloc.o common/mat4.o  -lm

It does something, but I don't think it's properly installed: for example, it can't find the command evalglare if I'm in another folder, and even in that folder it doesn't run the glare analysis on the picture.
Could anyone enlighten me on what I'm doing wrong?

Many thanks,
Best Regards,
Stefano

--

Stefano Moret
California Lighting Technology Center<http://cltc.ucdavis.edu/>
University of California, Davis
633 Pena Drive
Davis, CA 95618

530-747-3846
smoret at ucdavis.edu<mailto:smoret at ucdavis.edu>




More information about the Radiance-general mailing list