<div dir="ltr">Hello,<div>I am just starting using VTK, using a package manager to get it installed under Linux (so, no experience compiling VTK from sources).</div><div><br></div><div>But I need now to cross-compile Qt+VTK applications from Linux to Windows.</div>
<div><br></div><div>I've a working environment for cross-compiling Qt applications using mingw. I tried configuring VTK with CMake, specifying mingw C/C++ compilers, but the configuration process fails.</div><div><br>
</div><div>Here's an excerpt from CMakeError.log</div><div><br></div><div><br></div><div><div>Determining if the C compiler works failed with the following output:</div><div>Change Dir: /home/reale/Resources/vtk-build-mingw32/CMakeFiles/CMakeTmp</div>
<div><br></div><div>Run Build Command:/usr/bin/gmake "cmTryCompileExec161676170/fast"</div><div>/usr/bin/gmake -f CMakeFiles/cmTryCompileExec161676170.dir/build.make CMakeFiles/cmTryCompileExec161676170.dir/build</div>
<div>gmake[1]: Entering directory `/home/reale/Resources/vtk-build-mingw32/CMakeFiles/CMakeTmp'</div><div>/usr/bin/cmake -E cmake_progress_report /home/reale/Resources/vtk-build-mingw32/CMakeFiles/CMakeTmp/CMakeFiles 1</div>
<div>Building C object CMakeFiles/cmTryCompileExec161676170.dir/testCCompiler.c.o</div><div>/usr/bin/i686-w64-mingw32-gcc -o CMakeFiles/cmTryCompileExec161676170.dir/testCCompiler.c.o -c /home/reale/Resources/vtk-build-mingw32/CMakeFiles/CMakeTmp/testCCompiler.c</div>
<div>Linking C executable cmTryCompileExec161676170</div><div>/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec161676170.dir/link.txt --verbose=1</div><div>/usr/bin/i686-w64-mingw32-gcc CMakeFiles/cmTryCompileExec161676170.dir/testCCompiler.c.o -o cmTryCompileExec161676170 -rdynamic </div>
<div>i686-w64-mingw32-gcc: error: unrecognized command line option '-rdynamic'</div><div>gmake[1]: *** [cmTryCompileExec161676170] Error 1</div><div>gmake[1]: Leaving directory `/home/reale/Resources/vtk-build-mingw32/CMakeFiles/CMakeTmp'</div>
<div>gmake: *** [cmTryCompileExec161676170/fast] Error 2</div></div><div><br></div><div><br></div><div>I do not know how to proceed. Can someone please help me?</div><div>Thanks in advance</div><div><br></div><div>Alessandro</div>
</div>