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

Clarity on dependencies #1

Open
iiztp opened this issue Dec 10, 2024 · 6 comments
Open

Clarity on dependencies #1

iiztp opened this issue Dec 10, 2024 · 6 comments

Comments

@iiztp
Copy link

iiztp commented Dec 10, 2024

Hi,

I am a Debian user (sadly) and it seems difficult to compile this project.
When running Hyprland it tells me that I'm missing this runtime dependency, and, when trying to compile and after installing quite a lot of qt6 dependencies it still misses something.

A line showing how to compile might not be too much also (specifically when it's quite the same as on other projects and it takes two lines in a readme).

Here is the repeated 5000 warning I get :

CMake Warning at /usr/lib/x86_64-linux-gnu/cmake/Qt6Qml/Qt6QmlMacros.cmake:3459 (message):
  The qml plugin 'qquicklayoutsplugin' is a dependency of
  'hyprland-update-screen', but the link target it defines
  (Qt6::qquicklayoutsplugin) does not exist in the current scope.  The plugin
  will not be linked.
Call Stack (most recent call first):
  /usr/lib/x86_64-linux-gnu/cmake/Qt6Core/Qt6CoreMacros.cmake:678 (qt6_import_qml_plugins)
  /usr/lib/x86_64-linux-gnu/cmake/Qt6Core/Qt6CoreMacros.cmake:678 (cmake_language)
  /usr/lib/x86_64-linux-gnu/cmake/Qt6Core/Qt6CoreMacros.cmake:774 (_qt_internal_finalize_executable)
  /usr/lib/x86_64-linux-gnu/cmake/Qt6Core/Qt6CoreMacros.cmake:743:EVAL:1 (qt6_finalize_target)
  utils/update-screen/CMakeLists.txt:DEFERRED

Before that, I was missing "qt6-base-dev", "qt6-declarative-dev", "qt6-declarative-private-dev" and "qt6-wayland-dev" but this was fixed and kind of told in the Readme that we had qt6 and qt6-qml dependencies (which are by the way installed, as well as the KDE dep).

Thanks,

@vaxerski
Copy link
Member

I don't know how the deps work on debian but in general you just need qt6 and qt6-qml:

hyprutils
kdePackages.kirigami-addons
qt6.qtbase
qt6.qtsvg
qt6.qtwayland

idk why the kirigami stuff is there @fufexan

@cpiber
Copy link

cpiber commented Dec 10, 2024

I faced similar problems trying to build for Ubuntu, and have the deb files here: cpiber/hyprland-ppa@7f0c30f

It seems that Ubuntu/Debian split the packages very aggressively. I also had to patch a few things, maybe due to different defaults (and slightly outdated qt6.4)

@iiztp
Copy link
Author

iiztp commented Dec 11, 2024

I don't know how the deps work on debian but in general you just need qt6 and qt6-qml:

Hi there,

I've listed the dependencies needed at the bottom of the issue, it doesn't seem like it only needs these...
The problem now is the gajillion warnings I get when compiling (as stated), it works though, I don't have the runtime dependency warning / error anymore, the thing is I don't really know if I still miss anything.

@iiztp
Copy link
Author

iiztp commented Dec 11, 2024

I faced similar problems trying to build for Ubuntu, and have the deb files here: cpiber/hyprland-ppa@7f0c30f

Wow you have a ppa for hyprland, I'll look into that.

It seems that Ubuntu/Debian split the packages very aggressively. I also had to patch a few things, maybe due to different defaults (and slightly outdated qt6.4)

Yes that's the problem there ahah, and their packages are not even explicit...

@fufexan
Copy link
Member

fufexan commented Dec 11, 2024

I don't know how the deps work on debian but in general you just need qt6 and qt6-qml:

hyprutils
kdePackages.kirigami-addons
qt6.qtbase
qt6.qtsvg
qt6.qtwayland

idk why the kirigami stuff is there @fufexan

IIRC some component from it was used but it's no longer the case so I removed it.

@FrostByghte
Copy link

Just in case someone needs this, I hope this will help. I'm running Debian sid and here is what I installed to get this working for me:

Core Qt6:

qt6-base-dev
qt6-declarative-dev
qt6-declarative-private-dev

Wayland-specific:

qt6-wayland-dev
qt6-wayland-private-dev
qml6-module-qtwayland-compositor

QML/Quick Modules:

qml6-module-qtcore
qml6-module-qtqml-workerscript
qml6-module-qtqml-models
qml6-module-qtquick
qml6-module-qtquick-controls
qml6-module-qtquick-layouts
qml6-module-qtquick-templates
qml6-module-qtquick-window
libqt6quick6

I may have caught some extra fluff in there, but it got things going on my systems.

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

5 participants