zzag / plasma5-wallpapers-dynamic

Dynamic wallpaper plugin for KDE Plasma
332 stars 18 forks source link

CMake errors #98

Closed nevillepark closed 2 years ago

nevillepark commented 2 years ago

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.

Let me know if there's any more info that would be useful.

zzag commented 2 years ago

It looks like you need to install qtdeclarative5-private-dev

nevillepark commented 2 years ago

Thanks! It turns out I also needed to install qtbase5-private-dev as well as per posts here and here.

zzag commented 2 years ago

Thanks, I added qtbase5-private-dev to README too