jordansissel / keynav

retire your mouse.
Other
588 stars 96 forks source link

On compilation : Failed to include Xrandr (Elementary OS 5) #46

Open 4sStylZ opened 4 years ago

4sStylZ commented 4 years ago

Hi,

I got this conf :

While using make, I get this output :

4sstylz@bluebook:~/Programs/keynav(master)$ make
sh version.sh --header > keynav_version.h
cc -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libpng16  -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include   -O2   -c -o keynav.o keynav.c
keynav.c:24:10: fatal error: X11/extensions/Xrandr.h: No such file or directory
 #include <X11/extensions/Xrandr.h>
          ^~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
<builtin>: recipe for target 'keynav.o' failed
make: *** [keynav.o] Error 1

I have a /etc/x11 folder so I have x11 right ? But I don’t have any extension folder on it.

In some stack overflow question I understanded that xrandr is provided by x11-server-utils but I cannot install this package with apt.

So my questions are : 

Is keynav compatible with my distro / environnement ? How to deal with xrandr ?

Thank you.

tianheg commented 3 years ago

Just download libxrandr-dev:

sudo apt-get install libxrandr-dev