[BUG] Error in ./configure enabling hardsubx on Mac #538

Open
opened 2026-01-29 16:46:56 +00:00 by claunia · 0 comments
Owner

Originally created by @vr8hub on GitHub (Jan 8, 2020).

Originally assigned to: @canihavesomecoffee on GitHub.

CCExtractor version (using the --version parameter preferably) : 0.88 (I cloned the repository immediately before attempting this)

In raising this issue, I confirm the following (please check boxes, eg [X] - and delete unchecked ones):

  • I have read and understood the contributors guide.
  • I have checked that the bug-fix I am reporting can be replicated, or that the feature I am suggesting isn't already present.
  • I have checked that the issue I'm posting isn't already reported.
  • I have checked that the issue I'm porting isn't already solved and no duplicates exist in closed issues and in opened issues
  • I have checked the pull requests tab for existing solutions/implementations to my issue/suggestion.
  • I have used the latest available version of CCExtractor to verify this issue exists.

My familiarity with the project is as follows (check one, eg [X] - and delete unchecked ones):

  • I have never used CCExtractor.
  • I have used CCExtractor just a couple of times.
  • I absolutely love CCExtractor, but have not contributed previously.
  • I am an active contributor to CCExtractor.

Necessary information

  • Is this a regression (did it work before)? [ ] NO | [ ] YES | [X] UNKNOWN - please specify the last known working version
  • What platform did you use? [ ] Windows - [ ] Linux - [X] Mac
  • What were the used arguments? None

Video links (replace text below with your links)
None.

Additional information

I'm trying to compile on Mac (OSX Mojave 10.14.6) with hardsubx support. It took me a while to determine that it's not automatically enabled (the compile guide makes no mention of it but it's in the standard help). I searched the git log and found an issue from 2017 that said that hardsubx was enabled for the Mac, so I'm operating under the assumption that it is available for the Mac. The docs/HARDSUBX.txt don't make mention of the Mac specifically one way or the other, so that may be a bad assumption.

I confirmed that all of the required libraries (tesseract, leptonica, ffmpeg) were available, then did an ./autogen.sh and ./configure --enable-hardsubx --enable-ocr. I'm getting an error on the configure (showing a couple of lines of context):

configure: tesseract library found... tesseract 4.1.1
configure: leptonica library found...  leptonica-1.79.0
./configure: line 6768: test: -ltesseract: binary operator expected
checking that generated files are newer than configure... done

Line 6768 is:

if  test ! -z  `pkg-config --libs-only-l --silence-errors tesseract`; then

I ran pkg-config --libs-only-l --silence-errors tesseract manually and receive

-ltesseract -lcurl

I'm not conversant enough in autotools to know what the problem is, but it appears that the configure test is not anticipating that type of return.

Is this a problem in the configure or with the return of the pkg-config? The indicated pre-configure tests to confirm that tesseract and leptonica were installed all worked, and the configure found the tesseract library.

Originally created by @vr8hub on GitHub (Jan 8, 2020). Originally assigned to: @canihavesomecoffee on GitHub. CCExtractor version (using the --version parameter preferably) : **0.88 (I cloned the repository immediately before attempting this)** **In raising this issue, I confirm the following (please check boxes, eg [X] - and delete unchecked ones):** - [X] I have read and understood the [contributors guide](https://github.com/CCExtractor/ccextractor/blob/master/.github/CONTRIBUTING.md). - [X] I have checked that the bug-fix I am reporting can be replicated, or that the feature I am suggesting isn't already present. - [X] I have checked that the issue I'm posting isn't already reported. - [X] I have checked that the issue I'm porting isn't already solved and no duplicates exist in [closed issues](https://github.com/CCExtractor/ccextractor/issues?q=is%3Aissue+is%3Aclosed) and in [opened issues](https://github.com/CCExtractor/ccextractor/issues) - [X] I have checked the pull requests tab for existing solutions/implementations to my issue/suggestion. - [X] I have used the latest available version of CCExtractor to verify this issue exists. **My familiarity with the project is as follows (check one, eg [X] - and delete unchecked ones):** - [ ] I have never used CCExtractor. - [X] I have used CCExtractor just a couple of times. - [ ] I absolutely love CCExtractor, but have not contributed previously. - [ ] I am an active contributor to CCExtractor. **Necessary information** - Is this a regression (did it work before)? [ ] NO | [ ] YES | [X] UNKNOWN - *please specify the last known working version* - What platform did you use? [ ] Windows - [ ] Linux - [X] Mac - What were the used arguments? `None` **Video links (replace text below with your links)** None. **Additional information** I'm trying to compile on Mac (OSX Mojave 10.14.6) with hardsubx support. It took me a while to determine that it's not automatically enabled (the compile guide makes no mention of it but it's in the standard help). I searched the git log and found an issue from 2017 that said that hardsubx was enabled for the Mac, so I'm operating under the assumption that it is available for the Mac. The `docs/HARDSUBX.txt` don't make mention of the Mac specifically one way or the other, so that may be a bad assumption. I confirmed that all of the required libraries (tesseract, leptonica, ffmpeg) were available, then did an `./autogen.sh` and `./configure --enable-hardsubx --enable-ocr`. I'm getting an error on the configure (showing a couple of lines of context): ```` configure: tesseract library found... tesseract 4.1.1 configure: leptonica library found... leptonica-1.79.0 ./configure: line 6768: test: -ltesseract: binary operator expected checking that generated files are newer than configure... done ```` Line 6768 is: ```` if test ! -z `pkg-config --libs-only-l --silence-errors tesseract`; then ```` I ran `pkg-config --libs-only-l --silence-errors tesseract` manually and receive ```` -ltesseract -lcurl ```` I'm not conversant enough in autotools to know what the problem is, but it appears that the configure test is not anticipating that type of return. Is this a problem in the configure or with the return of the pkg-config? The indicated pre-configure tests to confirm that tesseract and leptonica were installed all worked, and the configure found the tesseract library.
claunia added the Mac / OSX label 2026-01-29 16:46:56 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ccextractor#538