git clone git://subsurface-divelog.org/subsurface.git
That's the error: "can't check out the Subsurface-testing branch of libdivecomputer -- giving up" (ln 115 of my build.sh copy)
Thanks in advance.
mkdir ~/src
cd ~/src
git clone -b v4.4.2 git://subsurface-divelog.org/subsurface
./subsurface/scripts/build.sh
sudo apt-get install qt5-qmake
cd /usr/bin
sudo ln -s ../lib/x86_64-linux-gnu/qt5/bin/qmake qmake-qt5 #because still not found
cd -d src/marble-source/build/CMakeFiles/CMakeOutput.log in attach. The return code with echo $? is 2.
[...]
Your branch is up-to-date with 'origin/Subsurface-4.4'.
-- The C compiler identification is GNU 4.8.4
-- The CXX compiler identification is GNU 4.8.4
-- 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
-- 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
CMake Error at CMakeLists.txt:68 (find_package):
By not providing "FindQt5Core.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "Qt5Core", but
CMake did not find one.
Could not find a package configuration file provided by "Qt5Core" with any
of the following names:
Qt5CoreConfig.cmake
qt5core-config.cmake
Add the installation prefix of "Qt5Core" to CMAKE_PREFIX_PATH or set
"Qt5Core_DIR" to a directory containing one of the above files. If
"Qt5Core" provides a separate development package or SDK, be sure it has
been installed.
-- Configuring incomplete, errors occurred!
See also "/home/gano/src/marble-source/build/CMakeFiles/CMakeOutput.log".
./subsurface/scripts/build.sh: riga 95: cd: src/lib/marble: File o directory non esistente
[...]You only installed qt5-qmake but you need to install qt5-dev packages.
This is a pain in Debian, all packages are split in two versions, dev and normal. Dev is necessary to build stuff, please install the dev variant of qt5
--
You received this message because you are subscribed to the Google Groups "Subsurface Divelog" group.
To unsubscribe from this group and stop receiving emails from it, send an email to subsurface-dive...@googlegroups.com.
To post to this group, send email to subsurfac...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/subsurface-divelog/6118059d-24e6-4fcf-ac1b-adeaff274628%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
[0.336960] ERROR: Unexpected packet length. [in divesystem_idive.c:323 (divesystem_idive_transfer)]#define SZ_HEADER 0x33# git clone -b Subsurface-4.4 git://subsurface-divelog.org/libdc libdivecomputer
git clone git://git.libdivecomputer.org/libdivecomputer.gitgano@pc-jolly:~/src$ ./subsurface/scripts/build.sh
[...]
[ 95%] Building CXX object CMakeFiles/subsurface_interface.dir/qt-ui/printdialog.cpp.o
[ 95%] Building CXX object CMakeFiles/subsurface_interface.dir/qt-ui/printoptions.cpp.o
/home/gano/src/subsurface/printer.cpp: In member function ‘void Printer::print()’:
/home/gano/src/subsurface/printer.cpp:147:33: error: ‘class QPrinter’ has no member named ‘pageLayout’
pageSize.setHeight(printerPtr->pageLayout().paintRect(QPageLayout::Inch).height() * dpi);
^
/home/gano/src/subsurface/printer.cpp:147:56: error: ‘QPageLayout’ has not been declared
pageSize.setHeight(printerPtr->pageLayout().paintRect(QPageLayout::Inch).height() * dpi);
^
/home/gano/src/subsurface/printer.cpp:148:32: error: ‘class QPrinter’ has no member named ‘pageLayout’
pageSize.setWidth(printerPtr->pageLayout().paintRect(QPageLayout::Inch).width() * dpi);
^
/home/gano/src/subsurface/printer.cpp:148:55: error: ‘QPageLayout’ has not been declared
pageSize.setWidth(printerPtr->pageLayout().paintRect(QPageLayout::Inch).width() * dpi);
^
make[2]: *** [CMakeFiles/subsurface_interface.dir/printer.cpp.o] Errore 1
make[2]: *** Attesa per i processi non terminati....
make[1]: *** [CMakeFiles/subsurface_interface.dir/all] Errore 2
make: *** [all] Errore 2
[ 0%] Built target documentationLink
[ 0%] Built target documentation
[ 0%] Built target link_marble_data
[ 0%] Built target printing_templatesLink
[ 0%] Automoc for target subsurface
[ 0%] Built target subsurface_automoc
[ 0%] Automoc for target subsurface_statistics
AUTOMOC: warning: /home/gano/src/subsurface/qt-ui/statistics/yearstatistics.cpp: file is empty
AUTOMOC: warning: /home/gano/src/subsurface/qt-ui/statistics/statisticsbar.cpp: file is empty
AUTOMOC: warning: /home/gano/src/subsurface/qt-ui/statistics/monthstatistics.cpp: file is empty
[ 0%] Built target subsurface_statistics_automoc
[ 0%] Automoc for target subsurface_generated_ui
[ 0%] Built target subsurface_generated_ui_automoc
[ 0%] Built target version
[ 16%] Built target subsurface_generated_ui
[ 19%] Built target subsurface_statistics
[ 20%] Automoc for target subsurface_interface
[ 20%] Built target subsurface_interface_automoc
[ 22%] Building CXX object CMakeFiles/subsurface_interface.dir/printer.cpp.o
/home/gano/src/subsurface/printer.cpp: In member function ‘void Printer::print()’:
/home/gano/src/subsurface/printer.cpp:147:33: error: ‘class QPrinter’ has no member named ‘pageLayout’
pageSize.setHeight(printerPtr->pageLayout().paintRect(QPageLayout::Inch).height() * dpi);
^
/home/gano/src/subsurface/printer.cpp:147:56: error: ‘QPageLayout’ has not been declared
pageSize.setHeight(printerPtr->pageLayout().paintRect(QPageLayout::Inch).height() * dpi);
^
/home/gano/src/subsurface/printer.cpp:148:32: error: ‘class QPrinter’ has no member named ‘pageLayout’
pageSize.setWidth(printerPtr->pageLayout().paintRect(QPageLayout::Inch).width() * dpi);
^
/home/gano/src/subsurface/printer.cpp:148:55: error: ‘QPageLayout’ has not been declared
pageSize.setWidth(printerPtr->pageLayout().paintRect(QPageLayout::Inch).width() * dpi);
^
make[2]: *** [CMakeFiles/subsurface_interface.dir/printer.cpp.o] Errore 1
make[1]: *** [CMakeFiles/subsurface_interface.dir/all] Errore 2
make: *** [all] Errore 2How can I check this?
How can I check this?
apt-show-versions qt5-dev--
You received this message because you are subscribed to the Google Groups "Subsurface Divelog" group.
To unsubscribe from this group and stop receiving emails from it, send an email to subsurface-dive...@googlegroups.com.
To post to this group, send email to subsurfac...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/subsurface-divelog/CAFENtQKX20%2Bby7kjx5TvmAiwaY%3D4mW5NWyBvRDXaQAs_SEH2Ww%40mail.gmail.com.
To unsubscribe from this group and stop receiving emails from it, send an email to subsurface-divelog+unsub...@googlegroups.com.
To post to this group, send email to subsurfac...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/subsurface-divelog/CAFENtQKX20%2Bby7kjx5TvmAiwaY%3D4mW5NWyBvRDXaQAs_SEH2Ww%40mail.gmail.com.
gano@pc-jolly:~$ apt-show-versions qt5-default
qt5-default:amd64/trusty-security 5.2.1+dfsg-1ubuntu14.3 uptodateTo unsubscribe from this group and stop receiving emails from it, send an email to subsurface-dive...@googlegroups.com.
To post to this group, send email to subsurfac...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/subsurface-divelog/CAFENtQKX20%2Bby7kjx5TvmAiwaY%3D4mW5NWyBvRDXaQAs_SEH2Ww%40mail.gmail.com.
Excuse me. I have answered directly to the email from my phone.
Now I'm back to pc. I'm fear that I miss again the reply point... In this case, tell me please. Sorry...
Anyway, I have installed apt-show-versions package and it told me that in this pc I don't have qt5-dev package (as in your previous answer).
I think that in my case the package is qt5-default, but maybe I'm wrong. So:
gano@pc-jolly:~$ apt-show-versions qt5-default
qt5-default:amd64/trusty-security 5.2.1+dfsg-1ubuntu14.3 uptodate
To unsubscribe from this group and stop receiving emails from it, send an email to subsurface-divelog+unsub...@googlegroups.com.
To post to this group, send email to subsurfac...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/subsurface-divelog/CAFENtQKX20%2Bby7kjx5TvmAiwaY%3D4mW5NWyBvRDXaQAs_SEH2Ww%40mail.gmail.com.
Excuse me. I have answered directly to the email from my phone.
Now I'm back to pc. I'm fear that I miss again the reply point... In this case, tell me please. Sorry...
Anyway, I have installed apt-show-versions package and it told me that in this pc I don't have qt5-dev package (as in your previous answer).
I think that in my case the package is qt5-default, but maybe I'm wrong. So:
gano@pc-jolly:~$ apt-show-versions qt5-default
qt5-default:amd64/trusty-security 5.2.1+dfsg-1ubuntu14.3 uptodate
And that's the problem, your Qt5 is too old :(we depend on Qt 5.3, you hae 5.2 (current Qt5 is 5.5 )is it possible to update your Qt5 ?
ldconfig -n ~/src/install-root/lib/
cd ~/src/install-root/lib/
ln -s libgit2.so.0.22.0 libgit2.so.22You can also set the ld_library_path to the directory where the libgit is, it should work.
ldd ~/src/install-root/bin/subsurface | grep found~$ apt-cache search libgit2
libgit2-0
libgit2-dev
~$ dpkg -l libgit2-0
ii ...
~$ dpkg -l libgit2-dev
ii ...
~$ dpkg -L libgit2-dev #for the list of installed file, to find the position for the link
... /usr/lib/x86_64-linux-gnu/ ... #the position
Searched for the right file in install-root:~$ cd ~/src/ ~$ find . -type f -name "libgit2*"
...
./install-root/lib/libgit2.so.0.22.0 #the origin of the links (I knew this, but this if what I've done for the others library)
...
Created the symbolic link:
~$ sudo ln -s /home/gano/src/install-root/lib/libgit2.so.0.22.0 /usr/lib/x86_64-linux-gnu/libgit2.so.22
I don't had the official packages of the other libraries installed in my system, but with ldd ./install-root/bin/subsurface I knew that the most of the libraries were searched in /usr/lib/x86_64-linux-gnu/ and then, after another pair of find:~$ sudo ln -s /home/gano/src/install-root/lib/libGrantlee_Templates.so.5.0.0 /usr/lib/x86_64-linux-gnu/libGrantlee_Templates.so.5 ~$ sudo ln -s /home/gano/src/install-root/lib/libssrfmarblewidget.so.0.21.3 /usr/lib/x86_64-linux-gnu/libssrfmarblewidget.so.21
Test:~$ ./install-root/bin/subsurface
I send it to you in the evening