From 8c506d82d8efd37f8c586de63b439004fb9a3fb0 Mon Sep 17 00:00:00 2001 From: zhanghongyuan Date: Fri, 17 Oct 2025 08:37:18 +0800 Subject: [PATCH] chore: add Pkgconfig in CMake configuration - Add PkgConfig requirement from CMake configuration Log: Update build dependencies for license compliance --- debian/changelog | 6 ++++++ debian/control | 1 + src/CMakeLists.txt | 1 + 3 files changed, 8 insertions(+) diff --git a/debian/changelog b/debian/changelog index bb48ff8..2f652b7 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +deepin-ocr (6.5.11) unstable; urgency=medium + + * chore: Adjust pkg-config dependency + + -- zhanghongyuan Fri, 17 Oct 2025 08:35:29 +0800 + deepin-ocr (6.5.10) unstable; urgency=medium * chore: Adjust open source license configuration diff --git a/debian/control b/debian/control index b2dff63..d7c02b9 100644 --- a/debian/control +++ b/debian/control @@ -4,6 +4,7 @@ Priority: optional Maintainer: Deepin Packages Builder Build-Depends: debhelper (>= 11), cmake, + pkg-config, qt6-base-dev, qt6-tools-dev, qt6-tools-dev-tools, diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 68fb8b9..ccc2c5e 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -152,6 +152,7 @@ if(DOTEST) endif() # for dtk +find_package(PkgConfig REQUIRED) pkg_check_modules(ocr_lib REQUIRED dtk6ocr) pkg_check_modules(InferenceEngine REQUIRED ncnn opencv_mobile) target_include_directories(${PROJECT_NAME} PUBLIC ${ocr_lib_INCLUDE_DIRS})