AlynxZhou / showmethekey

Show keys you typed on screen.
https://showmethekey.alynx.one/
Apache License 2.0
306 stars 27 forks source link

ERROR: Dependency "libevdev" not found, tried pkgconfig and cmake #13

Closed azzamsa closed 1 year ago

azzamsa commented 1 year ago

Hi, I got an error:

Run-time dependency libevdev found: NO (tried pkgconfig and cmake)

../showmethekey-cli/meson.build:7:0: ERROR: Dependency "libevdev" not found, tried pkgconfig and cmake

A full log can be found at /tmp/showmethekey-1.7.3/build/meson-logs/meson-log.txt

But they are installed:

❯ sudo dnf install libevdev meson python3-libevdev

Last metadata expiration check: 2:20:25 ago on Sat 08 Oct 2022 11:46:39 AM WIB
.
Package libevdev-1.13.0-1.fc36.x86_64 is already installed.
Package meson-0.62.2-1.fc36.noarch is already installed.
Package python3-libevdev-0.10-1.fc36.noarch is already installed.
Dependencies resolved.
Nothing to do.
Complete
OS: Fedora Linux 36 (Workstation Edition) x86_64
Kernel: 5.19.12-200.fc36.x86_64
Shell: zsh 5.8.1
DE: GNOME 42.5
WM: Mutter
AlynxZhou commented 1 year ago

If you wants to compile some project, you also need the -devel/-dev package, which contains the headers used to compile. In Fedora I think you need libevdev-devel instead of python3-libevdev, this program does not use python.

azzamsa commented 1 year ago

Installed libevdev-devel but still doesn't work.

Run-time dependency libevdev found: YES 1.13.0
Found CMake: /usr/bin/cmake (3.22.2)
Run-time dependency libudev found: NO (tried pkgconfig and cmake)

../showmethekey-cli/meson.build:8:0: ERROR: Dependency "libudev" not found, tried pkgconfig and cmake

A full log can be found at /tmp/showmethekey/build/meson-logs/meson-log.txt
❯ sudo dnf install meson libevdev libevdev-devel
Last metadata expiration check: 3:30:50 ago on Sat 08 Oct 2022 11:46:39 AM WIB.
Package meson-0.62.2-1.fc36.noarch is already installed.
Package libevdev-1.13.0-1.fc36.x86_64 is already installed.
Package libevdev-devel-1.13.0-1.fc36.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!
AlynxZhou commented 1 year ago

Run-time dependency libudev found: NO (tried pkgconfig and cmake)

You may also need libudev-devel (or maybe it's in some systemd package)

mrshu commented 1 year ago

Just for the record, here is everything I needed to install in order to be able to build showmethekey on Fedora:

$ sudo dnf install libevdev libudev-devel libevdev-devel libinput-devel gtk4-devel json-glib-devel

I might have missed a thing or two in between though...

mrshu commented 1 year ago

@AlynxZhou if you'd be interested, I guess I could put together a corp package together, so that installing it is a bit easier for Fedora users :slightly_smiling_face:

Vaisakhkm2625 commented 1 year ago

@AlynxZhou if you'd be interested, I guess I could put together a corp package together, so that installing it is a bit easier for Fedora users slightly_smiling_face

have you created?