-
-
Notifications
You must be signed in to change notification settings - Fork 59
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
Building Hyprlock States opengl Dependency Not Met, But Library is Found Before Check. #509
Comments
This issue also occurs for hyprpaper |
You are missing libOpenGL.so and you even try to patch it to use libGL.so. Why doesn't alpine package libglvnd? |
I am not a maintainer of Alpine, so I don't know. I did not patch anything, the build pipeline may have. I can ask though, I was looking at that dependency the other day, but opengl library selection should definitely not be required to use libglvnd lol. |
also: The CMakeLists file references GL, not OpenGL like Aquamarine. |
I just saw that one. And your cmake log shows
that might be true, idk |
That was from a previous attempt because someone suggested trying a patch. It should not be necessary because of the line I mentioned above for Open::GL and EGL. I made this issue in case there was a tweak that could be done in cmakelists file. I am only trying to test this out, not skin of my back if I can't use it. |
This patch makes it build fine after adding diff --git a/CMakeLists.txt b/CMakeLists.txt
index c2dfd6c..5fa29d3 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -36,7 +36,7 @@ message(STATUS "Checking deps...")
find_package(Threads REQUIRED)
find_package(PkgConfig REQUIRED)
-find_package(OpenGL REQUIRED)
+find_package(OpenGL REQUIRED COMPONENTS "GLES2")
pkg_check_modules(
deps
REQUIRED
@@ -46,7 +46,6 @@ pkg_check_modules(
wayland-egl
hyprlang>=0.4.0
egl
- opengl
xkbcommon
libjpeg
libwebp @vaxerski Do we want to include this patch in hyprlock? |
@PaideiaDilemma, thank you. I already have linux-pam, This patch will likely work for hyprpaper and other hypr ecosystem packages requiring opengl (except aquamarine, I think that uses legacy opengl lib). This is not just related to hyprlock. Why would you include a patch at your end instead of just updating cmakelists? I get it is temporary fix, but will you update cmakelists for future builds? |
Obviously that is what i mean with include the patch in hyprlock. |
This comes from aquamarine basically.
Idk hyprpaper does not include a |
The find package line doesn't seem to be the problem. It finds the package. The I can verify that line is there, maybe unrelated. |
For hyprpaper seems to be a different issue I will dig into later, maybe related to https://github.com/hyprwm/hyprpaper/blob/main/CMakeLists.txt#L124. i have been more focussed on hypridle to learn packaging in alpine. |
Update: Patch confirmed. Feel free to close issue whenever. |
what? then create it yourself, it is clearly visible what I changed.
Did you test it? without it I get
That as well, but I consider this to be a alpine problem. Works on every other system i tried, including Freebsd. Even tough technically we probably don't need to include opengl in pkg_check_modules. |
Was an incorrect statement on my part, the patch appears to work for x86_84 and riscv at least. Not so much other archs. I don't really care so much, I am not a hypr or alpine maintainer. Just wanted to see if hypr ecosystem lives up to hype which means getting the remaining packages in that are not there yet so I can test. Alpine is one of the only minimalist distros where you don't get a bunch of crap you don't need that I have tested. PostmarketOS is based on Alpine. I imagine Alpine may be a nice distro for hypr to consider testing against in the future. The minimalism goes a long way. |
None of the maintainers use Alpine, thus no alpine testing. If there's anyone maintaining an Alpine build, they can report issues here. As for the CMakeLists.txt, we could do the same thing Hyprland does https://github.com/hyprwm/Hyprland/blob/main/CMakeLists.txt#L99. |
As a Note: This patch seemed to do it for hyprpaper as a riff off of above.
|
Regression?
Not Sure
Hyprlock Info and Version
n/a
Compositor Info and Version
n/a
Description
While trying to build for Alpine Linux, I run into an error in CMakeLists.txt where it states it does not pass dependency check from https://github.com/hyprwm/hyprlock/blob/main/CMakeLists.txt#L41, even though the Library is found prior.
How to reproduce
See: https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/73090/diffs
Crash reports, logs, images, videos
No response
The text was updated successfully, but these errors were encountered: