ruediger / VobSub2SRT

Converts VobSub subtitles (.idx/.srt format) into .srt subtitles.
GNU General Public License v3.0
293 stars 65 forks source link

Can't Build on Debian Buster, GCC 10, Tesseract 4 #102

Open ChazSchatz opened 1 year ago

ChazSchatz commented 1 year ago

'error: ‘TessBaseAPI’ has not been declared'

is thrown many times in the make listing.

.configure output: ./configure -- Source: /home/fritz/Downloads/VobSub2SRT -- Binary: /home/fritz/Downloads/VobSub2SRT/build -- Build type: Debug CMake Warning at CMakeModules/FindTesseract.cmake:56 (message): You are using an old Tesseract version. Support for Tesseract 2 is deprecated and will be removed in the future! Call Stack (most recent call first): CMakeLists.txt:66 (find_package)

-- Bash completion path: /usr/share/bash-completion/completions -- vobsub2srt version: 1.0pre7-11-g0ba6e25-dirty -- Debian architecture: amd64 -- Configuring done -- Generating done -- Build files have been written to: /home/fritz/Downloads/VobSub2SRT/build

AeolianHarp commented 9 months ago

I had to add these lines to the CMakeLists.txt file to get it to work, I added them at line 48/49:

add_compile_definitions(CONFIG_TESSERACT_NAMESPACE)
set(CMAKE_CXX_STANDARD 11)