Here are some changes to make to the Scons scripts, to get 4.0 to
compile on Windows using MinGW. These were compiled on Windows 7, but
it should work for XP as well.
···
************
This one was previously reported on the dev-list.
/ray/build_utils/find_libs.py
Change:
v = env.FindFile('Verdana.fnt', './lib')
to:
v = env.FindFile('Veerdana.fnt', './lib')
***********
***********
Add some new files to the script:
/ray/src/rt/SConscript
Change:
duphead = env.Object(source="duphead.c")
persist = env.Object(source="persist.c")
ambio = env.Object(source="ambio.c")
to:
duphead = env.Object(source="duphead.c")
persist = env.Object(source="persist.c")
ambio = env.Object(source="ambio.c")
rayfifo = env.Object(source="rayfifo.c")
raypwin = env.Object(source="raypwin.c")
raycalls = env.Object(source="raycalls.c")
Change:
rtsrc = ['rtrace.c', duphead, persist, rtmain]
to:
rtsrc = ['rtrace.c', duphead, persist, rtmain, rayfifo, raypwin, raycalls]
************
*********
I couldn't figure out how to cleanly set the tools environment from
win32 (which uses the Microsoft Visual Studio compiler) to mingw.
I made this crude change to the main Sconscript, please tell me the
proper way to force it to use the mingw environment:
/ray/SConstruct
Change:
# Set up build environment
-env = Environment()
to:
# Set up build environment
env = Environment(tools = ['mingw'])
*********
Christian
**************
Christian Kohler, [email protected], (510) 486-5040, http://windows.lbl.gov ,
Windows & Daylighting Research Group, Lawrence Berkeley National Laboratory
1 Cyclotron Rd, Berkeley, California, 94720, USA