[vtkusers] [VTK] VTK 8.0.0rc1 build errors

Sophonet vtk12af6bc42 at kant.sophonet.de
Tue May 30 03:41:34 EDT 2017


A few weeks ago, I have stumbled over the same problem. Indeed, I have 
solved it by building Qt with the "dynamic" openGL configuration (I 
guess "desktop" would work as well). The default Qt configuration does 
not work.

You might want to try yourself and configure Qt with the following 
parameters before building:

-opengl dynamic

It would be helpful indeed to add a CMake-based check when configuring 
VTK to check if Qt's OpenGL backend matches, since the build error 
occurs late and its message is not really explicit in what went wrong...

            Sophonet

On 2017-05-30 08:37, Elvis Stansvik wrote:
> Den 30 maj 2017 8:35 fm skrev "Elvis Stansvik"
> <elvis.stansvik at orexplore.com>:
>> 
>> Den 30 maj 2017 3:43 fm skrev "Manuel Alejandro Castro Fuentes"
> <mafuentes at uclv.cu>:
>> >
>> > Hi.
>> > I'm building the release candidate of VTK 8.0.0 to test it in:
>> > - Windows 10 x64
>> > - with Visual Studio 2015
>> > - and Qt 5.8
>> > - Wrapping for Python 3.5
>> 
>> I built rc1 with VS 2015 Community on Win 8.1 without problems. I
> did not build against the WinRT version of Qt like you though. I'm
> guessing that may be a clue, but I don't know.
> 
> I should say: I'm also using Qt 5.8.0.
> 
>> 
>> Elvis
>> 
>> >
>> > The Build process ended with: Build: 315 succeeded, 5 failed, 0
> up-to-date, 2 skipped
>> > The changes of default CMake config and the lines of the build log
> that contained the errors I append them below, there are other lines
> refering to LINK errors with .lib files but I guess that happens as
> result of this ones failing to build.
>> >
>> > Also, I built VTK 7.1.0 with no issues against that same
> configuration. I hope this can be helpful for the developer team.
>> >
>> > Best regards,
>> > Manuel
>> >
>> > -----------------------------------------------------
>> > CMake -> Show my changes
>> > -----------------------------------------------------
>> > Commandline options:
>> > -DVTK_PYTHON_VERSION:STRING="3.5"
> -DQT_QMAKE_EXECUTABLE:FILEPATH="C:/Libraries/Builds/Qt5.8.0/5.8/winrt_x64_msvc2015/bin/qmake.exe"
> -DVTK_QT_VERSION:STRING="5" -DVTK_Group_Qt:BOOL="1"
> -DVTK_WRAP_PYTHON:BOOL="1"
> -DQt5_DIR:PATH="C:/Libraries/Builds/Qt5.8.0/5.8/winrt_x64_msvc2015/lib/cmake/Qt5"
> 
>> >
>> > Cache file:
>> > VTK_PYTHON_VERSION:STRING=3.5
>> >
> QT_QMAKE_EXECUTABLE:FILEPATH=C:/Libraries/Builds/Qt5.8.0/5.8/winrt_x64_msvc2015/bin/qmake.exe
>> > VTK_QT_VERSION:STRING=5
>> > VTK_Group_Qt:BOOL=1
>> > VTK_WRAP_PYTHON:BOOL=1
>> >
> Qt5_DIR:PATH=C:/Libraries/Builds/Qt5.8.0/5.8/winrt_x64_msvc2015/lib/cmake/Qt5
>> >
>> > -----------------------------------------------------
>> > Visual Studio 2015 -> Build log
>> > -----------------------------------------------------
>> >
> 124>D:\Sources\VTK-8.0.0.rc1\GUISupport\Qt\QVTKOpenGLWidget.cxx(341):
> error C2065: 'GL_RENDERBUFFER_SAMPLES': undeclared identifier
>> >
> 124>D:\Sources\VTK-8.0.0.rc1\GUISupport\Qt\QVTKOpenGLWidget.cxx(460):
> error C2065: 'QOpenGLFunctions_3_2_Core': undeclared identifier
>> >
> 124>D:\Sources\VTK-8.0.0.rc1\GUISupport\Qt\QVTKOpenGLWidget.cxx(460):
> error C2065: 'f': undeclared identifier
>> >
> 124>D:\Sources\VTK-8.0.0.rc1\GUISupport\Qt\QVTKOpenGLWidget.cxx(461):
> error C2065: 'QOpenGLFunctions_3_2_Core': undeclared identifier
>> >
> 124>D:\Sources\VTK-8.0.0.rc1\GUISupport\Qt\QVTKOpenGLWidget.cxx(461):
> error C2974: 'QOpenGLContext::versionFunctions': invalid template
> argument for 'TYPE', type expected
>> > 124>
> c:\libraries\builds\qt5.8.0\5.8\winrt_x64_msvc2015\include\qtgui\qopenglcontext.h(193):
> note: see declaration of 'QOpenGLContext::versionFunctions'
>> >
> 124>D:\Sources\VTK-8.0.0.rc1\GUISupport\Qt\QVTKOpenGLWidget.cxx(462):
> error C2065: 'f': undeclared identifier
>> >
> 124>D:\Sources\VTK-8.0.0.rc1\GUISupport\Qt\QVTKOpenGLWidget.cxx(464):
> error C2065: 'f': undeclared identifier
>> >
> 124>D:\Sources\VTK-8.0.0.rc1\GUISupport\Qt\QVTKOpenGLWidget.cxx(464):
> error C2227: left of '->glBindFramebuffer' must point to
> class/struct/union/generic type
>> > 124>
> D:\Sources\VTK-8.0.0.rc1\GUISupport\Qt\QVTKOpenGLWidget.cxx(464):
> note: type is 'unknown-type'
>> >
> 124>D:\Sources\VTK-8.0.0.rc1\GUISupport\Qt\QVTKOpenGLWidget.cxx(464):
> error C2065: 'GL_DRAW_FRAMEBUFFER': undeclared identifier
>> >
> 124>D:\Sources\VTK-8.0.0.rc1\GUISupport\Qt\QVTKOpenGLWidget.cxx(465):
> error C2065: 'f': undeclared identifier
>> >
> 124>D:\Sources\VTK-8.0.0.rc1\GUISupport\Qt\QVTKOpenGLWidget.cxx(465):
> error C2227: left of '->glDrawBuffer' must point to
> class/struct/union/generic type
>> > 124>
> D:\Sources\VTK-8.0.0.rc1\GUISupport\Qt\QVTKOpenGLWidget.cxx(465):
> note: type is 'unknown-type'
>> >
> 124>D:\Sources\VTK-8.0.0.rc1\GUISupport\Qt\QVTKOpenGLWidget.cxx(467):
> error C2065: 'f': undeclared identifier
>> >
> 124>D:\Sources\VTK-8.0.0.rc1\GUISupport\Qt\QVTKOpenGLWidget.cxx(467):
> error C2227: left of '->glBindFramebuffer' must point to
> class/struct/union/generic type
>> > 124>
> D:\Sources\VTK-8.0.0.rc1\GUISupport\Qt\QVTKOpenGLWidget.cxx(467):
> note: type is 'unknown-type'
>> >
> 124>D:\Sources\VTK-8.0.0.rc1\GUISupport\Qt\QVTKOpenGLWidget.cxx(467):
> error C2065: 'GL_READ_FRAMEBUFFER': undeclared identifier
>> >
> 124>D:\Sources\VTK-8.0.0.rc1\GUISupport\Qt\QVTKOpenGLWidget.cxx(468):
> error C2065: 'f': undeclared identifier
>> >
> 124>D:\Sources\VTK-8.0.0.rc1\GUISupport\Qt\QVTKOpenGLWidget.cxx(468):
> error C2227: left of '->glReadBuffer' must point to
> class/struct/union/generic type
>> > 124>
> D:\Sources\VTK-8.0.0.rc1\GUISupport\Qt\QVTKOpenGLWidget.cxx(468):
> note: type is 'unknown-type'
>> >
> 124>D:\Sources\VTK-8.0.0.rc1\GUISupport\Qt\QVTKOpenGLWidget.cxx(469):
> error C2065: 'f': undeclared identifier
>> >
> 124>D:\Sources\VTK-8.0.0.rc1\GUISupport\Qt\QVTKOpenGLWidget.cxx(469):
> error C2227: left of '->glDisable' must point to
> class/struct/union/generic type
>> > 124>
> D:\Sources\VTK-8.0.0.rc1\GUISupport\Qt\QVTKOpenGLWidget.cxx(469):
> note: type is 'unknown-type'
>> >
> 124>D:\Sources\VTK-8.0.0.rc1\GUISupport\Qt\QVTKOpenGLWidget.cxx(470):
> error C2065: 'f': undeclared identifier
>> >
> 124>D:\Sources\VTK-8.0.0.rc1\GUISupport\Qt\QVTKOpenGLWidget.cxx(470):
> error C2227: left of '->glBlitFramebuffer' must point to
> class/struct/union/generic type
>> > 124>
> D:\Sources\VTK-8.0.0.rc1\GUISupport\Qt\QVTKOpenGLWidget.cxx(470):
> note: type is 'unknown-type'
>> >
>> > _______________________________________________
>> > Powered by www.kitware.com [1]
>> >
>> > 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
> 
> 
> Links:
> ------
> [1] http://www.kitware.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


More information about the vtkusers mailing list