Bug#979306: QVTKOpenGLWidget.h: No such file or directory

Drew Parsons dparsons at debian.org
Tue Jan 5 04:04:15 GMT 2021


Package: libvtk9-qt-dev
Version: 9.0.1+dfsg1-6
Severity: normal

This is another report from trying to build avogadrolibs against VTK9
(Build-Depends: libvtk9-qt-dev), following on from Bug#979073
(thanks for configuring RenderingContextOpenGL2).

avogadrolibs is now emitting this build error:

  [ 37%] Building CXX object avogadro/vtk/CMakeFiles/AvogadroVtk.dir/vtkAvogadroActor.cxx.o
  cd /projects/debichem/build/avogadrolibs/obj-x86_64-linux-gnu/avogadro/vtk && /usr/bin/c++ -DAvogadroVtk_EXPORTS -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NO_DEBUG -DQT_WIDGETS_LIB -I/projects/debichem/build/avogadrolibs/obj-x86_64-linux-gnu/avogadro/vtk/AvogadroVtk_autogen/include -I/projects/debichem/build/avogadrolibs/obj-x86_64-linux-gnu -I/projects/debichem/build/avogadrolibs -I/projects/debichem/build/avogadrolibs/obj-x86_64-linux-gnu/avogadro/core -I/projects/debichem/build/avogadrolibs/obj-x86_64-linux-gnu/avogadro/io -I/projects/debichem/build/avogadrolibs/obj-x86_64-linux-gnu/avogadro/quantumio -I/projects/debichem/build/avogadrolibs/obj-x86_64-linux-gnu/avogadro/rendering -I/projects/debichem/build/avogadrolibs/obj-x86_64-linux-gnu/avogadro/qtgui -I/projects/debichem/build/avogadrolibs/obj-x86_64-linux-gnu/avogadro/qtopengl -I/projects/debichem/build/avogadrolibs/obj-x86_64-linux-gnu/avogadro/vtk -isystem /usr/include/eigen3 -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtWidgets -isystem /usr/include/x86_64-linux-gnu/qt5/QtGui -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -isystem /usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -g -O2 -fdebug-prefix-map=/projects/debichem/build/avogadrolibs=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -fPIC -std=c++17 -o CMakeFiles/AvogadroVtk.dir/vtkAvogadroActor.cxx.o -c /projects/debichem/build/avogadrolibs/avogadro/vtk/vtkAvogadroActor.cxx
  In file included from /projects/debichem/build/avogadrolibs/avogadro/vtk/vtkAvogadroActor.cxx:17:
  /projects/debichem/build/avogadrolibs/avogadro/vtk/vtkAvogadroActor.h:21:10: fatal error: vtkActor.h: No such file or directory
     21 | #include <vtkActor.h>
        |          ^~~~~~~~~~~~
  compilation terminated.
  In file included from /projects/debichem/build/avogadrolibs/obj-x86_64-linux-gnu/avogadro/vtk/AvogadroVtk_autogen/EWIEGA46WW/moc_vtkglwidget.cpp:10,
                   from /projects/debichem/build/avogadrolibs/obj-x86_64-linux-gnu/avogadro/vtk/AvogadroVtk_autogen/mocs_compilation.cpp:2:
  /projects/debichem/build/avogadrolibs/obj-x86_64-linux-gnu/avogadro/vtk/AvogadroVtk_autogen/EWIEGA46WW/../../../../../avogadro/vtk/vtkglwidget.h:22:10: fatal error: QVTKOpenGLWidget.h: No such file or directory
     22 | #include <QVTKOpenGLWidget.h>
        |          ^~~~~~~~~~~~~~~~~~~~
  compilation terminated.


We can ignore the vtkActor.h error for the purposes of this bug report.
vtkActor.h is provided by libvtk9-dev, I'll chase it up separately and
work out why avogadrolibs didn't find it. Perhaps libvtk9-dev needs
some fix somewhere like
/usr/lib/x86_64-linux-gnu/cmake/vtk-9.0/VTK-targets.cmake in order to
provide the include directory, or perhaps (and more likely)
avogadrolibs is not even asking cmake to find VTK the right way.

What I'm filing this bug for is the error on QVTKOpenGLWidget.h .
It is not provided by libvtk9-qt-dev.  The strange thing
though, is that it is referenced in the VTK9 build log:
  Generating code for file GUISupport/Qt/QVTKOpenGLWidget.h...
It is included in the docs. vtk9-doc provides
/usr/share/doc/vtk9/html/QVTKOpenGLWidget_8h.html

So there seems to be an inconsistency between libvtk9-qt-dev and
vtk9-doc.  Should libvtk9-qt-dev be providing QVTKOpenGLWidget.h ?
Does debian/libvtk9-qt-dev.install (if not libvtk9-qt.install) need to
be updated after adding RenderingContextOpenGL2?


-- System Information:
Debian Release: bullseye/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.10.0-1-amd64 (SMP w/8 CPU threads)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8), LANGUAGE=en_AU:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages libvtk9-qt-dev depends on:
ii  libqt5opengl5-dev     5.15.2+dfsg-2
ii  libqt5webkit5-dev     5.212.0~alpha4-11
ii  libvtk9-dev           9.0.1+dfsg1-6
ii  libvtk9-qt            9.0.1+dfsg1-6
ii  qtbase5-dev           5.15.2+dfsg-2
ii  qttools5-private-dev  5.15.2-3

libvtk9-qt-dev recommends no packages.

libvtk9-qt-dev suggests no packages.

-- no debconf information



More information about the debian-science-maintainers mailing list