ahrm / sioyek

Sioyek is a PDF viewer with a focus on textbooks and research papers
https://sioyek.info/
GNU General Public License v3.0
6.75k stars 219 forks source link

Build on arch - Xinput No such file or directory #1106

Closed enrico223 closed 3 weeks ago

enrico223 commented 3 weeks ago

I got all the dependencies needed, but can't compile. This is the error:

In file included from thirdparty/freeglut/src/fg_internal.h:192,
                 from thirdparty/freeglut/src/fg_callbacks.c:29:
thirdparty/freeglut/src/x11/fg_internal_x11.h:42:10: fatal error: X11/extensions/XInput.h: No such file or directory
   42 | #include <X11/extensions/XInput.h>

How do I fix it?

ahrm commented 3 weeks ago

You need to install the xinput library.

enrico223 commented 3 weeks ago

I have the xorg-xinput package installed, isn't it the one needed?

ahrm commented 3 weeks ago

I don't know, it might be called libxi or something. The package names are different for each distribution.

enrico223 commented 3 weeks ago

The package is, in fact, called libxi, but I had to reinstall it, same goes for xrender.