Wednesday, May 14, 2008

Build VTK from source using MinGW/MSys

Here is the reference document on how to build VTK from source in MinGW/MSys



The minimal project for MinGW/MSys can be found here:



Two files are potentially useful in the build process:

http://code.hkpeterpeter.googlepages.com/CMakeLists.txt


http://code.hkpeterpeter.googlepages.com/jconfig.h


(Note: Although not quite accurate, you can think MinGW is a thin abstraction layer which allows you to port softwares in Unix-like environment to Windows with the minimal changes of code. MSys provides a Unix-like shell environment, just like bash/csh).

3 comments:

Anonymous said...

Your blog is interesting!

I am new to vtk, and I plan to get working in the summer. All I know is that I want to use C++, and I will need information how to set up a simple application first.

Peter said...

Hi,

If you are a Windows user, you can use VTK in Visual Studio compiler or gcc in MinGW. See the documents listed in the installation section.

Peter

Anonymous said...

Hey, i'm new to vtk and tried to follow your instructions. it worked well until i started msys. after i typed make into the compiler i got an error:

c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../../mingw32/bin/ld.exe: cannot find -lws2_32.lib

i have absolutly not idea what this is suposed to mean, i didn't find anything on google as well :(