If you get this error:
src/freeglut_internal.h:111:39: fatal error: X11/extensions/XInput.h: No such file or directory
This might save you some time searching for the correct dev packages to install. The package it is in in the Debian repositories is called x11proto-input-dev
, but it contains the file XI.h which contains the correct headers freeglut is including. Symlink the file and you’re good to go.
cd /usr/include/X11/extensions && sudo ln -s XI.h XInput.h
HTH 🙂
10 Comments
Thanks! This worked. I actually already had the package installed, just making the symlink worked for me.
Like the previous commenter the library was installed and linking it was the fix. (Ubuntu 14.04, 14.04.)
Thank You
Hello, Google spider: src/freeglut_internal.h:111:39: fatal error: X11/extensions/XInput.h: No such file or directory
Great! Thank you a lot 🙂
Thank you !
WIth the link the error disappeared replaced by others : ../../glut-3.5/src/glut_input.c:29:1: error : unknow type name ‘XDevice’ XDevice_glutTablet = NULL; ../../glut-3.5/src/glut_input.c:30:1: error : unknow type name ‘XDevice’ XDevice_glutDiasl = NULL; ../../glut-3.5/src/glut_input.c:31:1: error : unknow type name ‘XDevice’ XDevice*_glutSpaceball = NULL; ….
Thanks a lot!!
Saved my time, thanks!
Still helping folks after 4 years and 2 days, nice 😉
thanks…
on opensuse leap 15, install the package libXi-devel
Thanks! any trick for “fatal error: X11/extensions/Xrandr.h: No such file or directory” ? Cheers!