[vtkusers] Build VTK with MinGW

Allie Vacanti allison.vacanti at kitware.com
Thu Sep 13 10:21:36 EDT 2018

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.

The supported compilers on the Windows platform are currently MSVC 2013 or

On Wed, Sep 12, 2018 at 7:36 AM, Fcs <ftpronk at engits.com> wrote:

> Hello Tobias,
> I think the problem you are having is that you are trying to mix two
> programs compiled with different toolchains. Programs compiled with MinGW
> are NOT compatible/linkable with programs compiled with the MSVC toolchain.
> If you look at "C:\Windows\System32\opengl32.dll", it depends on
> MSVCRT.dll
> which is the C standard library for Visual C++ (MSVC).
> You have two choices:
>  - Either you stick with MinGW, and you compile all your dependencies with
> it (VTK, Qt, python, OpenGL..) so that the linking works
>  - Or you stick with the MSVC toolchain, and compile all your dependencies
> with it (or download them, as the most common libraries are readily
> installable with MSVC compatibility), which will allow you to also link to
> system libraries / system OpenGL.
> From experience, the second option is by far the easiest, especially if you
> start doing funky things..
> If you choose to go down the MinGW route (good luck..), the Khronos group
> has some instructions on their website for OpenGL support with MinGW:
> https://www.khronos.org/opengl/wiki/MinGW
> If you feel adventurous, their is an experimental third option, using the
> excellent clang toolchain. Apparently it has (partial?) MSVC compatibility,
> which would allow you to compile and link your code with libraries compiled
> with MSVC.
> Kind regards,
> Francois.
> --
> Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html
> _______________________________________________
> Powered by www.kitware.com
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> Search the list archives at: http://markmail.org/search/?q=vtkusers
> Follow this link to subscribe/unsubscribe:
> https://public.kitware.com/mailman/listinfo/vtkusers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://public.kitware.com/pipermail/vtkusers/attachments/20180913/6af09dd4/attachment.html>

More information about the vtkusers mailing list