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

Dženan Zukić dzenanz at gmail.com
Sat Apr 9 13:24:45 EDT 2016


Hi Enrico,

VTK7 uses OpenGL2 rendering backed by default. Can you reconfigure your
VTK7 build to use OpenGL backend? Or replace OpenGL by OpenGL2 in your
makefiles?

Regards,
Dženan

On Sat, Apr 9, 2016 at 4:30 AM, enrico <direction at 4estudios.com> wrote:

> 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.
> _______________________________________________
> 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:
> http://public.kitware.com/mailman/listinfo/vtkusers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20160409/21931a89/attachment.html>


More information about the vtkusers mailing list