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

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

Open
4sStylZ opened this issue Oct 25, 2019 · 1 comment
Open

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

4sStylZ opened this issue Oct 25, 2019 · 1 comment

Comments

@4sStylZ
Copy link

4sStylZ commented Oct 25, 2019

Hi,

I got this conf :

  • ElementaryOS 5.0 based on Ubuntu 18.04.2 LTS
  • Linux 5.3.7-050307-generic
  • GTK 3.22.30

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
Copy link

tianheg commented Jun 25, 2021

Just download libxrandr-dev:

sudo apt-get install libxrandr-dev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants