[vtkusers] Qt5.6+VTK7 error: no override found for 'vtkPolyDataMapper'

enrico direction at 4estudios.com
Sat Apr 9 04:30:22 EDT 2016


Hi, 

I know the problem is related to this:
http://www.vtk.org/Wiki/VTK/Build_System_Migration


I followed the instructions adding the two macro before any other VTK header
but i get the same error: 

Generic Warning: In
/home/direction/Downloads/VTK-7.0.0/Rendering/Core/vtkPolyDataMapper.cxx,
line 28 
Error: no override found for 'vtkPolyDataMapper'. 


So to be sure to have the preprocessor macro before any other header i have
defined the two macro in the .pro file as: 

DEFINES +=
vtkRenderingCore_AUTOINIT="\"4(vtkInteractionStyle,vtkRenderingFreeType,vtkRenderingFreeTypeOpenGL,vtkRenderingOpenGL)\"" 
DEFINES += vtkRenderingVolume_AUTOINIT="\"1(vtkRenderingVolumeOpenGL)\"" 

And correctly in the generated makefile i see: 

############################################################################# 
# Makefile for building: TestVTKwidget 
# Generated by qmake (3.0) (Qt 5.6.0) 
# Project:  ../TestVTKwidget/TestVTKwidget.pro 
# Template: app 
# Command: /home/direction/Qt/5.6/gcc_64/bin/qmake -spec linux-g++
CONFIG+=debug CONFIG+=qml_debug -o Makefile
../TestVTKwidget/TestVTKwidget.pro 
############################################################################# 

MAKEFILE      = Makefile 

####### Compiler, tools and options 

CC            = gcc 
CXX           = g++ 
DEFINES       =
-DvtkRenderingCore_AUTOINIT="4(vtkInteractionStyle,vtkRenderingFreeType,vtkRenderingFreeTypeOpenGL,vtkRenderingOpenGL)"
-DvtkRenderingVolume_AUTOINIT="1(vtkRenderingVolumeOpenGL)"
-DQT_QML_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB 
CFLAGS        = -pipe -g -Wall -W -D_REENTRANT -fPIC $(DEFINES) 



What i am missing? Can anyone help me? 

Many thanks, 

Enrico Mautone. 



--
View this message in context: http://vtk.1045678.n5.nabble.com/Qt5-6-VTK7-error-no-override-found-for-vtkPolyDataMapper-tp5737596.html
Sent from the VTK - Users mailing list archive at Nabble.com.


More information about the vtkusers mailing list