Problems compiling latest release under Cygwin

Dear RADIANCE list,

It is not nice to re-post a list post, but I am desperate and got no response the first time around. Can anyone spot a potential reason that I have run into problems with compiling RADIANCE:

I downloaded rad4R0all, unzipped and untar'ed, then ran makeall install (on a Windows 7 machine with Cygwin installed).

I got a lot of error messages (below the first dozens of lines of a redirect of stderr to a textfile). Any chance of an easy fix? :slight_smile:

Best
Claus

================================== stderr =============================================

ezxml.c: In function 'ezxml_parse_fd':

ezxml.c:643: error: 'MADV_SEQUENTIAL' undeclared (first use in this function)

ezxml.c:643: error: (Each undeclared identifier is reported only once

ezxml.c:643: error: for each function it appears in.)

ezxml.c:645: error: 'MADV_NORMAL' undeclared (first use in this function)

make: *** [ezxml.o] Error 1

make: Target `install' not remade because of errors.

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

rpict.c: In function 'rpict':

rpict.c:280: warning: call to 'mktemp' declared with attribute warning: the use of `mktemp' is dangerous; use `mkstemp' instead

/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../i686-pc-cygwin/bin/ld: cannot find -lrtrad

collect2: ld returned 1 exit status

make: *** [rvu] Error 1

/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../i686-pc-cygwin/bin/ld: cannot find -lrtrad

collect2: ld returned 1 exit status

make: *** [lookamb] Error 1

make: Target `install' not remade because of errors.

/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../i686-pc-cygwin/bin/ld: cannot find -lrtrad

collect2: ld returned 1 exit status

make: *** [meta2tga] Error 1

/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../i686-pc-cygwin/bin/ld: cannot find -lrtrad

collect2: ld returned 1 exit status

make: *** [pexpand] Error 1

/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../i686-pc-cygwin/bin/ld: cannot find -lrtrad

collect2: ld returned 1 exit status

make: *** [psort] Error 1

/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../i686-pc-cygwin/bin/ld: cannot find -lrtrad

collect2: ld returned 1 exit status

make: *** [cv] Error 1

/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../i686-pc-cygwin/bin/ld: cannot find -lrtrad

collect2: ld returned 1 exit status
lrtrad
collect2: ld returned 1 exit status

make: *** [tabfunc] Error 1

make: Target `install' not remade because of errors.

[cid:[email protected]]

Hi Claus,

The errors for ezxml are preventing librtrad.a from being made. Missing librtrad causes all the subsequent errors (ld missing -lrtrad).

The part of ezxml_parse_fd that uses MADV_SEQUENTIAL is supposed to be left out when compiled on CYGWIN.

From ezxml.h:
/* disable MMAP on CYGWIN, seems to cause problems... */
#ifdef CYGWIN
#define EZXML_NOMMAP
#endif
I'd suggest changing those lines in ezxml.h to:
/* disable MMAP on CYGWIN, seems to cause problems... */
#define EZXML_NOMMAP
So that EZXML_NOMMAP is defined. ezxml.h can be found in ray/src/common/

I can't test this myself, so no promises that it'll work.

Andy

···

On Oct 21, 2010, at 12:04 PM, Claus Brøndgaard Madsen wrote:

Dear RADIANCE list,

It is not nice to re-post a list post, but I am desperate and got no response the first time around. Can anyone spot a potential reason that I have run into problems with compiling RADIANCE:

I downloaded rad4R0all, unzipped and untar’ed, then ran makeall install (on a Windows 7 machine with Cygwin installed).

I got a lot of error messages (below the first dozens of lines of a redirect of stderr to a textfile). Any chance of an easy fix? J

Best
Claus

================================== stderr =============================================

ezxml.c: In function ‘ezxml_parse_fd’:

ezxml.c:643: error: ‘MADV_SEQUENTIAL’ undeclared (first use in this function)

