!141 修改架构判断

Merge pull request !141 from 苏芳/openkylin/nile
This commit is contained in:
苏芳 2024-08-28 06:52:06 +00:00 committed by Gitee
commit 3a0775c4f4
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 18 additions and 2 deletions

9
debian/changelog vendored
View File

@ -1,3 +1,12 @@
kylin-photo-viewer (1.3.0.3-ok22.32) nile; urgency=medium
* BUG号
* 需求号:无
* 其他改动说明:修改架构判断
* 影响域:无
-- sufang <sufang@kylinos.cn> Wed, 28 Aug 2024 14:47:57 +0800
kylin-photo-viewer (1.3.0.3-ok22.31) nile; urgency=medium
* BUG号

4
debian/control vendored
View File

@ -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,

View File

@ -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