mapbox / mapbox-gl-native

Interactive, thoroughly customizable maps in native Android, iOS, macOS, Node.js, and Qt applications, powered by vector tiles and OpenGL
https://mapbox.com/mobile
Other
4.37k stars 1.33k forks source link

`cmake -DMBGL_WITH_QT=ON` fails with `_populate_Gui_plugin_properties Macro invoked with incorrect arguments for macro named: _populate_Gui_plugin_properties`. #16671

Open dreirund opened 1 year ago

dreirund commented 1 year ago

When I want to build and pass -DMBGL_WITH_QT=ON to cmake, cmake fails with

CMake Error at /usr/lib/cmake/Qt5Gui/Qt5Gui_QPbfPlugin.cmake:4 (_populate_Gui_plugin_properties):
  _populate_Gui_plugin_properties Macro invoked with incorrect arguments for
  macro named: _populate_Gui_plugin_properties
Call Stack (most recent call first):
  /usr/lib/cmake/Qt5Gui/Qt5GuiConfig.cmake:240 (include)
  platform/qt/qt.cmake:3 (find_package)
  CMakeLists.txt:1037 (include)

When I pass -DMBGL_WITH_QT=OFF, cmake succeeds.

Complete cmake call:

cmake \
  -DBUILD_TESTING=OFF\
  -DCMAKE_BUILD_TYPE=Release \
  -DCMAKE_INSTALL_PREFIX='/usr' \
  -DCMAKE_INSTALL_LIBDIR=lib \
  -DMBGL_WITH_CORE_ONLY=OFF \
  -DMBGL_WITH_COVERAGE=OFF \
  -DMBGL_WITH_OPENGL=ON \
  -DMBGL_WITH_QT=ON \
  -DMBGL_WITH_RTTI=ON \
  -DMBGL_WITH_SANITIZER=OFF \
  -DMBGL_WITH_WERROR=OFF \
  .

Platform: Artix GNU/Linux (rolling release), gcc version: 13.1.1, cmake version: 3.26.4.
Mapbox SDK version: git describe --tags shows maps-v1.6.0-18-gf9b8ddb804.

Regards!