Compile VTK using MinGW with QT on Windows
Hello, I try to compile VTK 8.0 with the Qt (version 5.9) supplied MinGW (5.3-32bit) on Windows 10 (64bit) halts at the libtiff library with:
[ 56%] Building C object ThirdParty/tiff/vtktiff/libtiff/CMakeFiles/vtktiff.dir/tif_aux.c.obj In file included from C:/Qt/Tools/mingw530_32/i686-w64-mingw32/include/io.h:169:0, from C:/Qt/Tools/mingw530_32/i686-w64-mingw32/include/fcntl.h:8, from C:\VTK-src\ThirdParty\tiff\vtktiff\libtiff\tiffiop.h:36, from C:\VTK-src\ThirdParty\tiff\vtktiff\libtiff\tif_aux.c:32: C:/Qt/Tools/mingw530_32/i686-w64-mingw32/include/_mingw_off_t.h:23:55: error: operator '==' has no left operand #if (defined(_FILE_OFFSET_BITS) && (_FILE_OFFSET_BITS == 64)) ^ In file included from C:/Qt/Tools/mingw530_32/i686-w64-mingw32/include/fcntl.h:8:0, from C:\VTK-src\ThirdParty\tiff\vtktiff\libtiff\tiffiop.h:36, from C:\VTK-src\ThirdParty\tiff\vtktiff\libtiff\tif_aux.c:32: C:/Qt/Tools/mingw530_32/i686-w64-mingw32/include/io.h:340:55: error: operator '==' has no left operand #if (defined(_FILE_OFFSET_BITS) && (_FILE_OFFSET_BITS == 64)) ^ In file included from C:\VTK-src\ThirdParty\tiff\vtktiff\libtiff\tiffio.h:258:0, from C:\VTK-src\ThirdParty\tiff\vtktiff\libtiff\tiffiop.h:66, from C:\VTK-src\ThirdParty\tiff\vtktiff\libtiff\tif_aux.c:32: C:/Qt/Tools/mingw530_32/i686-w64-mingw32/include/stdio.h:467:55: error: operator '==' has no left operand #if (defined(_FILE_OFFSET_BITS) && (_FILE_OFFSET_BITS == 64)) ^ C:/Qt/Tools/mingw530_32/i686-w64-mingw32/include/stdio.h:479:55: error: operator '==' has no left operand #if (defined(_FILE_OFFSET_BITS) && (_FILE_OFFSET_BITS == 64)) ^ ThirdParty\tiff\vtktiff\libtiff\CMakeFiles\vtktiff.dir\build.make:62: recipe for target 'ThirdParty/tiff/vtktiff/libtiff/CMakeFiles/vtktiff.dir/tif_aux.c.obj' failed mingw32-make[2]: *** [ThirdParty/tiff/vtktiff/libtiff/CMakeFiles/vtktiff.dir/tif_aux.c.obj] Error 1 CMakeFiles\Makefile2:4573: recipe for target 'ThirdParty/tiff/vtktiff/libtiff/CMakeFiles/vtktiff.dir/all' failed mingw32-make[1]: *** [ThirdParty/tiff/vtktiff/libtiff/CMakeFiles/vtktiff.dir/all] Error 2 Makefile:128: recipe for target 'all' failed mingw32-make: *** [all] Error 2
I follow this tuto: http://www.vtk.org/Wiki/VTK/Configure_and_Build#Configure_with_Qt so in cmake: VTK_Group_Qt:BOOL=ON, QT_QMAKE_EXECUTABLE:PATH=C:/path/to/qt-5.2.1-install/5.2.1/msvc2010/bin/qmake.exe, and create a variable 'CMAKE_PREFIX_PATH' , and set it for me 'C:/Qt/5.9/mingw53_32'
I seek an issue to compile or pass this error.