Can you try this patch, was made for LibreCAD 2.1.3, you will need to regress your version or create a new patch based on this one for 2.2.0
Add this line before qmake-qt5 inside .SlackBuild
Code:
patch -p1 < $CWD/0001-fix-build-with-Qt-5.11.patch
0001-fix-build-with-Qt-5.11.patch
Code:
[hide]From 5bd5d5b1ea6781fcbc3c9c61b2059703647dc5d2 Mon Sep 17 00:00:00 2001
From: Jiri Slaby <jslaby@suse.cz>
Date: Mon, 11 Jun 2018 10:44:00 +0200
Subject: [PATCH 1/1] fix build with Qt 5.11
The new Qt removed some implicit inclusions of headers. To avoid build
errors, add explicit includes of those we use in the sources.
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
(cherry picked from commit 6c392e903e162b9283e88f53006e929663f2e883)
Signed-off-by: Christian Hesse <mail@eworm.de>
---
librecad/src/ui/forms/qg_commandwidget.cpp | 2 ++
librecad/src/ui/generic/widgetcreator.cpp | 2 ++
2 files changed, 4 insertions(+)
diff --git a/librecad/src/ui/forms/qg_commandwidget.cpp b/librecad/src/ui/forms/qg_commandwidget.cpp
index 7cd69398..2b90d671 100644
--- a/librecad/src/ui/forms/qg_commandwidget.cpp
+++ b/librecad/src/ui/forms/qg_commandwidget.cpp
@@ -24,6 +24,8 @@
**
**********************************************************************/
#include "qg_commandwidget.h"
+
+#include <QAction>
#include <QKeyEvent>
#include <algorithm>
diff --git a/librecad/src/ui/generic/widgetcreator.cpp b/librecad/src/ui/generic/widgetcreator.cpp
index ca89ab13..260d9afd 100644
--- a/librecad/src/ui/generic/widgetcreator.cpp
+++ b/librecad/src/ui/generic/widgetcreator.cpp
@@ -27,6 +27,8 @@
#include "widgetcreator.h"
#include "ui_widgetcreator.h"
+#include <QAction>
+#include <QActionGroup>
#include <QSettings>
#include <QLineEdit>
#include <QPushButton>[/hide]
Source:
https://www.archlinux.org/packages/c...6_64/librecad/
EDIT:
Slackware package /tmp/librecad-2.2.0rc1-x86_64-1_SBo.tgz created.
Ps, im using qt5 5.12.3
As I am newbie then I do not know how to create patches that make several changes in different files, but it worked well if you want to use them.
Need to added this lines before "qmake-qt5" inside .SlackBuild and save the patches at same place.
Code:
patch -p0 librecad/src/ui/generic/colorwizard.cpp < $CWD/colorwizard.patch
patch -p0 librecad/src/ui/generic/widgetcreator.cpp < $CWD/widgetcreator.patch
patch -p0 librecad/src/ui/forms/qg_commandwidget.cpp < $CWD/qg_commandwidget.patch
Rename attachments to .patch