Radiance-general Digest, Vol 85, Issue 12

Hello Rob,
I have figured it out yesterday night. I tried to use Grag's compiled
version and it is working. My problem was that I was not aware that I did
not copied the compiled version to the /usr/local/bin.

I guess I also get it compiled by self, so I can share it with the list.
The probelem was that makefile can not locate GL/gl.h directory which is
probably called OpenGL on OSX after searching google. However I could get
the GL/gl.h and just copied it either to /usr/include or to unpacked
evalglare into geometry directory.

Then in "makefile" I changed
CFLAGS = -g -DMSDOS -DPICT_GLARE -DFLOAT=double -O3 $(DEBOPT) -Wall

to

CFLAGS = -g -fnested-functions -DPICT_GLARE -DFLOAT=double -O3 $(DEBOPT)
-Wall

and it seems that it got program compiled. I did not tested because I think
it is better to use Grag's compiled version.

Probably there will be more correct and elegant way to do it but I guess
this is working to.

Thank you
David

···

On 25 March 2011 12:00, <[email protected]>wrote:

Send Radiance-general mailing list submissions to
       [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
       http://www.radiance-online.org/mailman/listinfo/radiance-general
or, via email, send a message with subject or body 'help' to
       [email protected]

You can reach the person managing the list at
       [email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Radiance-general digest..."

Today's Topics:

  1. installing evalglare (David Appelfeld)
  2. Re: installing evalglare (Rob Guglielmetti)

----------------------------------------------------------------------

Message: 1
Date: Thu, 24 Mar 2011 20:59:03 -0700
From: David Appelfeld <[email protected]>
To: [email protected]
Subject: [Radiance-general] installing evalglare
Message-ID:
       <[email protected]>
Content-Type: text/plain; charset="iso-8859-1"

Daer List, I am trying compile evalgrale on OSX but I am getting following
error. I am sure that it is quite trivial problem since I am not much
familiar with compiling programs. Did anyone had such a problem or can
someone advice me how to install it correctly or maybe I just should move
unpacked program to right directory and run it there. I could find missing
file GL/gl.h in Mesa 3-D graphics package and copy it to the /usr/include
where it should probably be, but by this only first part of error was
solved
(above the line).
Thank you very much for any advices.
David

David:evalglare Dave$ make
gcc -c -g -DMSDOS -DPICT_GLARE -DFLOAT=double -O3 -Wall -o pictool.o
pictool.c -I. -Igeometry
In file included from pictool.h:12,
                from pictool.c:1:
geometry/g3affine.h:14:19: error: GL/gl.h: No such file or directory
In file included from pictool.h:12,
                from pictool.c:1:
geometry/g3affine.h:26: error: syntax error before 'GLdouble'
geometry/g3affine.h:27: error: syntax error before 'GLdouble'

---------------------------------------------------------------------------------
pictool.c: In function 'read_exposure':
pictool.c:89: error: nested functions are disabled, use -fnested-functions
to re-enable
pictool.c: In function 'pict_read_fp':
pictool.c:228: warning: unused variable 'ex'
pictool.c: In function 'pict_write_fp':
pictool.c:519: warning: unused variable 'argv'
pictool.c:518: warning: unused variable 'argc'
make: *** [pictool.o] Error 1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <
http://www.radiance-online.org/pipermail/radiance-general/attachments/20110324/135d527e/attachment-0001.html
>

------------------------------

Message: 2
Date: Fri, 25 Mar 2011 09:05:26 -0600
From: Rob Guglielmetti <[email protected]>
To: Radiance general discussion <[email protected]>
Subject: Re: [Radiance-general] installing evalglare
Message-ID:
       <[email protected]>
Content-Type: text/plain; charset="iso-8859-1"

Hello,

Greg Ward managed to get evalglare to compile back in '09 at the Radiance
Workshop. I don't recall what changes he made to make it happen, but he got
it to work. It appears that this compiled executable is contained in the OS
X binary archive available for download from www.radiance-online.org. I
have
had a few "bus error"s when using this version, but it works on many
images.
Maybe you could try that version? Option B is to use the windows version on
a VM, which is what I usually do.

- Rob

On Thu, Mar 24, 2011 at 9:59 PM, David Appelfeld <[email protected] > >wrote:

> Daer List, I am trying compile evalgrale on OSX but I am getting
following
> error. I am sure that it is quite trivial problem since I am not much
> familiar with compiling programs. Did anyone had such a problem or can
> someone advice me how to install it correctly or maybe I just should move
> unpacked program to right directory and run it there. I could find
missing
> file GL/gl.h in Mesa 3-D graphics package and copy it to the /usr/include
> where it should probably be, but by this only first part of error was
solved
> (above the line).
> Thank you very much for any advices.
> David
>
>
> David:evalglare Dave$ make
> gcc -c -g -DMSDOS -DPICT_GLARE -DFLOAT=double -O3 -Wall -o pictool.o
> pictool.c -I. -Igeometry
> In file included from pictool.h:12,
> from pictool.c:1:
> geometry/g3affine.h:14:19: error: GL/gl.h: No such file or directory
> In file included from pictool.h:12,
> from pictool.c:1:
> geometry/g3affine.h:26: error: syntax error before 'GLdouble'
> geometry/g3affine.h:27: error: syntax error before 'GLdouble'
>
>
---------------------------------------------------------------------------------
> pictool.c: In function 'read_exposure':
> pictool.c:89: error: nested functions are disabled, use
-fnested-functions
> to re-enable
> pictool.c: In function 'pict_read_fp':
> pictool.c:228: warning: unused variable 'ex'
> pictool.c: In function 'pict_write_fp':
> pictool.c:519: warning: unused variable 'argv'
> pictool.c:518: warning: unused variable 'argc'
> make: *** [pictool.o] Error 1
>
>
> _______________________________________________
> Radiance-general mailing list
> [email protected]
> http://www.radiance-online.org/mailman/listinfo/radiance-general
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <
http://www.radiance-online.org/pipermail/radiance-general/attachments/20110325/efff60c7/attachment-0001.html
>

------------------------------

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

End of Radiance-general Digest, Vol 85, Issue 12
************************************************