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

compilation error - leptonica/allheaders.h: No such file or directory #61

Closed kayazinc closed 7 years ago

kayazinc commented 7 years ago

Similar to this issue - https://github.com/zdenop/qt-box-editor/issues/53, I tried to build this tool in ubuntu 16.04,

tesseract 3.04.01
 leptonica-1.73
  libgif 5.1.2 : libjpeg 8d (libjpeg-turbo 1.4.2) : libpng 1.2.54 : libtiff 4.0.6 : zlib 1.2.8 : libwebp 0.4.4 : libopenjp2 2.1.0

and the following error is generated,

...
g++ -c -m64 -pipe -O2 -w -D_REENTRANT -fPIC -DVERSION=\"1.13dev\" -DQT_NO_DEBUG -DQT_SVG_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -I. -Idialogs -Isrc/include -Isrc -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtSvg -isystem /usr/include/x86_64-linux-gnu/qt5/QtWidgets -isystem /usr/include/x86_64-linux-gnu/qt5/QtGui -isystem /usr/include/x86_64-linux-gnu/qt5/QtNetwork -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -Itemp -Itemp -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++-64 -o temp/ChildWidget.o src/ChildWidget.cpp
src/ChildWidget.cpp:28:34: fatal error: leptonica/allheaders.h: No such file or directory
compilation terminated.
Makefile:634: recipe for target 'temp/ChildWidget.o' failed
make: *** [temp/ChildWidget.o] Error 1

Please advise me, thanks.

zdenop commented 7 years ago

Did you installed leptonica devel package?

kayazinc commented 7 years ago

@zdenop, Thanks, problem solved.