[PROPOSAL] Add instructions on how to compile with HARDSUBX (on macOS) to docs/HARDSUBX.txt #621

Closed
opened 2026-01-29 16:49:17 +00:00 by claunia · 5 comments
Owner

Originally created by @cottuli on GitHub (Mar 21, 2021).

Originally assigned to: @MatejMecka on GitHub.

Adding some instructions on how to compile with HARDSUBX, on macOS, to either COMPILATION.md or docs/HARDSUBX.txt, would be much appreciated.

When I installed I first tried brew install ccextractor, and cd ccextractor/mac; ./build.command OCR, as suggested in COMPILATION.md, but both of these methods don't provide hardsubx suport.

I then tried using cmake (cd ccextractor/; mkdir build; cd build; cmake -DWITH_OCR=on -DWITH_HARDSUBX=on ../src/; make) but this gave undefined symbol errors like

Undefined symbols for architecture x86_64: "_TessBaseAPICreate", referenced from: __init_hardsubx in ccextractor-hardsubx.o _init_ocr in ccextractor-ocr.o

which seem to be similar to the errors vr8hub mentioned in one of his comments.

I then read through the relevant bug reports (see #1173 and #1111) and was finally able to get hardsubx working by quoting the relevant portion of line 6763 as suggested by vr8hub in https://github.com/CCExtractor/ccextractor/issues/1173#issuecomment-586655026.

So I think all new users trying to get the hardsub extractor working on mac would appreciate some instructions on how to do so in the docs.

It's also worth noting that the parameter that needs to be passed to ccextractor is -hardsubx, whereas most long-time unix users would expect it to be --hardsubx (see https://github.com/CCExtractor/ccextractor/issues/1173#issuecomment-661964145).

Originally created by @cottuli on GitHub (Mar 21, 2021). Originally assigned to: @MatejMecka on GitHub. Adding some instructions on how to compile with HARDSUBX, on macOS, to either COMPILATION.md or docs/HARDSUBX.txt, would be much appreciated. When I installed I first tried `brew install ccextractor`, and `cd ccextractor/mac; ./build.command OCR`, as suggested in COMPILATION.md, but both of these methods don't provide hardsubx suport. I then tried using cmake (`cd ccextractor/; mkdir build; cd build; cmake -DWITH_OCR=on -DWITH_HARDSUBX=on ../src/; make`) but this gave undefined symbol errors like `Undefined symbols for architecture x86_64: "_TessBaseAPICreate", referenced from: __init_hardsubx in ccextractor-hardsubx.o _init_ocr in ccextractor-ocr.o` which seem to be similar to the errors vr8hub mentioned in one of his comments. I then read through the relevant bug reports (see #1173 and #1111) and was finally able to get hardsubx working by quoting the relevant portion of line 6763 as suggested by vr8hub in https://github.com/CCExtractor/ccextractor/issues/1173#issuecomment-586655026. So I think all new users trying to get the hardsub extractor working on mac would appreciate some instructions on how to do so in the docs. It's also worth noting that the parameter that needs to be passed to ccextractor is -hardsubx, whereas most long-time unix users would expect it to be --hardsubx (see https://github.com/CCExtractor/ccextractor/issues/1173#issuecomment-661964145).
claunia added the enhancementhelp wantedHardsubXHacktoberfestMac / OSX labels 2026-01-29 16:49:17 +00:00
Author
Owner

@cfsmp3 commented on GitHub (Mar 21, 2021):

We'll need a Mac user to send us a PR. I think none of the core team developers actually uses a Mac, so the reason it works is just portability, not that an actual effort was made here.

@cfsmp3 commented on GitHub (Mar 21, 2021): We'll need a Mac user to send us a PR. I think none of the core team developers actually uses a Mac, so the reason it works is just portability, not that an actual effort was made here.
Author
Owner

@canihavesomecoffee commented on GitHub (Mar 21, 2021):

IIRC @MatejMecka is one of the persons who has a Mac. Maybe he can look at it (if he has time)

@canihavesomecoffee commented on GitHub (Mar 21, 2021): IIRC @MatejMecka is one of the persons who has a Mac. Maybe he can look at it (if he has time)
Author
Owner

@MatejMecka commented on GitHub (Mar 21, 2021):

Hey there! I'll happily take to solve the issue 🐱

@MatejMecka commented on GitHub (Mar 21, 2021): Hey there! I'll happily take to solve the issue 🐱
Author
Owner

@cfsmp3 commented on GitHub (Mar 28, 2021):

@MatejMecka ? Where's that PR?

@cfsmp3 commented on GitHub (Mar 28, 2021): @MatejMecka ? Where's that PR?
Author
Owner

@MatejMecka commented on GitHub (Mar 28, 2021):

Hey there! I'm getting some issues compiling Leptonica using the build script, working on fixing that :)

@MatejMecka commented on GitHub (Mar 28, 2021): Hey there! I'm getting some issues compiling Leptonica using the build script, working on fixing that :)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ccextractor#621