mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-04-15 10:33:14 +00:00
[PR #1865] fix(mac): Fix HARDSUBX configure script and add documentation #2640
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/1865
State: closed
Merged: Yes
Summary
The configure.ac script failed on macOS with "binary operator expected" because the
pkg-configoutput was unquoted. When pkg-config returns multiple libraries (e.g.,-ltesseract -lcurl), the unquoted expansion causedtest ! -zto receive multiple arguments instead of a single string.Changes
TESSERACT_PRESENTconditional (both mac/ and linux/configure.ac)./build.command -hardsubx(recommended)--enable-hardsubx --enable-ocr-DWITH_HARDSUBX=ONbuild_shell_hardsubx: Tests./build.command -hardsubxbuild_autoconf_hardsubx: Tests./configure --enable-hardsubx --enable-ocrRoot Cause
Test plan
build_autoconf_hardsubxjob passes (tests the fix)build_shell_hardsubxjob passes-hardsubxparameter is recognized in built binary🤖 Generated with Claude Code