Discussion:
[QGIS-Developer] Building master with 3D on Debian testing/buster?
Richard Duivenvoorde
2018-10-03 13:31:22 UTC
Permalink
After some time (Debian removed some Qt 3D related package, which should
be restored now)

There is notion of this (and Juergen :-) ) in:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=895386
and
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=895507


But now I try to rebuild QGIS with 3D again.

For what I know I installed all 3D related Qt packages, but I still get:

CMake Error at CMakeLists.txt:336 (FIND_PACKAGE):
By not providing "FindQt53DExtras.cmake" in CMAKE_MODULE_PATH this
project
has asked CMake to find a package configuration file provided by
"Qt53DExtras", but CMake did not find one.

Could not find a package configuration file provided by "Qt53DExtras"
with
any of the following names:

Qt53DExtrasConfig.cmake
qt53dextras-config.cmake

Add the installation prefix of "Qt53DExtras" to CMAKE_PREFIX_PATH or set
"Qt53DExtras_DIR" to a directory containing one of the above files. If
"Qt53DExtras" provides a separate development package or SDK, be sure it
has been installed.

Looking into
https://packages.debian.org/buster/amd64/qt3d5-dev/filelist
Qt53DExtrasConfig.cmake
should be installed, but I cannot find it on my disk.

I do find Qt53DExtrasConfig.cmake in the repo:

qgis/external/qt3dextra-headers/cmake/Qt53DExtras/Qt53DExtrasConfig.cmake

But setting Qt53DExtras_DIR to there, I get:

CMake Error at
external/qt3dextra-headers/cmake/Qt53DExtras/Qt53DExtrasConfig.cmake:3
(set_target_properties):
set_target_properties called with incorrect number of arguments.
Call Stack (most recent call first):
CMakeLists.txt:336 (FIND_PACKAGE)

Anybody a clue?
Or able to build 3D on Debian Testing?

Regards & thanks for any hint,

Richard Duivenvoorde
Borys Jurgiel
2018-10-03 14:35:43 UTC
Permalink
Hi Richard,

I can't recall details except the fact I've finally made it working by running
cmake with these parameters:

cmake ..
-DCMAKE_PREFIX_PATH=/blahblahblah/qgis/external/qt3dextra-headers/cmake
-DQT5_3DEXTRA_INCLUDE_DIR=/blahblahblah/qgis/external/qt3dextra-headers
-DQT5_3DEXTRA_LIBRARY=/usr/lib/x86_64-linux-gnu/libQt53DExtras.so

Of course you only need it to run it once. Note you need the libQt53DExtras.so
installed, only headers go from QGIS.

Regards,
Borys
Post by Richard Duivenvoorde
qgis/external/qt3dextra-headers/cmake/Qt53DExtras/Qt53DExtrasConfig.cmake
CMake Error at
external/qt3dextra-headers/cmake/Qt53DExtras/Qt53DExtrasConfig.cmake:3
set_target_properties called with incorrect number of arguments.
CMakeLists.txt:336 (FIND_PACKAGE)
Anybody a clue?
Or able to build 3D on Debian Testing?
Loading...