Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMake errors #98

Closed
nevillepark opened this issue Apr 12, 2022 · 3 comments
Closed

CMake errors #98

nevillepark opened this issue Apr 12, 2022 · 3 comments

Comments

@nevillepark
Copy link

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
Copy link
Owner

zzag commented Apr 12, 2022

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

@zzag zzag closed this as completed Apr 12, 2022
@nevillepark
Copy link
Author

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

@zzag
Copy link
Owner

zzag commented Apr 13, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants