[PR #1760] build: add tesseract library linking for hardsubx feature #2483

Closed
opened 2026-01-29 17:22:23 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/CCExtractor/ccextractor/pull/1760

State: closed
Merged: Yes


Fixes #1719

Problem:
The build fails when using --enable-hardsubx and --enable-ocr flags due to missing tesseract library linking, even though hardsubx uses tesseract OCR functions.

Solution:
Added pkg_check_modules for tesseract and leptonica in the HARDSUBX section of src/CMakeLists.txt, similar to how OCR section handles these libraries.

Changes:

  • Added tesseract and leptonica library detection in HARDSUBX CMake section
  • Added library linking for both tesseract and leptonica
  • Added include directories for both libraries

Testing:
Tested build with:
bash
cmake -DWITH_HARDSUBX=ON -DWITH_OCR=ON -DWITH_FFMPEG=ON
make

**Original Pull Request:** https://github.com/CCExtractor/ccextractor/pull/1760 **State:** closed **Merged:** Yes --- Fixes #1719 Problem: The build fails when using `--enable-hardsubx` and `--enable-ocr` flags due to missing tesseract library linking, even though hardsubx uses tesseract OCR functions. Solution: Added `pkg_check_modules` for tesseract and leptonica in the HARDSUBX section of `src/CMakeLists.txt`, similar to how OCR section handles these libraries. Changes: - Added tesseract and leptonica library detection in HARDSUBX CMake section - Added library linking for both tesseract and leptonica - Added include directories for both libraries Testing: Tested build with: bash cmake -DWITH_HARDSUBX=ON -DWITH_OCR=ON -DWITH_FFMPEG=ON make
claunia added the pull-request label 2026-01-29 17:22:23 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ccextractor#2483