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

Compiling latest version in ubuntu #670

Open
dacorsa opened this issue Apr 17, 2024 · 7 comments
Open

Compiling latest version in ubuntu #670

dacorsa opened this issue Apr 17, 2024 · 7 comments

Comments

@dacorsa
Copy link

dacorsa commented Apr 17, 2024

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

Is libtesseract-dev installed?

@dacorsa
Copy link
Author

dacorsa commented Apr 17, 2024

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

try to install libpodofo-dev

@dacorsa
Copy link
Author

dacorsa commented Apr 17, 2024

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

@manisandro
Copy link
Owner

Well the text should say it all?

@dacorsa
Copy link
Author

dacorsa commented Apr 17, 2024

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

@dacorsa
Copy link
Author

dacorsa commented Apr 17, 2024

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

@dacorsa
Copy link
Author

dacorsa commented Apr 18, 2024

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

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