Radiance on Windows 7 Ultimate using SUA (it works!)

It might be possible to get full Radiance going under Windows 7
Ultimate, which has a Unix emulation environment. However, doing this
requires development time and the purchase of a copy of Ultimate and
possibly a copy of the MS Visual Studio suite as well. To run the
resulting package might also require users to buy Ultimate.

So...one more thing we might try, if we had the resources and if there
were enough interest.

I just wanted to tell that I've tried it and it works! (A bit to my
supprise.)

I have: Windows 7 Ultimate 64 bits.

I followed the guideline on the Radiance Wiki site:
./makeall install in ray folder
chosing ~/radiance/bin installs on Windows in C:\user\yourname\radiance\bin
I choose option 2) Linux (seems to be the best option).

I encountered three problems, here are they, with solution.

Problem 1: (Seems to be related to 64 bit system with 32 bit gcc and 64 bit
or wrong archiver)
This is the error:
Error code 127
AR_LIBRARIAN environment variable

···

===============================================================================
Solution:
Add: export PATH="/opt/gcc.4.2/bin:${PATH}" to
C:\windows\SUA\etc\profile.lcl
Also see: http://www.suacommunity.com/forum/tm.aspx?m=16624 for more
detailled info.

Problem 2:
Making programs...
/dev/fs/C/Windows/SUA/usr/examples/radiance/ray/src/common
/dev/fs/C/Windows/SUA
/usr/examples/radiance/ray/src
In directory common...
gcc -Dlinux -L/usr/X11R6/lib -L/usr/local/lib/x86 -L/usr/lib/x86
-L/usr/local/li
b/ray -I/usr/include/X11 -DNOSTEREO -O2 -c ezxml.c
ezxml.c: In function 'ezxml_parse_fd':
ezxml.c:647: error: '_SC_PAGESIZE' undeclared (first use in this function)
ezxml.c:647: error: (Each undeclared identifier is reported only once
ezxml.c:647: error: for each function it appears in.)
*** Error code 1 (continuing)
`install' not remade because of errors.

Solution: Included: #define EZXML_NOMMAP in ezxml.c

Problem 3:
In directory rt...
gcc -I../common -L../lib -O2 -Dlinux -L/usr/X11R6/lib -L/usr/local/lib/x86
-L/us
r/lib/x86 -L/usr/local/lib/ray -I/usr/include/X11 -DNOSTEREO -o ./rtrace
rtmain.
o rtrace.o duphead.o persist.o ../lib/libraycalls.a ../lib/libradiance.a
-lrtrad
-lm
../lib/librtrad.a(header.o):header.c:(.text+0x5b4): undefined reference to
`_tim
egm'
collect2: ld returned 1 exit status
*** Error code 1 (continuing)

Solution: Included timegm.o in src/common/Rmakefile
Like:
UTLOBJ = ezxml.o ccolor.o ccyrgb.o bsdf.o bsdf_m.o bsdf_t.o loadbsdf.o \
disk2square.o hilbert.o timegm.o

That's all, after that I ran gendaylit and Mark Stock's benchmark test
suite, and all works.

Still need to install an XServer (Xming) and a NFS server (included in
Windows 7 Ultimate).
And run some more tests including rvu, trad, falsecolor, rpiece.

I hope this is usefull,

Guy

Wow! That is great news!

Randolph

···

On 2011-08-01 15:02:55 -0700, Guy Vaessen said:

> It might be possible to get full Radiance going under Windows 7 > Ultimate, which has a Unix emulation environment. However, doing this > requires development time and the purchase of a copy of Ultimate and > possibly a copy of the MS Visual Studio suite as well. To run the > resulting package might also require users to buy Ultimate.

> So...one more thing we might try, if we had the resources and if there > were enough interest.

I just wanted to tell that I've tried it and it works! (A bit to my supprise.)

I have: Windows 7 Ultimate 64 bits.

I followed the guideline on the Radiance Wiki site:
./makeall install in ray folder
chosing ~/radiance/bin installs on Windows in C:\user\yourname\radiance\bin
I choose option 2) Linux (seems to be the best option).

I encountered three problems, here are they, with solution.

Problem 1: (Seems to be related to 64 bit system with 32 bit gcc and 64 bit or wrong archiver)
This is the error:
Error code 127
AR_LIBRARIAN environment variable

Solution:
Add: export PATH="/opt/gcc.4.2/bin:${PATH}" to C:\windows\SUA\etc\profile.lcl
Also see: http://www.suacommunity.com/forum/tm.aspx?m=16624 for more detailled info.

Problem 2:
Making programs...
/dev/fs/C/Windows/SUA/usr/examples/radiance/ray/src/common /dev/fs/C/Windows/SUA
/usr/examples/radiance/ray/src
In directory common...
gcc -Dlinux -L/usr/X11R6/lib -L/usr/local/lib/x86 -L/usr/lib/x86 -L/usr/local/li
b/ray -I/usr/include/X11 -DNOSTEREO -O2 -c ezxml.c
ezxml.c: In function 'ezxml_parse_fd':
ezxml.c:647: error: '_SC_PAGESIZE' undeclared (first use in this function)
ezxml.c:647: error: (Each undeclared identifier is reported only once
ezxml.c:647: error: for each function it appears in.)
*** Error code 1 (continuing)
`install' not remade because of errors.

Solution: Included: #define EZXML_NOMMAP in ezxml.c

Problem 3:
In directory rt...
gcc -I../common -L../lib -O2 -Dlinux -L/usr/X11R6/lib -L/usr/local/lib/x86 -L/us
r/lib/x86 -L/usr/local/lib/ray -I/usr/include/X11 -DNOSTEREO -o ./rtrace rtmain.
o rtrace.o duphead.o persist.o ../lib/libraycalls.a ../lib/libradiance.a -lrtrad
-lm
../lib/librtrad.a(header.o):header.c:(.text+0x5b4): undefined reference to `_tim
egm'
collect2: ld returned 1 exit status
*** Error code 1 (continuing)

Solution: Included timegm.o in src/common/Rmakefile
Like:
UTLOBJ = ezxml.o ccolor.o ccyrgb.o bsdf.o bsdf_m.o bsdf_t.o loadbsdf.o \
disk2square.o hilbert.o timegm.o

That's all, after that I ran gendaylit and Mark Stock's benchmark test suite, and all works.

Still need to install an XServer (Xming) and a NFS server (included in Windows 7 Ultimate).
And run some more tests including rvu, trad, falsecolor, rpiece.

I hope this is usefull,

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

--
Randolph M. Fritz

Hi, Guy,

Wouldn't it be easier to install Radiance 3.8 or 3.9 in Win7 through
installing DaySim or DIVA for Rhino?

That's how I did in my Win7 64bit Ultimate and the installation will take
care of setting the path and all sort of things.

- Cheers, Ji

···

On Tue, Aug 2, 2011 at 6:02 AM, Guy Vaessen <[email protected]> wrote:

> It might be possible to get full Radiance going under Windows 7
> Ultimate, which has a Unix emulation environment. However, doing this
> requires development time and the purchase of a copy of Ultimate and
> possibly a copy of the MS Visual Studio suite as well. To run the
> resulting package might also require users to buy Ultimate.

> So...one more thing we might try, if we had the resources and if there
> were enough interest.

I just wanted to tell that I've tried it and it works! (A bit to my
supprise.)

I have: Windows 7 Ultimate 64 bits.

I followed the guideline on the Radiance Wiki site:
./makeall install in ray folder
chosing ~/radiance/bin installs on Windows in C:\user\yourname\radiance\bin
I choose option 2) Linux (seems to be the best option).

I encountered three problems, here are they, with solution.

Problem 1: (Seems to be related to 64 bit system with 32 bit gcc and 64 bit
or wrong archiver)
This is the error:
Error code 127
AR_LIBRARIAN environment variable

===============================================================================
Solution:
Add: export PATH="/opt/gcc.4.2/bin:${PATH}" to
C:\windows\SUA\etc\profile.lcl
Also see: http://www.suacommunity.com/forum/tm.aspx?m=16624 for more
detailled info.

