[vtkusers] Error at runtime using qmake for building project (vtkContextDevice2D)
KOZLOVSKY Nicolas
nicolas.kozlovsky at fr.thalesgroup.com
Mon Jan 25 06:57:45 EST 2016
Hi all
I try to use QVTKWidget in a big project using qmake for building.
Each time I run my code, I got this error under Linux Ubuntu 1510) and VTK 6.3 :
In VTK-6.3.0/Rendering/Context2D/vtkContextDevice2D.cxx, line 27
Error: no override found for 'vtkContextDevice2D'.
I read a lot about this and put in the main.cpp :
#include <vtkAutoInit.h>
VTK_MODULE_INIT(vtkRenderingOpenGL)
VTK_MODULE_INIT(vtkInteractionStyle)
I have always the same error at runtime.
I try also to add this directive to .pro file:
DEFINES += "\"vtkRenderingCore_AUTOINIT=1 (vtkRenderingOpenGL)\""
But again same error at runtime.
If now I build the project with cmake, I have no problem everything is running fine.
How can I build with qmake ???
Thanks for any clues
Nicolas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20160125/eb7026a6/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: M Nicolas KOZLOVSKY.vcf
Type: text/x-vcard
Size: 1589 bytes
Desc: M Nicolas KOZLOVSKY.vcf
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20160125/eb7026a6/attachment.vcf>
More information about the vtkusers
mailing list