[QGIS-Developer] Not able to build QGIS with 3D on Ubuntu 16.04

matteo matteo.ghetta at gmail.com
Wed Jan 24 01:53:57 PST 2018


Hi all,

I'm trying to build QGIS with 3D support on a Mint 18 (so Ubuntu 16.04)
machine, but, even if I've followed exactly Martin's guide [0] I'm
facing many errors.

I successfully compiled in /opt all the required Qt libraries, the
problems arise when setting up ccmake and cmake

* mkdir build-3d-qgis
* ccmake ../QGIS
* then just configuring as usual without touching anything

* when setting up the cmake options as written in the guide

 CMAKE_PREFIX_PATH=/opt/qt59/lib/cmake cmake ../QGIS \
   -DCMAKE_BUILD_TYPE=Debug \
   -DCMAKE_INSTALL_PREFIX=${HOME}/apps \
   -DWITH_3D=TRUE \
   -DWITH_QTWEBKIT=FALSE \
   -DENABLE_TESTS=FALSE \
   -DWITH_QWTPOLAR=FALSE \
   -DWITH_BINDINGS=FALSE \
   -DQWT_LIBRARY=/opt/qt59_libs/qwt-6.1.3/lib/libqwt.so \
   -DQWT_INCLUDE_DIR=/opt/qt59_libs/qwt-6.1.3/include \
   -DQSCINTILLA_LIBRARY=/opt/qt59/lib/libqscintilla2_qt5.so \
   -DQSCINTILLA_INCLUDE_DIR=/opt/qt59/include


cmake tells me:

-- Found Qt version: 5.5.1


so it does not find the correct Qt version and then a lot of warnings, like:


Cannot generate a safe runtime search path for target qgis_gui because
  files in some directories may conflict with libraries in implicit
  directories:

    runtime library [libQt5Xml.so.5] in /usr/lib/x86_64-linux-gnu may be
hidden by files in:
      /opt/qt59/lib

.... and many many others ....


I tried to compile anyway, but of course at around 40% I get an error
and the compilation stops..


Are there some Ubuntu 16.04 users that have successfully compiled QGIS
that can give some hints? It would be awesome to test the 3D framework..


Thanks for any suggestion

Cheers

Matteo


[0] https://www.lutraconsulting.co.uk/blog/2017/08/06/qgis3d-build/


More information about the QGIS-Developer mailing list