From 51d29eac3c31710b4f7b74a257a3855b74c92649 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E5=AE=89=E7=9B=9F?= Date: Wed, 18 Jun 2025 14:30:43 +0800 Subject: [PATCH] fix riscv build error --- 0001-fix-riscv-build-error.patch | 25 +++++++++++++++++++++++++ qt5-qt3d.spec | 11 +++++++++-- 2 files changed, 34 insertions(+), 2 deletions(-) create mode 100644 0001-fix-riscv-build-error.patch diff --git a/0001-fix-riscv-build-error.patch b/0001-fix-riscv-build-error.patch new file mode 100644 index 0000000..357dda0 --- /dev/null +++ b/0001-fix-riscv-build-error.patch @@ -0,0 +1,25 @@ +From fbe650be3511ff6b591935ac1ee6a577a041bce8 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?=E5=BC=A0=E5=AE=89=E7=9B=9F?= +Date: Wed, 18 Jun 2025 13:49:42 +0800 +Subject: [PATCH 1/1] fix riscv build error + +--- + src/plugins/renderers/opengl/opengl.pro | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/src/plugins/renderers/opengl/opengl.pro b/src/plugins/renderers/opengl/opengl.pro +index f098513..416a186 100644 +--- a/src/plugins/renderers/opengl/opengl.pro ++++ b/src/plugins/renderers/opengl/opengl.pro +@@ -8,6 +8,8 @@ include(opengl.pri) + SOURCES += \ + main.cpp + ++LIBS += -latomic ++ + PLUGIN_TYPE = renderers + PLUGIN_CLASS_NAME = OpenGLRendererPlugin + load(qt_plugin) +-- +2.43.5 + diff --git a/qt5-qt3d.spec b/qt5-qt3d.spec index c5996ba..eda227a 100644 --- a/qt5-qt3d.spec +++ b/qt5-qt3d.spec @@ -1,4 +1,4 @@ -%define anolis_release 1 +%define anolis_release 2 %global qt_module qt3d Summary: Qt5 - Qt3D QML bindings and C++ APIs @@ -24,6 +24,8 @@ BuildRequires: qt5-qtxmlpatterns-devel Requires: qt5-qtimageformats >= %{version} Provides: bundled(assimp) = 3.3.1 +Patch0001: 0001-fix-riscv-build-error.patch + %description Qt 3D provides functionality for near-realtime simulation systems with support for 2D and 3D rendering in both Qt C++ and Qt Quick applications). @@ -44,7 +46,9 @@ Requires: %{name} = %{version}-%{release} %prep %setup -q -n %{qt_module}-everywhere-src-%{version} - +%ifarch riscv64 +%patch0001 -p1 +%endif %build # QT is known not to work properly with LTO at this point. Some of the issues @@ -165,6 +169,9 @@ popd %endif %changelog +* Wed Jun 18 2025 Anmeng Zhang - 5.15.11-2 +- fix riscv build error + * Thu Oct 19 2023 Funda Wang - 5.15.11-1 - New version 5.15.11 -- Gitee