Created attachment 537516 [details, diff] librecad-2.1.3-qt-5.11.patch I get the following error: ui/generic/widgetcreator.cpp: In constructor ‘WidgetCreator::WidgetCreator(QWidget*, QMap<QString, QAction*>&, QMap<QString, QActionGroup*>, bool)’: ui/generic/widgetcreator.cpp:59:44: error: invalid use of incomplete type ‘class QActionGroup’ ui->categories_combobox->addItem(ag->objectName()); ^~ In file included from ui/generic/widgetcreator.cpp:27:0: ui/generic/widgetcreator.h:9:7: note: forward declaration of ‘class QActionGroup’ class QActionGroup; ^~~~~~~~~~~~ In file included from /usr/include/qt5/QtGui/qtguiglobal.h:43:0, from /usr/include/qt5/QtWidgets/qtwidgetsglobal.h:43, from /usr/include/qt5/QtWidgets/qframe.h:43, from /usr/include/qt5/QtWidgets/QFrame:1, from ui/generic/widgetcreator.h:4, from ui/generic/widgetcreator.cpp:27: ui/generic/widgetcreator.cpp: In member function ‘void WidgetCreator::setCategory(QString)’: ui/generic/widgetcreator.cpp:233:39: error: invalid use of incomplete type ‘class QActionGroup’ foreach (auto action, action_group->actions()) ^ In file included from ui/generic/widgetcreator.cpp:27:0: ui/generic/widgetcreator.h:9:7: note: forward declaration of ‘class QActionGroup’ class QActionGroup; ^~~~~~~~~~~~ The error is related to Qt 5.11 as suggested in https://www.mail-archive.com/bug-guix@gnu.org/msg09231.html, the issue has been already fixed upstream but the referenced commit doesn't apply as is on current 2.1.3. I have modified that patch to successfully compile librecad with qt 5.11
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6c6192cedb2b10882654040e34fb7e7fca82b8c9 commit 6c6192cedb2b10882654040e34fb7e7fca82b8c9 Author: Andreas Sturmlechner <asturm@gentoo.org> AuthorDate: 2018-06-30 23:37:29 +0000 Commit: Andreas Sturmlechner <asturm@gentoo.org> CommitDate: 2018-07-01 00:03:40 +0000 media-gfx/librecad: Fix build with Qt5, EAPI-6 bump Thanks-to: Fabio Rossi <rossi.f@inwind.it> Closes: https://bugs.gentoo.org/659466 Package-Manager: Portage-2.3.41, Repoman-2.3.9 media-gfx/librecad/Manifest | 1 + .../librecad/files/librecad-2.1.3-qt-5.11.patch | 40 +++++++++++++++++ media-gfx/librecad/librecad-2.1.3-r4.ebuild | 51 ++++++++++++++++++++++ media-gfx/librecad/librecad-9999.ebuild | 24 ++++------ 4 files changed, 101 insertions(+), 15 deletions(-)