I'm trying to compile a little program (xkblayout-state) which display the keyboard layout but for some reason it failed to compile because Xlib.h is missing but the library is on my sistem. Why I need this program? Because I have four layouts and sometimes it's difficult to navigate without knowing which layout is active.
Also my knowledge of C++ are at basic level so any suggestion on how to compile this program is more then welcome! Thank you!
Also my knowledge of C++ are at basic level so any suggestion on how to compile this program is more then welcome! Thank you!
Code:
$gmake
c++ -O2 -Wall -c -o XKeyboard.o XKeyboard.cpp
In file included from XKeyboard.cpp:14:
./XKeyboard.h:20:10: fatal error: 'X11/Xlib.h' file not found
#include <X11/Xlib.h>
^~~~~~~~~~~~
1 error generated.
gmake: *** [Makefile:13: XKeyboard.o] Error 1
Code:
$locate Xlib.h
/usr/local/include/X11/Xlib.h