ezxml.c:643: error: (Each undeclared identifier is reported only once

ezxml.c:643: error: for each function it appears in.)

ezxml.c:645: error: ‘MADV_NORMAL’ undeclared (first use in this function)

make: *** [ezxml.o] Error 1

make: Target `install' not remade because of errors.

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

rpict.c: In function ‘rpict’:

rpict.c:280: warning: call to ‘mktemp’ declared with attribute warning: the use of `mktemp' is dangerous; use `mkstemp' instead

/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../i686-pc-cygwin/bin/ld: cannot find -lrtrad

collect2: ld returned 1 exit status

make: *** [rvu] Error 1

/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../i686-pc-cygwin/bin/ld: cannot find -lrtrad

collect2: ld returned 1 exit status

make: *** [lookamb] Error 1

make: Target `install' not remade because of errors.

/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../i686-pc-cygwin/bin/ld: cannot find -lrtrad

collect2: ld returned 1 exit status

make: *** [meta2tga] Error 1

/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../i686-pc-cygwin/bin/ld: cannot find -lrtrad

collect2: ld returned 1 exit status

make: *** [pexpand] Error 1

/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../i686-pc-cygwin/bin/ld: cannot find -lrtrad

collect2: ld returned 1 exit status

make: *** [psort] Error 1

/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../i686-pc-cygwin/bin/ld: cannot find -lrtrad

collect2: ld returned 1 exit status

make: *** [cv] Error 1

/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../i686-pc-cygwin/bin/ld: cannot find -lrtrad

collect2: ld returned 1 exit status
lrtrad
collect2: ld returned 1 exit status

make: *** [tabfunc] Error 1

make: Target `install' not remade because of errors.

<image001.jpg>

<Claus Brøndgaard Madsen.vcf>_______________________________________________
Radiance-general mailing list
[email protected]
http://www.radiance-online.org/mailman/listinfo/radiance-general

Hi Claus

You can find the same error report for the 3R9 release here:

http://www.radiance-online.org/pipermail/radiance-dev/2008-June/000870.html

Grep posted a solution back then as a reply to the email which is also in
the archive:

Try adding "-DEZXML_NOMMAP" to the rmake script and rerunning
"makeall install" in the main directory or "rmake install" in the src/
gen directory. Th ezxml.c module is new with this release and was
provided by a third party, so I'm not well familiar with its
portability issues. So far, it seems quite robust.

Cygwin is not very popular since precompiled MinGW binaries are available or
the Cygwin users a quiet bunch here on the list.

Regards,
Thomas

···

2010/10/21 Claus Brøndgaard Madsen <[email protected]>

Dear RADIANCE list,

It is not nice to re-post a list post, but I am desperate and got no
response the first time around. Can anyone spot a potential reason that I
have run into problems with compiling RADIANCE:

I downloaded rad4R0all, unzipped and untar’ed, then ran makeall install (on
a Windows 7 machine with Cygwin installed).

I got a lot of error messages (below the first dozens of lines of a
redirect of stderr to a textfile). Any chance of an easy fix? J

Best

Claus

================================== stderr

ezxml.c: In function ‘ezxml_parse_fd’:

ezxml.c:643: error: ‘MADV_SEQUENTIAL’ undeclared (first use in this
function)

ezxml.c:643: error: (Each undeclared identifier is reported only once

ezxml.c:643: error: for each function it appears in.)

ezxml.c:645: error: ‘MADV_NORMAL’ undeclared (first use in this function)

make: *** [ezxml.o] Error 1

make: Target `install' not remade because of errors.

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

rpict.c: In function ‘rpict’:

rpict.c:280: warning: call to ‘mktemp’ declared with attribute warning: the
use of `mktemp' is dangerous; use `mkstemp' instead

/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../i686-pc-cygwin/bin/ld: cannot
find -lrtrad

collect2: ld returned 1 exit status

make: *** [rvu] Error 1

/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../i686-pc-cygwin/bin/ld: cannot
find -lrtrad

