Windows System Setup

Introduction

At the moment we are trying to get imedgine to run on windows, here is what works so far:

MinGW

To install MinGW go to Sourceforge download page, download one of their predefined packages and install GCC and Make

Download and install MSYS-1.0.10.exe from here or from the link above.

Download and install msysDTK-1.0.1.exe from the same page.

Add your MinGW bin directory to the path variables.

QT

Download QT from Trolltech and extract it to its final directory. You can remove the demos and examples directory if you want.

Open the cmd, change to your qt directory and execute

configure.exe

After that you have to run

        mingw32-make
      

Further reading on QT4 installation on Windows is here.

CMake

Get the binary and install it.

ITK

Download ITK from here, extract it, move it to desired directory.

Open CMake, select MSYS as make environment, select the source and the build path, run configure once.

Switch BUID_TESTING and BUILD_EXAMPLES to off to save time and hard drive space.

Open the MSys Console (cmd won't work!). Execute

cd /c/Your/Path/

and run make and make install.

Coin

To install coin run MSYS, change to the directory and run configure, after that run make

Linking fails with the following error message:

c:/programme/mingw/mingw32/bin/ld.exe -r -o .libs/libCoin.la-5.o .libs/libCoin.lax/libvrml97.a/VisibilitySensor.o .libs/libCoin.lax/libvrml97.a/WorldInfo.o .libs/libCoin.la-4.o
g++ -shared -nostdlib c:/programme/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../dllcrt2.o c:/programme/mingw/bin/../lib/gcc/mingw32/3.4.2/crtbegin.o .libs/libCoin.la-5.o  -lopengl32 -lwinmm -luser32 -lgdi32 -Lc:/programme/mingw/bin/../lib/gcc/mingw32/3.4.2 -Lc:/programme/mingw/bin/../lib/gcc -Lc:/programme/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../mingw32/lib -Lc:/programme/mingw/bin/../lib/gcc/mingw32/3.4.2/../../.. -lstdc++ -lmingw32 -lgcc -lmoldname -lmingwex -lmsvcrt -luser32 -lkernel32 -ladvapi32 -lshell32 -lmingw32 -lgcc -lmoldname -lmingwex -lmsvcrt c:/programme/mingw/bin/../lib/gcc/mingw32/3.4.2/crtend.o  -o .libs/libCoin-40.dll -Wl,--enable-auto-image-base -Xlinker --out-implib -Xlinker .libs/libCoin.dll.a
collect2: ld returned 253 exit status
make[3]: *** [libCoin.la] Error 1
make[3]: Leaving directory `/c/Programme/Coin-2.4.5/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/c/Programme/Coin-2.4.5/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/c/Programme/Coin-2.4.5'
make: *** [all] Error 2