fatal error: QPrintDialog: No such file or directory

Cristian Ionescu-Idbohrn cristian.ionescu-idbohrn at axis.com
Sat Oct 10 01:55:54 PDT 2020


Anyone else experiences this?  Does this have anything to do with the
recent effort to "remove Grantlee references"?  It would seem so, as 
the code builds on commit b3f5473b66b8210d1276f197876e0e2d7bbd6fa7.

The error message is:

.../subsurface/desktop-widgets/mainwindow.cpp:59:10: fatal error: QPrintDialog: No such file or directory
   59 | #include <QPrintDialog>
      |          ^~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [desktop-widgets/CMakeFiles/subsurface_interface.dir/build.make:477: desktop-widgets/CMakeFiles/subsurface_interface.dir/mainwindow.cpp.o] Error 1

Both QPrintDialog and qprintdialog.h files exist and belong to package
qtbase5-dev (version 5.14.2+dfsg-6, debian unstable):

$ ls -l /usr/include/x86_64-linux-gnu/qt5/QtPrintSupport/{QPrintDialog,qprintdialog.h}
-rw-r--r-- 1 root root   26 Mar 27  2020 /usr/include/x86_64-linux-gnu/qt5/QtPrintSupport/QPrintDialog
-rw-r--r-- 1 root root 3589 Mar 27  2020 /usr/include/x86_64-linux-gnu/qt5/QtPrintSupport/qprintdialog.h

and it appears they have been there for a while, or moved there from
elsewhere.


Cheers,

-- 
Cristian


More information about the subsurface mailing list