[QGIS-Developer] Compiling QGIS with 3D failing

Saber Razmjooei saber.razmjooei at lutraconsulting.co.uk
Mon Jul 20 00:32:53 PDT 2020


I had a similar issue, what I did:
- Wiped my build folder
- Recompiled using an extra cmake option (as per Martin's suggestion):
cmake -GNinja -DCMAKE_BUILD_TYPE=Debug -DCMAKE_PREFIX_PATH=/{path to QGIS
Git repo}/external/qt3dextra-headers/cmake/Qt53DExtras
-DQT5_3DEXTRA_INCLUDE_DIR=/{path to QGIS Git
repo}/external/qt3dextra-headers
-DQT5_3DEXTRA_LIBRARY=/usr/lib/x86_64-linux-gnu/libQt53DExtras.so
-DWITH_3D=True -DQt53DExtras_DIR=/{path to QGIS Git
repo}/external/qt3dextra-headers/cmake/Qt53DExtras ..

Note the extra option: -DQt53DExtras_DIR=/{path to QGIS Git
repo}/external/qt3dextra-headers/cmake/Qt53DExtras which is not in
https://github.com/qgis/QGIS/blob/master/INSTALL.md#3-building-on-gnulinux

Kind regards
Saber



On Mon, 20 Jul 2020 at 08:18, matteo <matteo.ghetta at gmail.com> wrote:

> Hi all,
>
> I got an error when compiling QGIS with 3D support on Debian SID:
>
> ......a bunch of similar lines......
>
> /usr/bin/ld: CMakeFiles/python_module_qgis__3d.dir/3d/sip_3dpart5.cpp.o:
> in function `sipQgs3DAlgorithms::sipProtectVirt_loadAlgorithms(bool)':
> sip_3dpart5.cpp:(.text+0x8a98): multiple definition of
> `sipQgs3DAlgorithms::sipProtectVirt_loadAlgorithms(bool)';
>
> CMakeFiles/python_module_qgis__3d.dir/3d/sip_3dpart4.cpp.o:sip_3dpart4.cpp:(.text+0x8ea0):
> first defined here
> /usr/bin/ld:
>
> CMakeFiles/python_module_qgis__3d.dir/3d/sip_3dpart5.cpp.o:(.data.rel.local+0x420):
> multiple definition of `sipTypeDef__3d_Qgs3DAlgorithms';
>
> CMakeFiles/python_module_qgis__3d.dir/3d/sip_3dpart4.cpp.o:(.data.rel.local+0x580):
> first defined here
> collect2: error: ld returned 1 exit status
> make[2]: ***
> [python/CMakeFiles/python_module_qgis__3d.dir/build.make:817:
> output/python/qgis/_3d.so] Error 1
> make[2]: Leaving directory '/home/matteo/dev/qgis-master'
> make[1]: *** [CMakeFiles/Makefile2:5772:
> python/CMakeFiles/python_module_qgis__3d.dir/all] Error 2
> make[1]: *** Waiting for unfinished jobs..
>
>
> if the 3D support is deactivated then all is working fine.
>
> not sure which commit introduced this problem.
>
> Cheers and thanks
>
> Matteo
> _______________________________________________
> QGIS-Developer mailing list
> QGIS-Developer at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer



-- 
Saber Razmjooei
www.lutraconsulting.co.uk
+44 (0)7568 129733
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20200720/74e66da4/attachment.html>


More information about the QGIS-Developer mailing list