-
-
Notifications
You must be signed in to change notification settings - Fork 37
Description
Describe the bug
Installs to ${PREFIX}/plugins/ instead of ${PREFIX}/lib/plugins, so the plugin is not found by default.
The same happens with the qml module, which lands in ${PREFIX}/qml instead of ${PREFIX}/lib/qml.
I tried to look for a simple fix for this, but to do this properly one apparently needs to query qtpaths.
If it is okay for this project, I can provide the necessary changes to use extra-cmake-modules, which provides a module for detecting these paths.
To Reproduce
Build and install project
Expected behavior
Installs to directories searched by Qt, for example ${PREFIX}/lib/plugins and ${PREFIX}/qml.
Platform information (please complete the following information):
- OS: Linux
- Qt version: 6.10
- Version 181f28b
Additional context
I am considering using this library in multiple KDE projects, where we need it to install correctly in the directory structure used on Linux distributions and Flatpak.
For flatpak, I am currently using the following post-install commands to correct the directory structure:
mv /app/plugins/ /app/lib/
mv /app/qml/* /app/lib/qml/
sed -i 's,/plugins/,/lib/plugins/,g' /app/lib/cmake/QMapLibre/*.cmake
sed -i 's,/qml/,/lib/qml/,g' /app/lib/cmake/QMapLibre/*.cmakeMotivational screenshots
KDE Itinerary with the MapLibre QtLocation plugin.
