[vtkusers] VTK6.1 + Qt5.2.1 + msvc2012 Build error

Kevin Funk kevin.funk at kdab.com
Fri Feb 28 05:28:42 EST 2014


Am Donnerstag, 27. Februar 2014, 02:00:42 schrieb amundaa:
> I am trying to get VTK 6.1 to work with Qt5.2.1 in msvc2012 on my Windows
> 8.1 32-bit notebook with the qt add-in. I'm a noob when it comes to vtk and
> qt, so don't be too hard on me please :)
> I have generated the VTK solution and ALL_BUILD for visual studio to build
> from cmake-gui, but I'm having some trouble getting the build in vs2012
> without errors, so the INSTALL won't build either I suppose.
> 
> The picture below shows the error I keep getting:
> <http://vtk.1045678.n5.nabble.com/file/n5726131/error_prnt_screen.jpg>
> 
> The error in text:*error C2371: 'GLdouble' : redefinition; different basic
> types in file gl.h line 60 column 1 Project vktGUISupportQtOpenGL*
> 
> I have made sure windows 8.1 kits SDK is up to date, so I don't think I'm
> missing anything significant.In the cmake configuration i selected
> everything that has to do with Qt, I don't really know if that's correct.
> Am I missing something? Something fundamentally wrong?
> 
> Btw, I'm doing this because I'm writing an application that visualises a
> stress tensor with a critical plane - which I find from a history of
> stresses after some calculation (coded in cpp), I want to use Qt for the GUI
> part and VTK for the visualization  and combine it all to a working
> application.
> 
> Any thoughts, ideas?

Hey,

You have to build Qt5 with the OpenGL backend and disable the ANGLE backend,

also see: http://chickenjuice.net/post/55214715549/build-vtk6-with-qt5

Greets

-- 
Kevin Funk | kevin.funk at kdab.com | Software Engineer
KDAB (Deutschland) GmbH&Co KG, a KDAB Group company
Tel. Germany +49-30-521325470, Sweden (HQ) +46-563-540090
KDAB - Qt Experts - Platform-independent software solutions


More information about the vtkusers mailing list