Build fails due to lib Xi detection issue
When trying to build gtk 3.4.0 or 3.7.10, it stops with this error message:
"configure: error: *** XInput2 extension not found. Check 'config.log' for more details."."
I then checked config.log. The error message it is:
""configure:23790: error: *** XInput2 extension not found. Check 'config.log' for more details.""
Exactly the same, except by the line number.
The big problem is that I am passing the Xi include dir to configure:
CPPFLAGS="-I/media/34GB/Arquivos-de-Programas-Linux/xorg/X11-1.3.6/include/ -I/media/34GB/Arquivos-de-Programas-Linux/xorg/Xorgproto-2018.1/include/ -I/media/34GB/Arquivos-de-Programas-Linux/xorg/Xi-1.5.0/include/"
Xi library seems to be installed correctly, with both XInput.h and XInput2.h files inside the X11 dir, which is inside the include dir
Then I gave a look at configure.ac. This is what: "grep XInput* configure.ac" returned:
set up things for XInput
AC_CHECK_HEADER(X11/extensions/XInput2.h,
AC_DEFINE(XINPUT_2, 1, [Define to 1 if XInput 2.0 is available]))
AC_DEFINE(XINPUT_2_2, 1, [Define to 1 if XInput 2.2 is available]),
[[#include <X11/extensions/XInput2.h>]])])
[AC_MSG_ERROR([*** XInput2 extension not found. Check 'config.log' for more details.])])
It might be a version issue? I gave a quick glance inside XInput2.h and did not see any definition inside it. From libXi.la there is:
Version information for libXi.
current=7 age=1 revision=0
and xi.pc says: Version: 1.5.0
So, any ideas? Thanks for your time