<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>