[Radiance-general] Compiling rad4Rall on W7 64 bit Cygwin
Gregory J. Ward
gregoryjward at gmail.com
Wed Dec 15 09:30:57 PST 2010
I changed the code in the head to use a different identifier -- since this is just a local type for persist.c, there's no reason for it to conflict with a system-defined type.
Cheers,
-Greg
> From: Claus Brøndgaard Madsen <cbm at create.aau.dk>
> Date: December 14, 2010 11:41:00 PM PST
>
> Hi Mark,
>
> I ”resolved” the sighandler issue by applying the fix I found at:
>
> http://www.radiance-online.org/pipermail/radiance-dev/2006-February/000676.html
>
> Quoting:
>
> I came across this problem when compiling Radiance under Interix. I
> resolved it by commenting out these three lines near the top of the file
> persist.c:
>
> typedef void (sighandler_t)(int);
> static sighandler_t sig_io;
> static sighandler_t sig_alrm;
>
> I should warn you that I didn't look into the problem too deeply, so
> that may or may not be the best solution!
>
>
> Doing exactly “as I was told” I arrived at error free compilation, and I have had no problems running RADIANCE programs since.
>
>
>
> Best,
>
> Claus
>
>
> ------------
> From: Mark de la Fuente [mailto:MdelaFuente at wmtao.com]
> Sent: 15. december 2010 00:30
> To: Radiance
>
>
> Radiance group,
>
> I tried to compile rad4Rall on a Windows 7 64 Bit Cygwin system. After making this change to ezxml.h: http://luminance.londonmet.ac.uk/radiance_mailinglists/general/2010-October/007397.html it compiled but with errors.
>
> The first error I could find was:
>
> persist.c:42: error: conflicting types for ‘sighandler_t’
> /usr/include/signal.h:11: error: previous declaration of ‘sighandler_t’ was here
> make: *** [persist.o] Error 1
>
> Same as Claus had here http://luminance.londonmet.ac.uk/radiance_mailinglists/general/2010-October/007402.html
>
> Was there ever a resolution?
>
> As a fix, would it be reasonable to merge a full set of Cygwin Radiance 3R7 bin and lib files with a partial set of 4.0 files, and just keep the 4.0 files where duplicates occur? Looks like the non-duplicates were lookamb, rpict, rtrace, rview, and rvu. Also, rayinit.cal and glazing.cal were not in the lib directory. Although, these are some pretty major files not to have compile, I just ran oconv and rpict on an old project and it seemed to work fine.
>
> Thanks for any help.
>
> Mark de la Fuente
More information about the Radiance-general
mailing list