[vtkusers] Build VTK with MinGW
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
> 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:
> 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,
> 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/
> Please keep messages on-topic and check the VTK FAQ at:
> Search the list archives at: http://markmail.org/search/?q=vtkusers
> Follow this link to subscribe/unsubscribe:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the vtkusers