fix: add link_directories for tesseract/leptonica on macOS#2186
Open
DhanushVarma-2 wants to merge 2 commits intoCCExtractor:masterfrom
Open
fix: add link_directories for tesseract/leptonica on macOS#2186DhanushVarma-2 wants to merge 2 commits intoCCExtractor:masterfrom
DhanushVarma-2 wants to merge 2 commits intoCCExtractor:masterfrom
Conversation
added 2 commits
March 4, 2026 18:54
…G_MP4 Added #ifdef ENABLE_FFMPEG_MP4 alternative for the track counting loop. FFmpeg equivalent: - gf_isom_get_media_type() -> stream->codecpar->codec_type - gf_isom_get_media_subtype() -> stream->codecpar->codec_id - GF_ISOM_SUBTYPE_AVC_H264 -> AV_CODEC_ID_H264 - GF_ISOM_SUBTYPE_HEV1/HVC1 -> AV_CODEC_ID_HEVC Default GPAC path unchanged. Build verified successful.
pkg_check_modules provides library names without paths. Without link_directories, the linker cannot find tesseract and leptonica on systems where they are not in default search paths (e.g. Homebrew on macOS arm64).
Collaborator
CCExtractor CI platform finished running the test files on linux. Below is a summary of the test results, when compared to test for commit 90128d8...:
Your PR breaks these cases:
NOTE: The following tests have been failing on the master branch as well as the PR:
Congratulations: Merging this PR would fix the following tests:
It seems that not all tests were passed completely. This is an indication that the output of some files is not as expected (but might be according to you). Check the result page for more info. |
Collaborator
CCExtractor CI platform finished running the test files on windows. Below is a summary of the test results, when compared to test for commit e4bcade...:
NOTE: The following tests have been failing on the master branch as well as the PR:
Congratulations: Merging this PR would fix the following tests:
This PR does not introduce any new test failures. However, some tests are failing on both master and this PR (see above). Check the result page for more info. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes linker failure when building with -DWITH_OCR=ON -DWITH_HARDSUBX=ON on macOS arm64 (Homebrew).
pkg_check_modules populates TESSERACT_LIBRARY_DIRS and LEPTONICA_LIBRARY_DIRS but these were never passed to the linker. Added link_directories() calls in both the OCR and HARDSUBX sections of CMakeLists.txt.
Tested on macOS arm64 with Homebrew tesseract 5.5.1 and leptonica 1.86.0.