Thank you for quick responses Greg and Guy. It's nice to see an active 
community. 


I've tried using binary packages with tutorial 
(http://radsite.lbl.gov/radiance/refer/tutorial.html#Intro), but would 
like to be able to see the scene that I've described using the 
interactive viewer rview. This is what motivated me to compile the source code. 

I've managed to compile and install Radiance but without qtrvu. qtrvu did not 
compile as I did not have QT4 libraries on my computer at the time. I am 
working on resolving this now.

My understanding from the mailing list is that qtrvu is an alternative to rview 
for users without Unix/X11 support. Is that correct?


I've read in many posts that old-versions of SCons were required, but most 
posts were dating back from 2010 and before. It thought that since active 
development was still being done, that later SCons versions may have been 
supported. Thank you for clarification Guy. 


In compiling Radiance 4.1a, without qtrvu, I ran into 2 problems: SCons and an 
Error in "rtcontrib.c"

1.SCons 2.1.0 Resolution to the problem I mentioned in my original post:        
    Replace #cfig = ConfigParser.ConfigParser(env.Dictionary()) statement found 
on line 11, load_plat.py
            with 
            cfig = ConfigParser.ConfigParser()

Removing env.Dictionary() does not cause any adverse effects - but someone else 
may correct me here

2.'ssize_t' variable name in "rtcontrib.c" conflicts with 'ssize_t' in 
mingw....include/sys/types.h
Since 'ssize_t' is found in 3 places and only in "rtcontrib.c", I've changed 
the variable to 'sSize_t'


This allowed the compilation to finish without errors.


From C:\MingW\include\sys\types.h

#ifndef _SSIZE_T_
#define _SSIZE_T_
typedef int _ssize_t;

#ifndef    _NO_OLDNAMES
typedef _ssize_t ssize_t;        


AND


Here's the error:
gcc -o src\util\rtcontrib.o -c -O2 -D_WIN32 -DMINGW -DNDEBUG -D_CONSOLE -D_MBCS 
-DHDSUF=.exe -Dfseeko=fseek -Isrc\common src\util\rtcontrib.c
src\util\rtcontrib.c:20:14: error: conflicting types for 'ssize_t'
c:\mingw\bin\../lib/gcc/mingw32/4.6.1/../../../../include/sys/types.h:118:18: 
note: previous declaration of 'ssize_t' was here
src\util\rtcontrib.c: In function 'main':
src\util\rtcontrib.c:412:3: warning: passing argument 2 of 'execv' from 
incompatible pointer type [enabled by default]
c:\mingw\bin\../lib/gcc/mingw32/4.6.1/../../../../include/process.h:118:42: 
note: expected 'const char * const*' but argument is of type 'char **'
scons: *** [src\util\rtcontrib.o] Error 1
scons: building terminated because of errors.

After changing ssize_t to sSize_t, here's the "affected" part of the output:

gcc -o src\util\rtcontrib.o -c -O2 -D_WIN32 -DMINGW -DNDEBUG -D_CONSOLE -D_MBCS 
-DHDSUF=.exe -Dfseeko=fseek -Isrc\common src\util\rtcontrib.c
src\util\rtcontrib.c: In function 'main':
src\util\rtcontrib.c:412:3: warning: passing argument 2 of 'execv' from 
incompatible pointer type [enabled by default]
c:\mingw\bin\../lib/gcc/mingw32/4.6.1/../../../../include/process.h:118:42: 
note: expected 'const char * const*' but argument is of type 'char **'
gcc -o src\util\setscan.o -c -O2 -D_WIN32 -DMINGW -DNDEBUG -D_CONSOLE -D_MBCS 
-DHDSUF=.exe -Dfseeko=fseek -Isrc\common src\util\setscan.c



________________________________
 From: Guy Vaessen <[email protected]>
To: [email protected] 
Sent: Saturday, January 21, 2012 6:22 PM
Subject: [Radiance-dev] Cannot build Radiance 4.1a on Windows XP SP2 - beginner
 

Although Scons 1.3.1 (the old version!) is still able to compile Radiance 4.2a, 
I do think it's time for the Scons build system to be removed.
If you're new to Radiance I would go for some precompiled binaries to run 
Radiance as they also set the right environment variables in Windows.
 
If I remember correctly the NREL/CMAKE build system has some additional 
features planned/implemented compared to the Scons/MinGW system. (rvu for 
Windows), although I haven't seen it yet.
So it would be nice to hear the latest status of that project.
 
Best Regards,
 
Guy
 
 
_______________________________________________
Radiance-dev mailing list
[email protected]
http://www.radiance-online.org/mailman/listinfo/radiance-dev
_______________________________________________
Radiance-dev mailing list
[email protected]
http://www.radiance-online.org/mailman/listinfo/radiance-dev

Reply via email to