CMake errors
nevillepark opened this issue · 3 comments
nevillepark commented
Hi, I just tried to build from source as per instructions in the README, but got these errors when running cmake
:
-- The following RUNTIME packages have not been found:
* QtQuick-QMLModule, QML module 'QtQuick' is a runtime dependency.
* QtQuick.Controls-QMLModule, QML module 'QtQuick.Controls' is a runtime dependency.
* QtQuick.Dialogs-QMLModule, QML module 'QtQuick.Dialogs' is a runtime dependency.
* org.kde.kcm-QMLModule, QML module 'org.kde.kcm' is a runtime dependency.
* org.kde.kirigami-QMLModule, QML module 'org.kde.kirigami' is a runtime dependency.
-- Configuring done
CMake Error at src/declarative/CMakeLists.txt:26 (add_library):
Target "plasma_wallpaper_dynamicplugin" links to target "Qt5::QuickPrivate"
but the target was not found. Perhaps a find_package() call is missing for
an IMPORTED target, or an ALIAS target is missing?
-- Generating done
CMake Generate step failed. Build files cannot be regenerated correctly.
(As far as I can see, all the QML modules are installed.)
When I run make
, it terminates with this error:
In file included from /home/$USER/git/plasma5-wallpapers-dynamic/src/declarative/dynamicwallpaperextensionplugin.cpp:9:
/home/$USER/git/plasma5-wallpapers-dynamic/src/declarative/dynamicwallpaperimageprovider.h:9:10: fatal error: QtQuick/private/qquickpixmapcache_p.h: No such file or directory
9 | #include <QtQuick/private/qquickpixmapcache_p.h> // TODO: Use public API in Qt 6
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [src/declarative/CMakeFiles/plasma_wallpaper_dynamicplugin.dir/build.make:146: src/declarative/CMakeFiles/plasma_wallpaper_dynamicplugin.dir/dynamicwallpaperextensionplugin.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:577: src/declarative/CMakeFiles/plasma_wallpaper_dynamicplugin.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
I'm running KDE Neon 5.24.
- KDE Plasma Version: 5.24.4
- KDE Frameworks Version: 5.92.0
- QT Version: 5.15.3
- Kernel Version: 5.13.0-39-generic
- Graphics Platform: X11
Let me know if there's any more info that would be useful.
zzag commented
It looks like you need to install qtdeclarative5-private-dev
nevillepark commented
zzag commented
Thanks, I added qtbase5-private-dev to README too