Skip to content

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

@cottuli

Description

@cottuli

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 #1173 (comment).

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 #1173 (comment)).

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions