Skip to content

Conversation

@DhanushVarma-2
Copy link

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

Fixes CCExtractor#1719 - build was failing with --enable-hardsubx due to missing
tesseract library linking. Added pkg_check_modules for tesseract and
leptonica in the HARDSUBX section of CMakeLists.txt.

Tested with: cmake -DWITH_HARDSUBX=ON -DWITH_OCR=ON -DWITH_FFMPEG=ON
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

hardsubx lacks a link directive to the tesseract library

1 participant