[vtkusers] Qt4, MinGW and VTK

Andre Mastmeyer amas at gmx.de
Sun Aug 28 10:55:30 EDT 2005


reply to Dean Inglis dean.inglis at camris.ca:

Here is one path to the solution of the adventure to build VTK 4.2.2 with  
mingw 3.4.2:
-Install mingw3.4.2 + msys1.0 (mingw3.4.2 is installed along with  
opensource Qt4.0.1)
-open two msys consoles for convenience
-run CMakeSetup (V2.0.6) from msys command line (1st console)
	-switch ON "use VTK_USE_ANSI_STD_LIB"
	-"Configure", ignore errors
	-go to <TARGET>\CMake\
	-rename libcm*.dll to cm*.dll
	-"Configure" again
	-"OK" to generate makefiles
-go to your target directory (other console)
	-go to Utilities\tiff\
	-edit Makefile for libtiff
		-delete both vtktiff.o and "vtktiff.o" from sections vtktiff_SRC_OBJS..
-go to target directories root and run make (from msys)
-when stopped with error about ANSI standard lib run cmakesetup again
	-switch OFF "use VTK_USE_ANSI_STD_LIB"
	-"Configure"
	-"OK"
-run make again
-when stopped with error about ANSI standard lib run cmakesetup again
	-switch ON "use VTK_USE_ANSI_STD_LIB"
	-"Configure"
	-"OK"
-rerun make
-patch vtkBMPReader.cxx, vtkImageReader where self->GetFile()->seekg(..);  
is called with
    	..static_cast<long>(self->GetFile()->tellg()) + streamSkip0, ios::beg..
	resp.
	..static_cast<long>(self->GetFile()->tellg()) + streamSkip1, ios::beg..
-when building the examples it uses the wrong -mwin32 option in the make  
files, change it to -mwindows
-check tests by make test

Thats it!
-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/m2/



More information about the vtkusers mailing list