Radiance with Vista


I was successful to build from source code of Raiance4.0 on Windows (32bit) Vista using MinGW, Cmake, the QT4.

Here are the steps for me.

1) MinGw
I had to download and install mingw-get-inst-20111118.exe from sourceforge is linked from the http://www.mingw.org/, and select all the items.

I was an environment variable is set as follows.
PATH ====> C: \ MinGW \ bin; C: \ MinGW \ msys \ 1.0 \ bin
C_INCLUDE_PATH ====> C: \ MinGW \ include
CPLUS_INCLUDE_PATH ====> C: \ MinGW \ include
LIBRARY_PATH ====> C: \ MinGW \ lib

2) Obtaining Radiance4.0
Source code is not available. So I used http://radsite.lbl.gov/radiance/.

I downloaded the http://ftp.de.debian.org/debian/pool/main/r/radiance/radiance_4R0+20100729.orig.tar.gz in (squeeze) Package Debian there.

I unzip the radiance_4R0+20100729.orig.tar.gz, and the name was changed to ray.

I downloaded the radiance-HEAD.tgz from http://www.radiance-online.org/.

I Unzip radiance-HEAD.tgz.

3) Cmake
I downloaded the cmake-2.8.7-win32-x86.exe from http://www.cmake.org/, and installed.

4) Qt4
I have qt-win-opensource-4.8.0-mingw.exe from http://qt.nokia.com/.I ran the configure of \ Qt \ 4.8.0: C and below.

I added the environment variable.
PATH ====> C: \ Qt \ 4.8.0 \ bin

Before I start the Cmake-GUI, I have decided the source code directory, the working directory and the install directory.
And I modified the rtcontrib.c.

# Ifdef _WIN32
typedef long ssize_t;
# Endif

# Ifdef _WIN32
typedef int ssize_t;
# Endif

Go to the working directory. I performed make and make install.


   Name : Koji Takemasa
E-mail : [email protected]
    URL : http://web.me.com/koji_takemasa/MobileMe/LEAD_Project.html