manisandro / gImageReader

A Gtk/Qt front-end to tesseract-ocr.
GNU General Public License v3.0
1.57k stars 187 forks source link

Compiling latest version in ubuntu #670

Open dacorsa opened 3 months ago

dacorsa commented 3 months ago

Hi all, i receive this error while compiling latest code of github on ubuntu:


[ 32%] Generating bn.gmo
[ 64%] Built target potfiles_1
[ 64%] Generating data/gimagereader-qt5.desktop
Merging translations into /app/gImageReader/build/data/gimagereader-qt5.desktop.
[ 64%] Built target desktop_file
[ 64%] Built target gimagereader_autogen_timestamp_deps
[ 65%] Automatic MOC for target gimagereader
[ 65%] Built target gimagereader_autogen
[ 66%] Generating ui_SearchReplaceFrame.h
-- Gettextizing /app/gImageReader/build/ui_SearchReplaceFrame.h
[ 66%] Generating qrc_gimagereader.cpp
[ 67%] Generating ui_AboutDialog.h
-- Gettextizing /app/gImageReader/build/ui_AboutDialog.h
[ 68%] Generating ui_BatchModeDialog.h
-- Gettextizing /app/gImageReader/build/ui_BatchModeDialog.h
[ 68%] Generating ui_CharacterListDialog.h
-- Gettextizing /app/gImageReader/build/ui_CharacterListDialog.h
[ 69%] Generating ui_ConfigDialog.h
-- Gettextizing /app/gImageReader/build/ui_ConfigDialog.h
[ 70%] Generating ui_CrashHandler.h
-- Gettextizing /app/gImageReader/build/ui_CrashHandler.h
[ 70%] Generating ui_HOCRBatchExportDialog.h
-- Gettextizing /app/gImageReader/build/ui_HOCRBatchExportDialog.h
[ 71%] Generating ui_MainWindow.h
-- Gettextizing /app/gImageReader/build/ui_MainWindow.h
[ 72%] Generating ui_PageRangeDialog.h
-- Gettextizing /app/gImageReader/build/ui_PageRangeDialog.h
[ 72%] Generating ui_PdfExportDialog.h
-- Gettextizing /app/gImageReader/build/ui_PdfExportDialog.h
[ 73%] Generating ui_PdfExportWidget.h
-- Gettextizing /app/gImageReader/build/ui_PdfExportWidget.h
[ 74%] Building CXX object CMakeFiles/gimagereader.dir/gimagereader_autogen/mocs_compilation.cpp.o
In file included from /app/gImageReader/build/gimagereader_autogen/Y3SAW5HENG/moc_RecognitionMenu.cpp:10,
                 from /app/gImageReader/build/gimagereader_autogen/mocs_compilation.cpp:12:
/app/gImageReader/build/gimagereader_autogen/Y3SAW5HENG/../../../qt/src/RecognitionMenu.hh:25:10: fatal error: tesseract/baseapi.h: File o directory non esistente
   25 | #include <tesseract/baseapi.h>
      |          ^~~~~~~~~~~~~~~~~~~~~
compilation terminated.
gmake[2]: *** [CMakeFiles/gimagereader.dir/build.make:188: CMakeFiles/gimagereader.dir/gimagereader_autogen/mocs_compilation.cpp.o] Errore 1
gmake[1]: *** [CMakeFiles/Makefile2:170: CMakeFiles/gimagereader.dir/all] Errore 2
gmake: *** [Makefile:136: all] Errore 2

the command i run are: cd /app/gImageReader/ sudo apt install cmake intltool libdjvulibre-dev libgtkspellmm-3.0-dev libgtkmm-3.0-dev libgtksourceviewmm-3.0-dev libcairomm-1.0-dev libpoppler-glib-dev libtesseract-dev libsane-dev qtbase5-dev qttools5-dev qttools5-dev-tools libqtspell-qt5-dev libpoppler-qt5-dev libjson-glib-dev libxml++2.6-dev libpodofo-dev libquazip5-dev libzip-dev python3-gi uuid-dev libquazip1-qt6-1 libpoppler-qt6-3 libpoppler-qt6-dev libqtspell-qt5-1 libqtspell-qt5-dev sudo mkdir /app/gImageReader/build cd /app/gImageReader/build cmake -DINTERFACE_TYPE=qt5 .. cmake --build .

manisandro commented 3 months ago

Is libtesseract-dev installed?

dacorsa commented 3 months ago

no, i installed but now ask for :+1: /app/gImageReader/qt/src/hocr/HOCRPdfExporter.cc:33:10: fatal error: podofo.h: File o directory non esistente 33 | #include

try to install libpodofo-dev

dacorsa commented 3 months ago

Now works but when i click on Manage language i receive this: immagine Why? thanks you're a gentleman

manisandro commented 3 months ago

Well the text should say it all?

dacorsa commented 3 months ago

Excuse me i don't understand what means...what package i have to install with the package manager? thanks

dacorsa commented 3 months ago

i installed all package sudo apt install tesseract-ocr* but i have the same advise, why?

dacorsa commented 3 months ago

Another question: why application not start in italian? i see the locale file in: /usr/local/share/locale/it/LC_MESSAGES/gimagereader.mo how to load at startup? thanks