Discussion:
[X2Go-Dev] Bug#1307: Build failure with qt-5.11
Lars Wendler
2018-07-04 16:32:02 UTC
Permalink
Package: x2goclient
Version: 4.1.2.1

This happens with qt-5.11.1:

x86_64-pc-linux-gnu-g++ -c -march=native -mtune=native -O2 -pipe -Wall
-W -D_REENTRANT -fPIC -DCFGCLIENT -D__linux__ -DQT_NO_DEBUG
-DQT_SVG_LIB -DQT_WIDGETS_LIB -DQT_X11EXTRAS_LIB -DQT_GUI_LIB
-DQT_NETWORK_LIB -DQT_CORE_LIB -I. -Isrc -isystem /usr/include/qt5
-isystem /usr/include/qt5/QtSvg -isystem /usr/include/qt5/QtWidgets
-isystem /usr/include/qt5/QtX11Extras -isystem /usr/include/qt5/QtGui
-isystem /usr/include/qt5/QtNetwork -isystem /usr/include/qt5/QtCore
-I. -isystem /usr/include/libdrm -I. -I/usr/lib64/qt5/mkspecs/linux-g++
-o printwidget.o src/printwidget.cpp
src/printwidget.cpp: In constructor
‘PrintWidget::PrintWidget(QWidget*)’: src/printwidget.cpp:77:36: error:
invalid use of incomplete type ‘class QButtonGroup’ QButtonGroup*
bg=new QButtonGroup(); ^
In file included from /usr/include/qt5/QtWidgets/qcheckbox.h:44:0,
from /usr/include/qt5/QtWidgets/QCheckBox:1,
from ./ui_printwidget.h:14,
from src/printwidget.h:22,
from src/printwidget.cpp:18:
/usr/include/qt5/QtWidgets/qabstractbutton.h:53:7: note: forward
declaration of ‘class QButtonGroup’ class QButtonGroup;
^~~~~~~~~~~~
src/printwidget.cpp:78:4: error: invalid use of incomplete type ‘class
QButtonGroup’ bg->addButton ( ui.rbPrint );
^~
In file included from /usr/include/qt5/QtWidgets/qcheckbox.h:44:0,
from /usr/include/qt5/QtWidgets/QCheckBox:1,
from ./ui_printwidget.h:14,
from src/printwidget.h:22,
from src/printwidget.cpp:18:
/usr/include/qt5/QtWidgets/qabstractbutton.h:53:7: note: forward
declaration of ‘class QButtonGroup’ class QButtonGroup;
^~~~~~~~~~~~
src/printwidget.cpp:78:6: error: invalid use of incomplete type ‘class
QButtonGroup’ bg->addButton ( ui.rbPrint );
^~~~~~~~~
In file included from /usr/include/qt5/QtWidgets/qcheckbox.h:44:0,
from /usr/include/qt5/QtWidgets/QCheckBox:1,
from ./ui_printwidget.h:14,
from src/printwidget.h:22,
from src/printwidget.cpp:18:
/usr/include/qt5/QtWidgets/qabstractbutton.h:53:7: note: forward
declaration of ‘class QButtonGroup’ class QButtonGroup;
^~~~~~~~~~~~
src/printwidget.cpp:79:4: error: invalid use of incomplete type ‘class
QButtonGroup’ bg->addButton ( ui.rbView );
^~
In file included from /usr/include/qt5/QtWidgets/qcheckbox.h:44:0,
from /usr/include/qt5/QtWidgets/QCheckBox:1,
from ./ui_printwidget.h:14,
from src/printwidget.h:22,
from src/printwidget.cpp:18:
/usr/include/qt5/QtWidgets/qabstractbutton.h:53:7: note: forward
declaration of ‘class QButtonGroup’ class QButtonGroup;
^~~~~~~~~~~~
src/printwidget.cpp:79:6: error: invalid use of incomplete type ‘class
QButtonGroup’ bg->addButton ( ui.rbView );
^~~~~~~~~
In file included from /usr/include/qt5/QtWidgets/qcheckbox.h:44:0,
from /usr/include/qt5/QtWidgets/QCheckBox:1,
from ./ui_printwidget.h:14,
from src/printwidget.h:22,
from src/printwidget.cpp:18:
/usr/include/qt5/QtWidgets/qabstractbutton.h:53:7: note: forward
declaration of ‘class QButtonGroup’ class QButtonGroup;
^~~~~~~~~~~~
make: *** [Makefile:2025: printwidget.o] Error 1
--
Lars Wendler
Gentoo package maintainer
GPG: 21CC CF02 4586 0A07 ED93 9F68 498F E765 960E 9B39
Rick Gregory
2018-07-04 17:13:15 UTC
Permalink
These sound like the kind of errors you get when you just try to compile
Qt4 code with Qt5.
What was the link from which you downloaded the code?
Post by Lars Wendler
Package: x2goclient
Version: 4.1.2.1
x86_64-pc-linux-gnu-g++ -c -march=native -mtune=native -O2 -pipe -Wall
-W -D_REENTRANT -fPIC -DCFGCLIENT -D__linux__ -DQT_NO_DEBUG
-DQT_SVG_LIB -DQT_WIDGETS_LIB -DQT_X11EXTRAS_LIB -DQT_GUI_LIB
-DQT_NETWORK_LIB -DQT_CORE_LIB -I. -Isrc -isystem /usr/include/qt5
-isystem /usr/include/qt5/QtSvg -isystem /usr/include/qt5/QtWidgets
-isystem /usr/include/qt5/QtX11Extras -isystem /usr/include/qt5/QtGui
-isystem /usr/include/qt5/QtNetwork -isystem /usr/include/qt5/QtCore
-I. -isystem /usr/include/libdrm -I. -I/usr/lib64/qt5/mkspecs/linux-g++
-o printwidget.o src/printwidget.cpp
src/printwidget.cpp: In constructor
invalid use of incomplete type ‘class QButtonGroup’ QButtonGroup*
bg=new QButtonGroup(); ^
In file included from /usr/include/qt5/QtWidgets/qcheckbox.h:44:0,
from /usr/include/qt5/QtWidgets/QCheckBox:1,
from ./ui_printwidget.h:14,
from src/printwidget.h:22,
/usr/include/qt5/QtWidgets/qabstractbutton.h:53:7: note: forward
declaration of ‘class QButtonGroup’ class QButtonGroup;
^~~~~~~~~~~~
src/printwidget.cpp:78:4: error: invalid use of incomplete type ‘class
QButtonGroup’ bg->addButton ( ui.rbPrint );
^~
In file included from /usr/include/qt5/QtWidgets/qcheckbox.h:44:0,
from /usr/include/qt5/QtWidgets/QCheckBox:1,
from ./ui_printwidget.h:14,
from src/printwidget.h:22,
/usr/include/qt5/QtWidgets/qabstractbutton.h:53:7: note: forward
declaration of ‘class QButtonGroup’ class QButtonGroup;
^~~~~~~~~~~~
src/printwidget.cpp:78:6: error: invalid use of incomplete type ‘class
QButtonGroup’ bg->addButton ( ui.rbPrint );
^~~~~~~~~
In file included from /usr/include/qt5/QtWidgets/qcheckbox.h:44:0,
from /usr/include/qt5/QtWidgets/QCheckBox:1,
from ./ui_printwidget.h:14,
from src/printwidget.h:22,
/usr/include/qt5/QtWidgets/qabstractbutton.h:53:7: note: forward
declaration of ‘class QButtonGroup’ class QButtonGroup;
^~~~~~~~~~~~
src/printwidget.cpp:79:4: error: invalid use of incomplete type ‘class
QButtonGroup’ bg->addButton ( ui.rbView );
^~
In file included from /usr/include/qt5/QtWidgets/qcheckbox.h:44:0,
from /usr/include/qt5/QtWidgets/QCheckBox:1,
from ./ui_printwidget.h:14,
from src/printwidget.h:22,
/usr/include/qt5/QtWidgets/qabstractbutton.h:53:7: note: forward
declaration of ‘class QButtonGroup’ class QButtonGroup;
^~~~~~~~~~~~
src/printwidget.cpp:79:6: error: invalid use of incomplete type ‘class
QButtonGroup’ bg->addButton ( ui.rbView );
^~~~~~~~~
In file included from /usr/include/qt5/QtWidgets/qcheckbox.h:44:0,
from /usr/include/qt5/QtWidgets/QCheckBox:1,
from ./ui_printwidget.h:14,
from src/printwidget.h:22,
/usr/include/qt5/QtWidgets/qabstractbutton.h:53:7: note: forward
declaration of ‘class QButtonGroup’ class QButtonGroup;
^~~~~~~~~~~~
make: *** [Makefile:2025: printwidget.o] Error 1
_______________________________________________
x2go-dev mailing list
https://lists.x2go.org/listinfo/x2go-dev
--
Rick Gregory
***@gbgsoft.com
www.gbgsoft.com
647-483-3488
800-413-3691
U. M. Goon
2018-07-05 06:16:36 UTC
Permalink
This is also caused by upgrading to QT5.11 and can fixed in
src/printwidget.cpp by simply adding "#include <QButtonGroup>"
Post by Rick Gregory
These sound like the kind of errors you get when you just try to compile
Qt4 code with Qt5.
What was the link from which you downloaded the code?
Post by Lars Wendler
Package: x2goclient
Version: 4.1.2.1
x86_64-pc-linux-gnu-g++ -c -march=native -mtune=native -O2 -pipe -Wall
-W -D_REENTRANT -fPIC -DCFGCLIENT -D__linux__ -DQT_NO_DEBUG
-DQT_SVG_LIB -DQT_WIDGETS_LIB -DQT_X11EXTRAS_LIB -DQT_GUI_LIB
-DQT_NETWORK_LIB -DQT_CORE_LIB -I. -Isrc -isystem /usr/include/qt5
-isystem /usr/include/qt5/QtSvg -isystem /usr/include/qt5/QtWidgets
-isystem /usr/include/qt5/QtX11Extras -isystem /usr/include/qt5/QtGui
-isystem /usr/include/qt5/QtNetwork -isystem /usr/include/qt5/QtCore
-I. -isystem /usr/include/libdrm -I. -I/usr/lib64/qt5/mkspecs/linux-g++
-o printwidget.o src/printwidget.cpp
src/printwidget.cpp: In constructor
invalid use of incomplete type ‘class QButtonGroup’ QButtonGroup*
bg=new QButtonGroup(); ^
In file included from /usr/include/qt5/QtWidgets/qcheckbox.h:44:0,
from /usr/include/qt5/QtWidgets/QCheckBox:1,
from ./ui_printwidget.h:14,
from src/printwidget.h:22,
/usr/include/qt5/QtWidgets/qabstractbutton.h:53:7: note: forward
declaration of ‘class QButtonGroup’ class QButtonGroup;
^~~~~~~~~~~~
src/printwidget.cpp:78:4: error: invalid use of incomplete type ‘class
QButtonGroup’ bg->addButton ( ui.rbPrint );
^~
In file included from /usr/include/qt5/QtWidgets/qcheckbox.h:44:0,
from /usr/include/qt5/QtWidgets/QCheckBox:1,
from ./ui_printwidget.h:14,
from src/printwidget.h:22,
/usr/include/qt5/QtWidgets/qabstractbutton.h:53:7: note: forward
declaration of ‘class QButtonGroup’ class QButtonGroup;
^~~~~~~~~~~~
src/printwidget.cpp:78:6: error: invalid use of incomplete type ‘class
QButtonGroup’ bg->addButton ( ui.rbPrint );
^~~~~~~~~
In file included from /usr/include/qt5/QtWidgets/qcheckbox.h:44:0,
from /usr/include/qt5/QtWidgets/QCheckBox:1,
from ./ui_printwidget.h:14,
from src/printwidget.h:22,
/usr/include/qt5/QtWidgets/qabstractbutton.h:53:7: note: forward
declaration of ‘class QButtonGroup’ class QButtonGroup;
^~~~~~~~~~~~
src/printwidget.cpp:79:4: error: invalid use of incomplete type ‘class
QButtonGroup’ bg->addButton ( ui.rbView );
^~
In file included from /usr/include/qt5/QtWidgets/qcheckbox.h:44:0,
from /usr/include/qt5/QtWidgets/QCheckBox:1,
from ./ui_printwidget.h:14,
from src/printwidget.h:22,
/usr/include/qt5/QtWidgets/qabstractbutton.h:53:7: note: forward
declaration of ‘class QButtonGroup’ class QButtonGroup;
^~~~~~~~~~~~
src/printwidget.cpp:79:6: error: invalid use of incomplete type ‘class
QButtonGroup’ bg->addButton ( ui.rbView );
^~~~~~~~~
In file included from /usr/include/qt5/QtWidgets/qcheckbox.h:44:0,
from /usr/include/qt5/QtWidgets/QCheckBox:1,
from ./ui_printwidget.h:14,
from src/printwidget.h:22,
/usr/include/qt5/QtWidgets/qabstractbutton.h:53:7: note: forward
declaration of ‘class QButtonGroup’ class QButtonGroup;
^~~~~~~~~~~~
make: *** [Makefile:2025: printwidget.o] Error 1
_______________________________________________
x2go-dev mailing list
https://lists.x2go.org/listinfo/x2go-dev
--
Rick Gregory
www.gbgsoft.com
647-483-3488
800-413-3691
_______________________________________________
x2go-dev mailing list
https://lists.x2go.org/listinfo/x2go-dev
Mike Gabriel
2018-08-15 21:04:21 UTC
Permalink
Hi,
Post by U. M. Goon
This is also caused by upgrading to QT5.11 and can fixed in
src/printwidget.cpp by simply adding "#include <QButtonGroup>"
#include <QWidgets>

is what I added as a patch to the Debian package in Debian unstable.

Mike
--
DAS-NETZWERKTEAM
mike gabriel, herweg 7, 24357 fleckeby
mobile: +49 (1520) 1976 148
landline: +49 (4354) 8390 139

GnuPG Fingerprint: 9BFB AEE8 6C0A A5FF BF22 0782 9AF4 6B30 2577 1B31
mail: ***@das-netzwerkteam.de, http://das-netzwerkteam.de
Loading...