<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<div id="geary-body">That's why i was recommending him to install msys2. With msys2 you get a linux-like environment in Windows with the complete toolchain (bash, cmake, gcc, make, python, openjdk, tcl / tk, etc.) and all the libraries needed (including Qt).
<div><br>
</div>
<div>For the vtk build system it looks like it is running under linux. So when using the vtk build instructions for linux everything works out of the box. </div>
<div><br>
</div>
<div>By simply copying my vtk / qt source project files from linux to windows and running qmake (for qt) i was able to get a Windows build of my program without any additional work. Depending on other factors your mileage may vary of course.</div>
<div><br>
</div>
<div>The executable produced by this setup runs in a standard Windows environment without msys2 installed.</div>
<div><br>
</div>
<div>But you are right of course, if you don't need to have a consistent runtime behaviour on all platforms you can simply use Visual Studio on Windows since it is free anyway and much better supported.</div>
<div><br>
</div>
<div><br>
</div>
<div>Regards,</div>
<div><br>
</div>
<div>Berti</div>
</div>
<div id="geary-quote"><br>
Am Do, 13. Sep, 2018 um 4:21 NACHMITTAGS schrieb Allie Vacanti <allison.vacanti@kitware.com>:<br>
<blockquote type="cite">
<div dir="ltr">It's also worth pointing out that VTK does not officially support the MinGW compilers. After you resolve this issue, there will likely be many more problems to fix before you have a working build.<br>
<br>
The supported compilers on the Windows platform are currently MSVC 2013 or later.</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Wed, Sep 12, 2018 at 7:36 AM, Fcs <span dir="ltr"><<a href="mailto:ftpronk@engits.com" target="_blank">ftpronk@engits.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello Tobias,<br>
<br>
I think the problem you are having is that you are trying to mix two<br>
programs compiled with different toolchains. Programs compiled with MinGW<br>
are NOT compatible/linkable with programs compiled with the MSVC toolchain.<br>
If you look at "C:\Windows\System32\opengl32.<wbr>dll", it depends on MSVCRT.dll<br>
which is the C standard library for Visual C++ (MSVC).<br>
<br>
You have two choices:<br>
- Either you stick with MinGW, and you compile all your dependencies with<br>
it (VTK, Qt, python, OpenGL..) so that the linking works<br>
- Or you stick with the MSVC toolchain, and compile all your dependencies<br>
with it (or download them, as the most common libraries are readily<br>
installable with MSVC compatibility), which will allow you to also link to<br>
system libraries / system OpenGL.<br>
<br>
>From experience, the second option is by far the easiest, especially if you<br>
start doing funky things..<br>
<br>
If you choose to go down the MinGW route (good luck..), the Khronos group<br>
has some instructions on their website for OpenGL support with MinGW:<br>
<a href="https://www.khronos.org/opengl/wiki/MinGW" rel="noreferrer" target="_blank">https://www.khronos.org/<wbr>opengl/wiki/MinGW</a><br>
<br>
If you feel adventurous, their is an experimental third option, using the<br>
excellent clang toolchain. Apparently it has (partial?) MSVC compatibility,<br>
which would allow you to compile and link your code with libraries compiled<br>
with MSVC.<br>
<br>
Kind regards,<br>
<br>
Francois.<br>
<br>
<br>
<br>
<br>
<br>
--<br>
Sent from: <a href="http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html" rel="noreferrer" target="_blank">
http://vtk.1045678.n5.nabble.<wbr>com/VTK-Users-f1224199.html</a><br>
______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">
http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank">
http://www.vtk.org/Wiki/VTK_<wbr>FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">
http://markmail.org/search/?q=<wbr>vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">https://public.kitware.com/<wbr>mailman/listinfo/vtkusers</a><br>
</blockquote>
</div>
<br>
</div>
</blockquote>
</div>
</body>
</html>