collect2: ld returned 1 exit status

make: *** [lookamb] Error 1

make: Target `install' not remade because of errors.

/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../i686-pc-cygwin/bin/ld: cannot
find -lrtrad

collect2: ld returned 1 exit status

make: *** [meta2tga] Error 1

/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../i686-pc-cygwin/bin/ld: cannot
find -lrtrad

collect2: ld returned 1 exit status

make: *** [pexpand] Error 1

/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../i686-pc-cygwin/bin/ld: cannot
find -lrtrad

collect2: ld returned 1 exit status

make: *** [psort] Error 1

/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../i686-pc-cygwin/bin/ld: cannot
find -lrtrad

collect2: ld returned 1 exit status

make: *** [cv] Error 1

/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../i686-pc-cygwin/bin/ld: cannot
find -lrtrad

collect2: ld returned 1 exit status

lrtrad

collect2: ld returned 1 exit status

make: *** [tabfunc] Error 1

make: Target `install' not remade because of errors.

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

Thanks Andy,

Super help, super fast. Easy fix that resulted in easy, almost troublefree compilation.

I guess the real problem is that the CYGWIN variable is undefined, and I cannot find out where that define was supposed to be made. Anyway, I did as you suggested and almost everything compiled. There was only one compile error:

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
make: Target `install' not remade because of errors.

Best,
Claus

[cid:[email protected]]

···

From: [email protected] [mailto:[email protected]] On Behalf Of Andy McNeil
Sent: 21. oktober 2010 21:50
To: Radiance general discussion
Subject: Re: [Radiance-general] Problems compiling latest release under Cygwin

Hi Claus,

The errors for ezxml are preventing librtrad.a from being made. Missing librtrad causes all the subsequent errors (ld missing -lrtrad).

The part of ezxml_parse_fd that uses MADV_SEQUENTIAL is supposed to be left out when compiled on CYGWIN.

From ezxml.h:

/* disable MMAP on CYGWIN, seems to cause problems... */

#ifdef CYGWIN

#define EZXML_NOMMAP

#endif
I'd suggest changing those lines in ezxml.h to:

/* disable MMAP on CYGWIN, seems to cause problems... */

#define EZXML_NOMMAP
So that EZXML_NOMMAP is defined. ezxml.h can be found in ray/src/common/

I can't test this myself, so no promises that it'll work.

Andy

On Oct 21, 2010, at 12:04 PM, Claus Brøndgaard Madsen wrote:

Dear RADIANCE list,

It is not nice to re-post a list post, but I am desperate and got no response the first time around. Can anyone spot a potential reason that I have run into problems with compiling RADIANCE:

I downloaded rad4R0all, unzipped and untar'ed, then ran makeall install (on a Windows 7 machine with Cygwin installed).

I got a lot of error messages (below the first dozens of lines of a redirect of stderr to a textfile). Any chance of an easy fix? :slight_smile:

Best
Claus

================================== stderr =============================================

ezxml.c: In function 'ezxml_parse_fd':

ezxml.c:643: error: 'MADV_SEQUENTIAL' undeclared (first use in this function)

ezxml.c:643: error: (Each undeclared identifier is reported only once

ezxml.c:643: error: for each function it appears in.)

ezxml.c:645: error: 'MADV_NORMAL' undeclared (first use in this function)

make: *** [ezxml.o] Error 1

make: Target `install' not remade because of errors.

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

rpict.c: In function 'rpict':

rpict.c:280: warning: call to 'mktemp' declared with attribute warning: the use of `mktemp' is dangerous; use `mkstemp' instead

/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../i686-pc-cygwin/bin/ld: cannot find -lrtrad

collect2: ld returned 1 exit status

make: *** [rvu] Error 1

/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../i686-pc-cygwin/bin/ld: cannot find -lrtrad

collect2: ld returned 1 exit status

make: *** [lookamb] Error 1

make: Target `install' not remade because of errors.

/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../i686-pc-cygwin/bin/ld: cannot find -lrtrad

collect2: ld returned 1 exit status

make: *** [meta2tga] Error 1

/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../i686-pc-cygwin/bin/ld: cannot find -lrtrad

collect2: ld returned 1 exit status

make: *** [pexpand] Error 1

/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../i686-pc-cygwin/bin/ld: cannot find -lrtrad

collect2: ld returned 1 exit status

make: *** [psort] Error 1

/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../i686-pc-cygwin/bin/ld: cannot find -lrtrad

collect2: ld returned 1 exit status

make: *** [cv] Error 1

/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../i686-pc-cygwin/bin/ld: cannot find -lrtrad

collect2: ld returned 1 exit status
lrtrad
collect2: ld returned 1 exit status

make: *** [tabfunc] Error 1

make: Target `install' not remade because of errors.

<image001.jpg>

<Claus Brøndgaard Madsen.vcf>_______________________________________________
Radiance-general mailing list
[email protected]<mailto:[email protected]>
http://www.radiance-online.org/mailman/listinfo/radiance-general

While we are at it. Are there any instructions of how to compile Radiance under MinGW?

Christoph

···

From: [email protected] [mailto:[email protected]] On Behalf Of Claus Brøndgaard Madsen
Sent: Thursday, October 21, 2010 4:23 PM
To: Radiance general discussion
Subject: RE: [Radiance-general] Problems compiling latest release under Cygwin

Thanks Andy,

Super help, super fast. Easy fix that resulted in easy, almost troublefree compilation.

I guess the real problem is that the CYGWIN variable is undefined, and I cannot find out where that define was supposed to be made. Anyway, I did as you suggested and almost everything compiled. There was only one compile error:

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

make: Target `install' not remade because of errors.

Best,

Claus

From: [email protected] [mailto:[email protected]] On Behalf Of Andy McNeil
Sent: 21. oktober 2010 21:50
To: Radiance general discussion
Subject: Re: [Radiance-general] Problems compiling latest release under Cygwin

Hi Claus,

The errors for ezxml are preventing librtrad.a from being made. Missing librtrad causes all the subsequent errors (ld missing -lrtrad).

The part of ezxml_parse_fd that uses MADV_SEQUENTIAL is supposed to be left out when compiled on CYGWIN.

From ezxml.h:

/* disable MMAP on CYGWIN, seems to cause problems... */
#ifdef CYGWIN
#define EZXML_NOMMAP
#endif

I'd suggest changing those lines in ezxml.h to:

/* disable MMAP on CYGWIN, seems to cause problems... */
#define EZXML_NOMMAP

So that EZXML_NOMMAP is defined. ezxml.h can be found in ray/src/common/

I can't test this myself, so no promises that it'll work.

Andy

On Oct 21, 2010, at 12:04 PM, Claus Brøndgaard Madsen wrote:

Dear RADIANCE list,

It is not nice to re-post a list post, but I am desperate and got no response the first time around. Can anyone spot a potential reason that I have run into problems with compiling RADIANCE:

I downloaded rad4R0all, unzipped and untar'ed, then ran makeall install (on a Windows 7 machine with Cygwin installed).

I got a lot of error messages (below the first dozens of lines of a redirect of stderr to a textfile). Any chance of an easy fix? J

Best

Claus

================================== stderr =============================================

ezxml.c: In function 'ezxml_parse_fd':

ezxml.c:643: error: 'MADV_SEQUENTIAL' undeclared (first use in this function)

ezxml.c:643: error: (Each undeclared identifier is reported only once

ezxml.c:643: error: for each function it appears in.)

ezxml.c:645: error: 'MADV_NORMAL' undeclared (first use in this function)

make: *** [ezxml.o] Error 1

make: Target `install' not remade because of errors.

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

rpict.c: In function 'rpict':

rpict.c:280: warning: call to 'mktemp' declared with attribute warning: the use of `mktemp' is dangerous; use `mkstemp' instead

