"Given that you seem to be using old versions of everything, is this
'gtk' actually from the gtk-1.2 series ? If so, most people stopped
trying to build that a long time ago."
 
No, it's from 3.xx series
 
"
And, again if the versions are old - what are you building on
(distro, CPU, and particularly your versions of binutils or
equivalent,, cc and g++, libc ? I'm asking because I think most
peopel here cannot remember details from old versions.
 
It's modified 64bit Ubuntu 10.04, running on an underclocked core 2 duo. Gcc/G++ is my custom build of gcc 4.9.4. I installed it outside LInux usual directory tree, as I do with everything else. Then I created sym links to them on /usr/local/bin and to libstdc++ on /usr/lib, after renaming the older version to libstdc++.so.6.0.13.bak. I also created a symlink to the 32bit libstdc++ in a new /usr/lib32 dir
 
System default Glibc it is 2.11.1. However I have a 2.18 64 bit version installed outside the usual dir tree and a 2.17 32bit also in a custom place, and I created sym links to all the files in the lib dir of the 2.17 version on /usr/lib32
 
Something is weird, as generic 32bit libraries  that I produce (like freetype and png) are much smaller than 64bit ones. The exception is glibc itself, that happens to be reasonable bigger than the 64bit one.
 
If necessary I can copy and paste my building commands for both Gcc and Glibc.
 
binutils should be the system default ones
 
I have all the xorg (and everything else) in custom dirs. My configure calls everything:  
 
LD_LIBRARY_PATH=/media/34GB/Arquivos-de-Programas-Linux/Glib-2.48.0/lib/ CPPFLAGS="-I/media/34GB/Arquivos-de-Programas-Linux/xorg/X11-1.4.4/include/ -I/media/34GB/Arquivos-de-Programas-Linux/xorg/Xorgproto-2018.1/include/" LDFLAGS="-L/media/34GB/Arquivos-de-Programas-Linux/xorg/X11-1.4.4/lib/ -L/media/34GB/Arquivos-de-Programas-Linux/xorg/Xext-1.1.1/lib/" ./configure --prefix=/media/34GB/Arquivos-de-Programas-Linux/Gtk+-3.4.0 PKG_CONFIG_PATH=/media/34GB/Arquivos-de-Programas-Linux/Glib-2.48.0/lib/pkgconfig/:/media/34GB/Arquivos-de-Programas-Linux/Atk-2.15.4/lib/pkgconfig/:/media/34GB/Arquivos-de-Programas-Linux/Pango-1.32.4/lib/pkgconfig/:/media/34GB/Arquivos-de-Programas-Linux/Cairo-1.10.0/lib/pkgconfig/:/media/34GB/Arquivos-de-Programas-Linux/Gdk-pixbuf-2.27.1/lib/pkgconfig/:/media/34GB/Arquivos-de-Programas-Linux/Pixman-0.18.4/lib/pkgconfig/:/media/34GB/Arquivos-de-Programas-Linux/Fontconfig-2.8.0/lib/pkgconfig/:/media/34GB/Arquivos-de-Programas-Linux/Freetype-2.2.1/lib/pkgconfig/:/media/34GB/Arquivos-de-Programas-Linux/Png-1.2.14/lib/pkgconfig/"
 
In case no new idea comes up, I have three. One is to install libXI temporarily on /usr/local/ and see if detection works. If it does, latter I can remove it, especially if there is a make uninstall on the Makefile
 
Other is to hack configure.ac and remove the entire test. If what I read on the documentation is correct, the use of the library in handheld devices and might be essential to build it.
 
Before that, I would try to understand why the test isn't working. I might post in another places if necessary.


09.08.2022, 21:44, "Ken Moffat" <zarniwh...@ntlworld.com>:

On Mon, Aug 08, 2022 at 10:22:57PM -0300, alexandre schenberg wrote:

    Hi. I am currently executing the configure script of gtk. It tests for the
    presence of XInput, and it stops the execution with the error
    message:"configure: error: *** XInput2 extension not found. Check
    'config.log' for more details.
     
    Looking at config.log, it says "configure:23050: error: *** XInput2
    extension not found. Check 'config.log' for more details."
    So, the same except for the line number.
     
    Then I decided to look at configure.ac. There I found the full Xi
    detection test that it is:
     
    if $PKG_CONFIG --exists "xi" ; then
     
        X_PACKAGES="$X_PACKAGES xi"
        GTK_PACKAGES_FOR_X="$GTK_PACKAGES_FOR_X xi"
     
        AC_CHECK_HEADER(X11/extensions/XInput2.h,
                        have_xinput2=yes
                        AC_DEFINE(XINPUT_2, 1, [Define to 1 if XInput 2.0 is
    available]))
     
        gtk_save_LIBS="$LIBS"
        LIBS="$LIBS -lXi"
     
        # Note that we also check that the XIScrollClassInfo struct is
    defined,
        # because at least Ubuntu Oneiric seems to have XIAllowTouchEvents(),
    but not the XIScrollClassInfo struct.
        AC_CHECK_FUNC([XIAllowTouchEvents],
          [AC_CHECK_MEMBER([XIScrollClassInfo.number],
                           have_xinput2_2=yes
                           AC_DEFINE(XINPUT_2_2, 1, [Define to 1 if XInput 2.2
    is available]),
                           have_xinput2_2=no,
                           [[#include <X11/extensions/XInput2.h>]])])
        LIBS="$gtk_save_LIBS"
     
        if test "x$have_xinput2_2" = "xyes"; then
          X_EXTENSIONS="$X_EXTENSIONS XI2.2"
        else
          X_EXTENSIONS="$X_EXTENSIONS XI2"
        fi
      fi
     
      AS_IF([test "x$have_xinput2" != "xyes"],
            [AC_MSG_ERROR([*** XInput2 extension not found. Check 'config.log'
    for more details.])])
     
    I am no expert about setting configure.ac, but I thought that this line:
     "if $PKG_CONFIG --exists "xi" ; then" would be satisfied by this
    parameter that I pass to configure:
     PKG_CONFIG_PATH=:/media/34GB/Arquivos-de-Programas-Linux/xorg/Xi-1.5.0/lib/pkgconfig/
     
    Also this line:
    AC_CHECK_HEADER(X11/extensions/XInput2.h,
                        have_xinput2=yes
                        AC_DEFINE(XINPUT_2, 1, [Define to 1 if XInput 2.0 is
    available]))
     
    could have been satisfied by this parameter that I pass to configure:
    CPPFLAGS=-I/media/34GB/Arquivos-de-Programas-Linux/xorg/Xi-1.5.0/include/
     
    O I am a bit loss about why it doesn't detect nothing.
     
    A curious point that I read in the documentation is that there is a
    parameter called: --disable-xinput.
    Well I am passing it to configure and it obviously didn't disable the
    test. So I would appreciate any suggestions about how to change the test
    to try to figure out what is wrong with it (or with my system)


Given that you seem to be using old versions of everything, is this
'gtk' actually from the gtk-1.2 series ? If so, most people stopped
trying to build that a long time ago.

And, again if the versions are old - what are you building on
(distro, CPU, and particularly your versions of binutils or
equivalent,, cc and g++, libc ? I'm asking because I think most
peopel here cannot remember details from old versions.

But, one general point which will perhaps help - if you have to pass
PKG_CONFIG_PATH make sure it is a series of paths which include
everything that configure might be looking for which is NOT in
/usr/lib/pkgconfig or /usr/share/pkgconfig. The fact you seem to
have specified one Xorg lib in a different place makes me think that
you have already build what you consider to be enough of xorg to
satisfy this verison of gtk, and usually there will be more than one
library with a .pc file!

ĸen

--
(Rincewind) was pretty sure there was no way you could get a cross
between a human and a sheep. If there was, people would definitely
have found out by now. -- The Last Continent

Reply via email to