I would like to contribute to gImageReader/GTK and to this end I first try to compile current master branch code (commit 811132e25bd0b95a91ec23db39a438430461a7d0). I have installed dependencies as per wiki:
However I get this error, while trying to compile. Any ideas? Thank you!
~/gimage/gImageReader/build$ cmake -DINTERFACE_TYPE=gtk ..
-- GSettings schemas will be installed locally.
-- GSettings shemas will be compiled.
-- The C compiler identification is GNU 8.3.0
-- The CXX compiler identification is GNU 8.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- gtk interface will be built
-- Found Gettext: /usr/bin/msgmerge (found version "0.19.8.1")
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29")
-- Checking for module 'tesseract'
-- Found tesseract, version 4.0.0
-- Checking for module 'ddjvuapi'
-- Found ddjvuapi, version 3.5.27
-- Checking for module 'libpodofo'
-- Found libpodofo, version
-- Checking for module 'sane-backends'
-- Found sane-backends, version 1.0.27
-- Checking for module 'enchant-2'
-- No package 'enchant-2' found
-- Checking for module 'enchant'
-- Found enchant, version 1.6.0
-- Checking for module 'gtkmm-3.0'
-- Found gtkmm-3.0, version 3.24.0
-- Checking for module 'gtksourceviewmm-4.0'
-- No package 'gtksourceviewmm-4.0' found
-- Checking for module 'gtksourceviewmm-3.0'
-- Found gtksourceviewmm-3.0, version 3.18.0
-- Checking for module 'gtkspellmm-3.0>=3.0.5'
-- Found gtkspellmm-3.0, version 3.0.5
-- Checking for module 'cairomm-1.0'
-- Found cairomm-1.0, version 1.12.2
-- Checking for module 'pangomm-1.4'
-- Found pangomm-1.4, version 2.42.0
-- Checking for module 'poppler-glib'
-- Found poppler-glib, version 0.71.0
-- Checking for module 'json-glib-1.0'
-- Found json-glib-1.0, version 1.4.4
-- Checking for module 'libxml++-3.0'
-- No package 'libxml++-3.0' found
-- Checking for module 'libxml++-2.6'
-- Found libxml++-2.6, version 2.40.1
-- Checking for module 'libzip'
-- Found libzip, version 1.5.1
-- Found JPEG: /usr/lib/x86_64-linux-gnu/libjpeg.so (found version "62")
-- Checking for module 'fontconfig'
-- Found fontconfig, version 2.13.1
-- Checking for module 'uuid'
-- Found uuid, version 2.33.1
-- GSettings schemas will be installed into /usr/local/share/glib-2.0/schemas/
-- Found OpenMP_C: -fopenmp (found version "4.5")
-- Found OpenMP_CXX: -fopenmp (found version "4.5")
-- Found OpenMP: TRUE (found version "4.5")
-- Configuring done
-- Generating done
-- Build files have been written to: /home/deploy/gimage/gImageReader/build
deploy@octopus:~/gimage/gImageReader/build$ make
Scanning dependencies of target potfiles_1
[ 1%] Generating ar_SA.gmo
[ 2%] Generating cs.gmo
[ 2%] Generating de.gmo
[ 3%] Generating el.gmo
[ 4%] Generating es.gmo
[ 5%] Generating eu.gmo
[ 5%] Generating fr.gmo
[ 6%] Generating it.gmo
[ 7%] Generating nb_NO.gmo
[ 8%] Generating nl.gmo
[ 9%] Generating pl.gmo
[ 9%] Generating pt_BR.gmo
[ 10%] Generating ru.gmo
[ 11%] Generating sl.gmo
[ 12%] Generating sv.gmo
[ 12%] Generating tr.gmo
[ 13%] Generating uk.gmo
[ 14%] Generating zh_CN.gmo
[ 15%] Generating zh_HK.gmo
[ 16%] Generating zh_TW.gmo
[ 16%] Generating pt.gmo
[ 17%] Generating ko.gmo
[ 18%] Generating sr_Cyrl.gmo
[ 19%] Generating sr_CS.gmo
[ 19%] Generating sr_Latn.gmo
[ 20%] Generating ie.gmo
[ 21%] Generating hi.gmo
[ 22%] Generating hu.gmo
[ 23%] Generating ar_AR.gmo
[ 23%] Generating ja.gmo
[ 24%] Generating mk.gmo
[ 25%] Generating sq.gmo
[ 26%] Generating sat.gmo
[ 26%] Generating ia.gmo
[ 27%] Generating hr.gmo
[ 28%] Generating gu.gmo
[ 29%] Generating ca.gmo
[ 29%] Generating ka.gmo
[ 30%] Generating eo.gmo
[ 61%] Built target potfiles_1
Scanning dependencies of target desktop_file
[ 61%] Generating data/gimagereader-gtk.desktop
Merging translations into /home/deploy/gimage/gImageReader/build/data/gimagereader-gtk.desktop.
[ 61%] Built target desktop_file
[ 62%] Generating glib-2.0/schemas/gschemas.compiled
[ 63%] Generating gimagereader.gresource.c
xml-stripblanks preprocessing requested, but XMLLINT is not set, and xmllint is not in PATH
[ 64%] Generating ui_CharacterListDialog.hh
Unable to init server: Could not connect: Connection refused
Unable to init server: Could not connect: Connection refused
Wrote ui_CharacterListDialog.hh
[ 65%] Generating ui_ConfigDialog.hh
Unable to init server: Could not connect: Connection refused
Unable to init server: Could not connect: Connection refused
Wrote ui_ConfigDialog.hh
[ 65%] Generating ui_CrashHandler.hh
Unable to init server: Could not connect: Connection refused
Unable to init server: Could not connect: Connection refused
Wrote ui_CrashHandler.hh
[ 66%] Generating ui_MainWindow.hh
Unable to init server: Could not connect: Connection refused
Unable to init server: Could not connect: Connection refused
Wrote ui_MainWindow.hh
[ 67%] Generating ui_OutputEditorHOCR.hh
Unable to init server: Could not connect: Connection refused
Unable to init server: Could not connect: Connection refused
Wrote ui_OutputEditorHOCR.hh
[ 68%] Generating ui_OutputEditorText.hh
Unable to init server: Could not connect: Connection refused
Unable to init server: Could not connect: Connection refused
Wrote ui_OutputEditorText.hh
[ 68%] Generating ui_PdfExportDialog.hh
Unable to init server: Could not connect: Connection refused
Unable to init server: Could not connect: Connection refused
Wrote ui_PdfExportDialog.hh
[ 69%] Generating ui_SearchReplaceFrame.hh
Unable to init server: Could not connect: Connection refused
Unable to init server: Could not connect: Connection refused
Wrote ui_SearchReplaceFrame.hh
[ 70%] Generating ui_SelectionMenu.hh
Unable to init server: Could not connect: Connection refused
Unable to init server: Could not connect: Connection refused
Wrote ui_SelectionMenu.hh
[ 71%] Generating ui_SubstitutionsManager.hh
Unable to init server: Could not connect: Connection refused
Unable to init server: Could not connect: Connection refused
Wrote ui_SubstitutionsManager.hh
[ 72%] Generating ui_TessdataManager.hh
Unable to init server: Could not connect: Connection refused
Unable to init server: Could not connect: Connection refused
Wrote ui_TessdataManager.hh
[ 72%] Generating ui_appmenu.hh
Unable to init server: Could not connect: Connection refused
Unable to init server: Could not connect: Connection refused
Wrote ui_appmenu.hh
Scanning dependencies of target gimagereader
[ 73%] Building CXX object CMakeFiles/gimagereader.dir/common/CCITTFax4Encoder.cc.o
[ 74%] Building CXX object CMakeFiles/gimagereader.dir/common/PaperSize.cc.o
[ 74%] Building CXX object CMakeFiles/gimagereader.dir/gtk/src/Acquirer.cc.o
In file included from /home/deploy/gimage/gImageReader/gtk/src/Acquirer.cc:24:
/home/deploy/gimage/gImageReader/gtk/src/Utils.hh:69:51: error: ‘set’ in namespace ‘std’ does not name a template type
void list_dir(const std::string& path, const std::set<std::string>& filters, std::vector<Glib::RefPtr<Gio::File>>& output);
^~~
/home/deploy/gimage/gImageReader/gtk/src/Utils.hh:69:46: note: ‘std::set’ is defined in header ‘<set>’; did you forget to ‘#include <set>’?
/home/deploy/gimage/gImageReader/gtk/src/Utils.hh:27:1:
+#include <set>
#include <type_traits>
/home/deploy/gimage/gImageReader/gtk/src/Utils.hh:69:46:
void list_dir(const std::string& path, const std::set<std::string>& filters, std::vector<Glib::RefPtr<Gio::File>>& output);
^~~
/home/deploy/gimage/gImageReader/gtk/src/Utils.hh:69:54: error: expected ‘,’ or ‘...’ before ‘<’ token
void list_dir(const std::string& path, const std::set<std::string>& filters, std::vector<Glib::RefPtr<Gio::File>>& output);
^
make[2]: *** [CMakeFiles/gimagereader.dir/build.make:157: CMakeFiles/gimagereader.dir/gtk/src/Acquirer.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:179: CMakeFiles/gimagereader.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
Hi,
I would like to contribute to gImageReader/GTK and to this end I first try to compile current master branch code (commit 811132e25bd0b95a91ec23db39a438430461a7d0). I have installed dependencies as per wiki:
However I get this error, while trying to compile. Any ideas? Thank you!