Skip to content

Conversation

@DhanushVarma-2
Copy link

Partial fix for #1718

Adds CMake options for system library linking as foundation for full implementation:

  • USE_SYSTEM_ZLIB - Use system zlib instead of bundled
  • USE_SYSTEM_LIBPNG - Use system libpng instead of bundled
  • USE_SYSTEM_FREETYPE - Use system freetype instead of bundled

Current behaviour: Options are OFF by default, existing bundled libraries still used
Future work: Implement actual system library detection and linking

This is phase 1 of addressing #1718 - adding the configuration framework before implementing the full system library support.

dhanush varma added 2 commits November 8, 2025 11:42
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
Adds USE_SYSTEM_ZLIB, USE_SYSTEM_LIBPNG, and USE_SYSTEM_FREETYPE options
as foundation for issue CCExtractor#1718 - allowing system library linking instead of bundled libraries.

Note: Options are OFF by default and don't change current behavior yet.
Implementation of actual system library detection will follow.
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.

1 participant