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

Alpha fails to build on openSUSE #995

Open
rickykresslein opened this issue Feb 21, 2022 · 3 comments
Open

Alpha fails to build on openSUSE #995

rickykresslein opened this issue Feb 21, 2022 · 3 comments
Labels
bug Something isn't working Linux Related to the Linux operating system wayland

Comments

@rickykresslein
Copy link
Contributor

Following the Installation for Wayland instructions for the Alpha version of espanso, it fails to build on openSUSE. Here is the error:

warning: src/evdev/native.cpp:49:10: fatal error: xkbcommon/xkbcommon.h: No such file or directory
warning:    49 | #include "xkbcommon/xkbcommon.h"
warning:       |          ^~~~~~~~~~~~~~~~~~~~~~~
warning: compilation terminated.

error: failed to run custom build command for `espanso-detect v0.1.0 (/home/ricky/Downloads/espanso/espanso-detect)`

It seems xkbcommon cannot be found, but libxkbcommon-devel is installed.
I don't know if this is actually an issue in espanso or one of its dependencies, but I wasn't sure where else to go for help.
If anyone has gotten espanso (alpha) to build on openSUSE (Tumbleweed) any help would be appreciated.

@rickykresslein rickykresslein added the bug Something isn't working label Feb 21, 2022
@rickykresslein
Copy link
Contributor Author

rickykresslein commented Feb 23, 2022

I was able to figure this out. xkbcommon.h is stored in a different directory in openSUSE, so you need to make a symlink to it in order for espanso-detect to find it. For those looking to install espanso alpha on openSUSE:

Install the build requirements:

sudo zypper install -t pattern devel_basis
sudo zypper in wl-clipboard libxkbcommon-devel dbus-1-devel wxGTK3-3_2-devel rustup libopenssl-devel libcap-progs
rustup toolchain install stable

Create the xkbcommon symlink:
sudo ln -s /usr/include/libxkbcommon/xkbcommon /usr/include/

After that you can build epsanso using the instructions for Wayland.

@federico-terzi
Copy link
Collaborator

Hey @rickykresslein,

Thanks for sharing! We should probably find a way to make this possible even without the symlink, I'm reopening the issue. If someone with openSUSE experience has any idea on how we should have handled this (perhaps including some extra include directories?) please let us know

Cheers :)

@federico-terzi federico-terzi added Linux Related to the Linux operating system wayland labels Feb 23, 2022
@Vogtinator
Copy link

You need to get the proper compile flags through something like pkg-config --cflags xkbcommon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Linux Related to the Linux operating system wayland
Projects
None yet
Development

No branches or pull requests

3 participants