mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-02-03 21:23:48 +00:00
[PR #1760] build: add tesseract library linking for hardsubx feature #2483
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?
Original Pull Request: https://github.com/CCExtractor/ccextractor/pull/1760
State: closed
Merged: Yes
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