From 8434075039786a06150c8cbf52d05cccda8f6217 Mon Sep 17 00:00:00 2001 From: sufang Date: Wed, 28 Aug 2024 14:48:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=9E=B6=E6=9E=84=E5=88=A4?= =?UTF-8?q?=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- debian/changelog | 9 +++++++++ debian/control | 4 ++-- src/src.pro | 7 +++++++ 3 files changed, 18 insertions(+), 2 deletions(-) diff --git a/debian/changelog b/debian/changelog index 4923530..fee36f3 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,12 @@ +kylin-photo-viewer (1.3.0.3-ok22.32) nile; urgency=medium + + * BUG号:无 + * 需求号:无 + * 其他改动说明:修改架构判断 + * 影响域:无 + + -- sufang Wed, 28 Aug 2024 14:47:57 +0800 + kylin-photo-viewer (1.3.0.3-ok22.31) nile; urgency=medium * BUG号:无 diff --git a/debian/control b/debian/control index 5443d32..ffddac6 100644 --- a/debian/control +++ b/debian/control @@ -29,7 +29,7 @@ Build-Depends: debhelper (>=9), qtquickcontrols2-5-dev, qtscript5-dev, qttools5-dev-tools, - onnxruntime [!loong64], + onnxruntime [amd64 arm64 !loong64], librsvg2-dev Standards-Version: 4.4.0 Homepage: https://github.com/ubuntukylin/kylin-photo-viewer @@ -49,7 +49,7 @@ Description: Photo viewer, support to view, zoom and rotate images of various fo Package: photo-viewer-aiassistant-plugin Architecture: any Depends: kylin-photo-viewer, - onnxruntime [!loong64], + onnxruntime [amd64 arm64 !loong64], libfreeimage-dev, libfreeimageplus-dev, libopencv-dnn-dev, diff --git a/src/src.pro b/src/src.pro index 2986eae..4840fc1 100644 --- a/src/src.pro +++ b/src/src.pro @@ -63,8 +63,15 @@ LIBS += -lopencv_core \ -lopencv_highgui \ -lopencv_dnn \ +contains(QMAKE_HOST.arch, x86_64){ INCLUDEPATH += /usr/local/include/onnxruntime LIBS += -L/usr/local/lib -lonnxruntime +} + +contains(QMAKE_HOST.arch, aarch64){ +INCLUDEPATH += /usr/local/include/onnxruntime +LIBS += -L/usr/local/lib -lonnxruntime +} target.path = /usr/bin target.source +=$$TARGET