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/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/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. 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)