Tom wrote:
Hi,
I'm Tom, and a guraduate student in Japan.
I joined this ML today, and I want you to tell me
how to compile the radiance code(rad3R5.tar.gz)
on Microsoft Visual C++.
(If you think I'm reffering to the improper topic in this ML,
I have to say I'm sorry, and please ignore this mail.)
Although I tried to find the source code set for Visual C++
using search engines, but I could not.
First, I want to know whether such program code set exists.
If there is no code set, I want you to tell me the way
to easily compile on Microsoft Visual C++, if any.
I'm often using Visual C++ 6.0 now in order to handle/create
C or C++ program, and trying to customise the radiance program
from now on.
- Get and install Python: http://www.python.org/
- Get and install SCons: http://scons.sourceforge.net/
- Get and install the Radiance HEAD dump and auxiliary package
(the 3.5 release won't work).
- Open a command console (DOS box), and change to the "ray"
directory of the Radiance source tree.
- Run the command "scons install" in that directory.
(You may need to give the full path to the SCons batch file)
- Wait.
This will build and install *most* of Radiance, using the most
current VC version found on the system. There are a few parts
that still need to get ported, such as the holodeck, the GUI
programs, and some other minor stuff. The default installation
location for Windows is under "C:\radiance3.6a\". You may need
to set the correct RAYPATH for everything to work properly.
Actually, I'm not sure if it will actually *work*...
I have done a few simple tests, and I don't remember any major
hickups. If you (or someone else) find any, feel free to report
and/or fix at your leisure.
If you want it to install in a different location, then you
have two possibilities:
* Either add the variables RAD_BINDIR, RAD_MANDIR, and RAD_RLIBDIR
to the SCons command line like this:
"scons RAD_BINDIR=c:\where\ever\bin install"
(add the other two as well).
* Or make a copy of the file "platform\win32.cfg" to
"platform\win32_custom.cfg" and change the respective variables
in the new copy. Note that in this case those three variables
are relative to RAD_BASEDIR. If such a *_custom.cfg file
exists, then it will take precedence over the original.
If you need the missing parts as well, then you'll have to resort
to Cygwin, SCons will work there as well. In fact, the SCons
build system works on all platforms supported by Radiance, as an
alternative to the traditional makefiles.
-schorsch
···
--
Georg Mischler -- simulations developer -- schorsch at schorsch com
+schorsch.com+ -- lighting design tools -- http://www.schorsch.com/