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

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

📋 Pull Request Information

Original PR: https://github.com/CCExtractor/ccextractor/pull/1760
Author: @DhanushVarma-2
Created: 11/8/2025
Status: Merged
Merged: 12/15/2025
Merged by: @cfsmp3

Base: masterHead: fix-tesseract-linking-1719


📝 Commits (1)

  • 1515f5c build: add tesseract library linking for hardsubx feature

📊 Changes

1 file changed (+8 additions, -0 deletions)

View changed files

📝 src/CMakeLists.txt (+8 -0)

📄 Description

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


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/CCExtractor/ccextractor/pull/1760 **Author:** [@DhanushVarma-2](https://github.com/DhanushVarma-2) **Created:** 11/8/2025 **Status:** ✅ Merged **Merged:** 12/15/2025 **Merged by:** [@cfsmp3](https://github.com/cfsmp3) **Base:** `master` ← **Head:** `fix-tesseract-linking-1719` --- ### 📝 Commits (1) - [`1515f5c`](https://github.com/CCExtractor/ccextractor/commit/1515f5c1be01d8da35e7f5a261be5db61cf3041d) build: add tesseract library linking for hardsubx feature ### 📊 Changes **1 file changed** (+8 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `src/CMakeLists.txt` (+8 -0) </details> ### 📄 Description 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 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
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#2480