Open maciek252 opened 5 days ago
This sounds like the qt positioning cmake config is missing a dependency to poly2tri (likely somewhere in vcpkg_installed/x64-linux/share/Qt6Positioning
).
Possibly this could be worked around (in QField) by patching this dependency in cmake/qgis-cmake-wrapper.cmake
, we already do some "magic" and make QGIS::Core
depend on poly2tri::poly2tri
, I guess we could do the same for Qt::Positioning
.
A proper fix would need to be implemented in https://github.com/microsoft/vcpkg/tree/master/ports/qtpositioning (or directly work upstream with qt to allow building with an external poly2tri library).
Describe the issue
I wanted to experiment with building in QtCreator under linux. All went fine until the linking stage, where there is an error with missing references.
Reproduction steps
Steps to reproduce the behavior:
/usr/bin/ld: /home/maciek/p/QField2/QField/build-x64-linux/vcpkg_installed/x64-linux/lib/libQt6Positioning.so.6.6.3: undefined reference to symbol '_ZN3p2t3CDT11TriangulateEv' /usr/bin/ld: /home/maciek/p/QField2/QField/build-x64-linux/vcpkg_installed/x64-linux/lib/libpoly2tri.so: error adding symbols: DSO missing from command line
Expected behavior
It should produce the executable without this error.
QField (please complete the following information)