melonDS-emu / melonDS

DS emulator, sorta
https://melonds.kuribo64.net
GNU General Public License v3.0
3.14k stars 514 forks source link

Can't find wayland-egl.h on openSUSE #1555

Open KAMiKAZOW opened 1 year ago

KAMiKAZOW commented 1 year ago
[   42s] /home/abuild/rpmbuild/BUILD/melonDS-0.9.5/src/frontend/duckstation/gl/context_egl_wayland.h:3:10: fatal error: wayland-egl.h: No such file or directory
[   42s]     3 | #include <wayland-egl.h>
[   42s]       |          ^~~~~~~~~~~~~~~
[   42s] compilation terminated.

I'm packaging emulators and other software for my personal use for quite some time, so I'm not completely clueless about compiling software. I've included the dependency for wayland-egl's header files, CMake's initial dependency check reported no unmet dependencies, and yet the build system doesn't find it when compiling. It's no problem on Fedora btw (I use the same package definition file for both).

RSDuck commented 1 year ago

hm weird, must be some difference in how the files are layed out between distros. When making these changes I only tested them on Fedora (and Ubuntu on the CI).

KAMiKAZOW commented 1 year ago

Btw, I'm using Open Build Service for compilation, so feel free to take a look: https://build.opensuse.org/package/show/home:KAMiKAZOW:Emulators/melonds

kuunha commented 1 year ago

I don't know if it helps, but I can compile locally on tumbleweed after adding: include_directories("/usr/include/wayland") to the top of the CMakeLists.txt file

yasinbread commented 1 year ago

SUSE's extra-cmake-modules package's FindWayland.cmake sets Wayland_INCLUDE_DIRS, I included it in src/frontend/qt_sdl/CMakeLists.txt and it built for me on Tumbleweed