From b3a89084528c046e2256c68ee96c4a90acf9363a Mon Sep 17 00:00:00 2001 From: dengzhongyuan Date: Thu, 19 Jun 2025 21:58:01 +0800 Subject: [PATCH 1/2] chore: update build dependencies and CMake configuration - Added libncnn-dev and libopencv-mobile-dev to debian/control - Updated CMakeLists.txt to include additional compiler flags for better compatibility and warnings management --- debian/control | 2 ++ src/CMakeLists.txt | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/debian/control b/debian/control index 5722a7b1..f5279780 100644 --- a/debian/control +++ b/debian/control @@ -10,6 +10,8 @@ Build-Depends: debhelper (>= 11), qt6-tools-dev-tools, libdtk6widget-dev, libdtk6ocr-dev + libncnn-dev, + libopencv-mobile-dev Standards-Version: 4.1.3 Homepage: http://www.deepin.org/ diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 337ef8b1..cad6e823 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -29,6 +29,10 @@ set(CMAKE_AUTOMOC ON) set(CMAKE_AUTORCC ON) set(CMAKE_AUTOUIC ON) set(QtModule Core Gui Widgets DBus LinguistTools) +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wl,--as-need -fPIE") +set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-error=incompatible-pointer-types -fPIC") +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wl,--as-need -fPIE -Wno-error=incompatible-pointer-types") +set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -pie") if(DOTEST) set(QtModule ${QtModule} Test) From 8f1ef6279628f35fd50f42b20551b74cdee1bd70 Mon Sep 17 00:00:00 2001 From: dengzhongyuan Date: Thu, 19 Jun 2025 21:59:01 +0800 Subject: [PATCH 2/2] chore(version): bump version to 6.5.2 --- debian/changelog | 6 ++++++ linglong.yaml | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index a529f508..302a79af 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +deepin-ocr (6.5.2) unstable; urgency=medium + + * chore: update build dependencies and CMake configuration + + -- dengzhongyuan Thu, 19 Jun 2025 21:58:59 +0800 + deepin-ocr (6.5.1) unstable; urgency=medium * fix: Fixed the COR recognition crash diff --git a/linglong.yaml b/linglong.yaml index 4f5947f9..26585b07 100644 --- a/linglong.yaml +++ b/linglong.yaml @@ -1,7 +1,7 @@ package: id: org.deepin.ocr name: "deepin-ocr" - version: 6.5.0.1 + version: 6.5.1.1 kind: app description: | Ocr is a text recognition software.