zdenop / qt-box-editor

QT4 editor of tesseract-ocr box files
https://zdenop.github.io/qt-box-editor/
Apache License 2.0
170 stars 66 forks source link

Error when building on Ubuntu 22.04 #86

Closed carl-krikorian closed 2 years ago

carl-krikorian commented 2 years ago

Hello,

I am facing a few issues while building qt-box-editor on Ubuntu 22.04. As per the INSTALL file I used apt to install qt5-qmake libqt5gui5 qt5-doc ibqt5svg5-dev and libleptonica-dev. However, trying to install qt5-default returned E: Package 'qt5-default' has no installation candidate. So I installed the defaults using this command "sudo apt-get install qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools" as per this link on stack overflow.

I later install tesseract-dev and tesseract-ocr and following the remaining instructions when running make I would consistently get the error:

src/TessTools.cpp:30:10: fatal error: tesseract/strngs.h: No such file or directory
   30 | #include <tesseract/strngs.h>
      |          ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:718: build/release/TessTools.o] Error 1

I assumed this was an error with my tesseract installation so I retried uninstalling then building it from source but the error persisted.

Is there any packages I am missing or version I need to revert to? If further information is required I am more than happy to provide. Thanks.

SHARMARINKU commented 2 years ago

i'm also facing same issue please help.

zdenop commented 2 years ago

> If you build application from source make sure you use tesseract 3.01 or 3.02 version.

So are you using (outdated and unsupported) tesseract version 3.x to build qt-box-editor?

trofi commented 2 years ago

The build fails on tesseract-5.2.0 as well:

src/TessTools.cpp:30:10: fatal error: tesseract/strngs.h: No such file or directory
   30 | #include <tesseract/strngs.h>
      |          ^~~~~~~~~~~~~~~~~~~~
zdenop commented 2 years ago

This is absolutely correct. Qt-box-editor is useful for tesseract 3.01 or 3.02 version. and not for tesseract 5 (or 4).