/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../i686-pc-cygwin/bin/ld: cannot find -lrtrad

collect2: ld returned 1 exit status

make: *** [rvu] Error 1

/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../i686-pc-cygwin/bin/ld: cannot find -lrtrad

collect2: ld returned 1 exit status

make: *** [lookamb] Error 1

make: Target `install' not remade because of errors.

/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../i686-pc-cygwin/bin/ld: cannot find -lrtrad

collect2: ld returned 1 exit status

make: *** [meta2tga] Error 1

/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../i686-pc-cygwin/bin/ld: cannot find -lrtrad

collect2: ld returned 1 exit status

make: *** [pexpand] Error 1

/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../i686-pc-cygwin/bin/ld: cannot find -lrtrad

collect2: ld returned 1 exit status

make: *** [psort] Error 1

/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../i686-pc-cygwin/bin/ld: cannot find -lrtrad

collect2: ld returned 1 exit status

make: *** [cv] Error 1

/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../i686-pc-cygwin/bin/ld: cannot find -lrtrad

collect2: ld returned 1 exit status

lrtrad

collect2: ld returned 1 exit status

make: *** [tabfunc] Error 1

make: Target `install' not remade because of errors.

<image001.jpg>

<Claus Brøndgaard Madsen.vcf>_______________________________________________
Radiance-general mailing list
[email protected]
http://www.radiance-online.org/mailman/listinfo/radiance-general

To finish this up for the records.

Regarding that last sighandler_t error when compiling persist.c I resolved that (or at least got to a point where everything compiles nicely) by applying a fix I found on radiance.org:

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!

I did no research either ... just tried the same and arrived at error-free compilation of all targets.

Best

[cid:[email protected]]

···

From: [email protected] [mailto:[email protected]] On Behalf Of Claus Brøndgaard Madsen
Sent: 21. oktober 2010 22:23
To: Radiance general discussion
Subject: RE: [Radiance-general] Problems compiling latest release under Cygwin

Thanks Andy,

Super help, super fast. Easy fix that resulted in easy, almost troublefree compilation.

I guess the real problem is that the CYGWIN variable is undefined, and I cannot find out where that define was supposed to be made. Anyway, I did as you suggested and almost everything compiled. There was only one compile error:

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
make: Target `install' not remade because of errors.

Best,
Claus

[cid:[email protected]]

From: [email protected] [mailto:[email protected]] On Behalf Of Andy McNeil
Sent: 21. oktober 2010 21:50
To: Radiance general discussion
Subject: Re: [Radiance-general] Problems compiling latest release under Cygwin

Hi Claus,

The errors for ezxml are preventing librtrad.a from being made. Missing librtrad causes all the subsequent errors (ld missing -lrtrad).

The part of ezxml_parse_fd that uses MADV_SEQUENTIAL is supposed to be left out when compiled on CYGWIN.

From ezxml.h:

/* disable MMAP on CYGWIN, seems to cause problems... */

#ifdef CYGWIN

#define EZXML_NOMMAP

#endif
I'd suggest changing those lines in ezxml.h to:

/* disable MMAP on CYGWIN, seems to cause problems... */

#define EZXML_NOMMAP
So that EZXML_NOMMAP is defined. ezxml.h can be found in ray/src/common/

I can't test this myself, so no promises that it'll work.

Andy

On Oct 21, 2010, at 12:04 PM, Claus Brøndgaard Madsen wrote:

Dear RADIANCE list,

It is not nice to re-post a list post, but I am desperate and got no response the first time around. Can anyone spot a potential reason that I have run into problems with compiling RADIANCE:

I downloaded rad4R0all, unzipped and untar'ed, then ran makeall install (on a Windows 7 machine with Cygwin installed).

I got a lot of error messages (below the first dozens of lines of a redirect of stderr to a textfile). Any chance of an easy fix? :slight_smile:

Best
Claus

================================== stderr =============================================

ezxml.c: In function 'ezxml_parse_fd':

ezxml.c:643: error: 'MADV_SEQUENTIAL' undeclared (first use in this function)

ezxml.c:643: error: (Each undeclared identifier is reported only once

ezxml.c:643: error: for each function it appears in.)

ezxml.c:645: error: 'MADV_NORMAL' undeclared (first use in this function)

make: *** [ezxml.o] Error 1

make: Target `install' not remade because of errors.

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

rpict.c: In function 'rpict':

rpict.c:280: warning: call to 'mktemp' declared with attribute warning: the use of `mktemp' is dangerous; use `mkstemp' instead

/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../i686-pc-cygwin/bin/ld: cannot find -lrtrad

collect2: ld returned 1 exit status

make: *** [rvu] Error 1

/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../i686-pc-cygwin/bin/ld: cannot find -lrtrad

collect2: ld returned 1 exit status

make: *** [lookamb] Error 1

make: Target `install' not remade because of errors.

/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../i686-pc-cygwin/bin/ld: cannot find -lrtrad

collect2: ld returned 1 exit status

make: *** [meta2tga] Error 1

/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../i686-pc-cygwin/bin/ld: cannot find -lrtrad

collect2: ld returned 1 exit status

make: *** [pexpand] Error 1

/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../i686-pc-cygwin/bin/ld: cannot find -lrtrad

collect2: ld returned 1 exit status

make: *** [psort] Error 1

/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../i686-pc-cygwin/bin/ld: cannot find -lrtrad

collect2: ld returned 1 exit status

make: *** [cv] Error 1

/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../i686-pc-cygwin/bin/ld: cannot find -lrtrad

collect2: ld returned 1 exit status
lrtrad
collect2: ld returned 1 exit status

make: *** [tabfunc] Error 1

make: Target `install' not remade because of errors.

<image001.jpg>

<Claus Brøndgaard Madsen.vcf>_______________________________________________
Radiance-general mailing list
[email protected]<mailto:[email protected]>
http://www.radiance-online.org/mailman/listinfo/radiance-general

Greg checked in a bunch of changes to the SCons script for compiling on MinGW back in June (see radiance-dev for details). If you use the HEAD it should compile. Haven't tried it myself though.

Andy

···

On Oct 21, 2010, at 1:35 PM, Reinhart, Christoph wrote:

While we are at it. Are there any instructions of how to compile Radiance under MinGW?

Christoph

From: [email protected] [mailto:[email protected]] On Behalf Of Claus Brøndgaard Madsen
Sent: Thursday, October 21, 2010 4:23 PM
To: Radiance general discussion
Subject: RE: [Radiance-general] Problems compiling latest release under Cygwin

Thanks Andy,

Super help, super fast. Easy fix that resulted in easy, almost troublefree compilation.

I guess the real problem is that the CYGWIN variable is undefined, and I cannot find out where that define was supposed to be made. Anyway, I did as you suggested and almost everything compiled. There was only one compile error:

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
make: Target `install' not remade because of errors.

Best,
Claus

<image001.jpg>

From: [email protected] [mailto:[email protected]] On Behalf Of Andy McNeil
Sent: 21. oktober 2010 21:50
To: Radiance general discussion
Subject: Re: [Radiance-general] Problems compiling latest release under Cygwin

Hi Claus,

The errors for ezxml are preventing librtrad.a from being made. Missing librtrad causes all the subsequent errors (ld missing -lrtrad).

The part of ezxml_parse_fd that uses MADV_SEQUENTIAL is supposed to be left out when compiled on CYGWIN.

From ezxml.h:
/* disable MMAP on CYGWIN, seems to cause problems... */
#ifdef CYGWIN
#define EZXML_NOMMAP
#endif
I'd suggest changing those lines in ezxml.h to:
/* disable MMAP on CYGWIN, seems to cause problems... */
#define EZXML_NOMMAP
So that EZXML_NOMMAP is defined. ezxml.h can be found in ray/src/common/

I can't test this myself, so no promises that it'll work.

Andy

On Oct 21, 2010, at 12:04 PM, Claus Brøndgaard Madsen wrote:

Dear RADIANCE list,

It is not nice to re-post a list post, but I am desperate and got no response the first time around. Can anyone spot a potential reason that I have run into problems with compiling RADIANCE:

I downloaded rad4R0all, unzipped and untar’ed, then ran makeall install (on a Windows 7 machine with Cygwin installed).

I got a lot of error messages (below the first dozens of lines of a redirect of stderr to a textfile). Any chance of an easy fix? J

Best
Claus

================================== stderr =============================================

ezxml.c: In function ‘ezxml_parse_fd’:

ezxml.c:643: error: ‘MADV_SEQUENTIAL’ undeclared (first use in this function)

ezxml.c:643: error: (Each undeclared identifier is reported only once

ezxml.c:643: error: for each function it appears in.)

ezxml.c:645: error: ‘MADV_NORMAL’ undeclared (first use in this function)

make: *** [ezxml.o] Error 1

make: Target `install' not remade because of errors.

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

rpict.c: In function ‘rpict’:

rpict.c:280: warning: call to ‘mktemp’ declared with attribute warning: the use of `mktemp' is dangerous; use `mkstemp' instead

/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../i686-pc-cygwin/bin/ld: cannot find -lrtrad

collect2: ld returned 1 exit status

make: *** [rvu] Error 1

/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../i686-pc-cygwin/bin/ld: cannot find -lrtrad

collect2: ld returned 1 exit status

make: *** [lookamb] Error 1

make: Target `install' not remade because of errors.

/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../i686-pc-cygwin/bin/ld: cannot find -lrtrad

collect2: ld returned 1 exit status

make: *** [meta2tga] Error 1

/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../i686-pc-cygwin/bin/ld: cannot find -lrtrad

collect2: ld returned 1 exit status

make: *** [pexpand] Error 1

/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../i686-pc-cygwin/bin/ld: cannot find -lrtrad

collect2: ld returned 1 exit status

make: *** [psort] Error 1

/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../i686-pc-cygwin/bin/ld: cannot find -lrtrad

collect2: ld returned 1 exit status

make: *** [cv] Error 1

/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../i686-pc-cygwin/bin/ld: cannot find -lrtrad

collect2: ld returned 1 exit status
lrtrad
collect2: ld returned 1 exit status

make: *** [tabfunc] Error 1

make: Target `install' not remade because of errors.

<image001.jpg>

<Claus Brøndgaard Madsen.vcf>_______________________________________________
Radiance-general mailing list
[email protected]
http://www.radiance-online.org/mailman/listinfo/radiance-general

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

For Compiling Radiance under Windows using MinGw, the instructions & tools
can be found at this site:

<http://www.bozzograo.net/radiancewiki/doku.php?id=how_to_compile_radiance_using_the_mingw_tools_and_scons>

In order to compile the latest HEAD release I also had to make the
changes to Scons listed at:
http://www.radiance-online.org/pipermail/radiance-dev/2010-October/001051.html
http://www.radiance-online.org/pipermail/radiance-dev/2010-October/001053.html
http://www.radiance-online.org/pipermail/radiance-dev/2010-October/001055.html
http://www.radiance-online.org/pipermail/radiance-dev/2010-October/001056.html
http://www.radiance-online.org/pipermail/radiance-dev/2010-October/001057.html

Don't forget to update your PATH environment variable on Windows.

Regards,

Guy

Hi,

I've managed to compile Radiance in Windows 7 with MinGW.
Check this thread:
http://radiance-online.org/pipermail/radiance-dev/2010-October/001051.html

Marija

···

-----------

On Oct 21, 2010, at 1:35 PM, Reinhart, Christoph wrote:

While we are at it. Are there any instructions of how to compile Radiance
under MinGW?

Christoph