mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-04-23 22:50:06 +00:00
[PR #1760] [MERGED] build: add tesseract library linking for hardsubx feature #2480
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 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:
master← Head:fix-tesseract-linking-1719📝 Commits (1)
1515f5cbuild: 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-hardsubxand--enable-ocrflags due to missing tesseract library linking, even though hardsubx uses tesseract OCR functions.Solution:
Added
pkg_check_modulesfor tesseract and leptonica in the HARDSUBX section ofsrc/CMakeLists.txt, similar to how OCR section handles these libraries.Changes:
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.