Problem 2:
Making programs...
/dev/fs/C/Windows/SUA/usr/examples/radiance/ray/src/common
/dev/fs/C/Windows/SUA
/usr/examples/radiance/ray/src
In directory common...
gcc -Dlinux -L/usr/X11R6/lib -L/usr/local/lib/x86 -L/usr/lib/x86
-L/usr/local/li
b/ray -I/usr/include/X11 -DNOSTEREO -O2 -c ezxml.c
ezxml.c: In function 'ezxml_parse_fd':
ezxml.c:647: error: '_SC_PAGESIZE' undeclared (first use in this function)
ezxml.c:647: error: (Each undeclared identifier is reported only once
ezxml.c:647: error: for each function it appears in.)
*** Error code 1 (continuing)
`install' not remade because of errors.

===============================================================================
Solution: Included: #define EZXML_NOMMAP in ezxml.c

Problem 3:
In directory rt...
gcc -I../common -L../lib -O2 -Dlinux -L/usr/X11R6/lib -L/usr/local/lib/x86
-L/us
r/lib/x86 -L/usr/local/lib/ray -I/usr/include/X11 -DNOSTEREO -o ./rtrace
rtmain.
o rtrace.o duphead.o persist.o ../lib/libraycalls.a ../lib/libradiance.a
-lrtrad
-lm
../lib/librtrad.a(header.o):header.c:(.text+0x5b4): undefined reference to
`_tim
egm'
collect2: ld returned 1 exit status
*** Error code 1 (continuing)

===============================================================================
Solution: Included timegm.o in src/common/Rmakefile
Like:
UTLOBJ = ezxml.o ccolor.o ccyrgb.o bsdf.o bsdf_m.o bsdf_t.o loadbsdf.o \
disk2square.o hilbert.o timegm.o

That's all, after that I ran gendaylit and Mark Stock's benchmark test
suite, and all works.

Still need to install an XServer (Xming) and a NFS server (included in
Windows 7 Ultimate).
And run some more tests including rvu, trad, falsecolor, rpiece.

I hope this is usefull,

Guy

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

Hi Ji,

Wouldn't it be easier to install Radiance 3.8 or 3.9 in Win7 through
installing DaySim or DIVA for Rhino?

Yes, you're right ofcource, that's the easy way to install Radiance! :wink:

But the idea (and the credits go to Randolph actually) was to see
how wel Radiance would do with SUA. (Subsystem for Unix based Applications).
SUA is advertised as being Unix on Windows, with, well everything: fork,
bash, NFS, X11 support etc.

And it works very wel, today I got rvu and falsecolor running on Win 7.
Trad doesn't work (segfaults) and rpiece only calculates 7 out of 8 image
paches (leaves one black spot),
might have done something wrong because rpiece complained about a -pm
setting.

The performance also isn't bad: 32 minutes for Mark Stock's benchmark test
on a Intel 2600K (@3.8GHz) system.

Best Regards,

Guy

Guy,

Wow. That is really wonderful news (and thank you for the credit.) That rpiece worked at all is very cool and gives me some hope that we can make it work consistently.

Based on this news I am hopeful that we will eventually be able to do a proper release of Radiance for Windows Ultimate, if we can find the time to do the work.

Randolph

···

On 2011-08-02 13:54:16 -0700, Guy Vaessen said:

Hi Ji,

> Wouldn't it be easier to install Radiance 3.8 or 3.9 in Win7 through
> installing DaySim or DIVA for Rhino?

Yes, you're right ofcource, that's the easy way to install Radiance! :wink:

But the idea (and the credits go to Randolph actually) was to see
how wel Radiance would do with SUA. (Subsystem for Unix based Applications).
SUA is advertised as being Unix on Windows, with, well everything: fork, bash, NFS, X11 support etc.

And it works very wel, today I got rvu and falsecolor running on Win 7.
Trad doesn't work (segfaults) and rpiece only calculates 7 out of 8 image paches (leaves one black spot),
might have done something wrong because rpiece complained about a -pm setting.

The performance also isn't bad: 32 minutes for Mark Stock's benchmark test on a Intel 2600K (@3.8GHz) system.

Best Regards,

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

--
Randolph M. Fritz