Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ChazSchatz opened this issue Nov 18, 2022 · 1 comment
Open

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

ChazSchatz opened this issue Nov 18, 2022 · 1 comment

Comments

@ChazSchatz
Copy link

'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
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants