[Gambas-user] Little problem compiling 2.0.0 version (Bug or not?)

Stefano Palmeri rospolosco at ...152...
Tue Jan 22 21:49:25 CET 2008


Alle 17:44, martedì 22 gennaio 2008, Benoit Minisini ha scritto:
> On mardi 22 janvier 2008, Piramix Tecnologías wrote:
> > Yesterday I tried to start using stable version 2.0.0 (I've been using
> > 1.9.46 until that moment). I had no problem at all but I decided to
> > upgrade. During the compilation happened that the gb.desktop component
> > was disabled (I don't know what is it really since it was not there
> > before). Compilation and installation ran good BUT when I tried to run
> > gambas2 I got the following message: "ERROR: #27: Cannot load component
> > 'gb.desktop': cannot find library file". It's obviously a problem related
> > to some X11 library (libXtst.so is present at /usr/X11R6/lib). Anyway,
> > messing a little with the configuration script at the gb.desktop folder I
> > disabled the part where it checks for XTestQueryExtension in -lXtst
> > (still don't know what's about). After that gb.desktop component was
> > enabled and I cuold finally compile passing the -i option to make.
> > Finally, gambas2 is running like a charm but I'd still like to know what
> > happened here. I'm using
> > slackware-11.0 with kernel 2.6.20.11 and 2.6.19rc6, gcc versión 3.4.6 &
> > Make version 3.81. I'm just learning C code so, my knowledge is very
> > limited. I'll appreciate some help here. Thanks.
>
> Please send the output of the configure process.
>
> The component was disabled because it couldn't succeed in finding the
> include files of the libXtst library. But if it works after removing the
> test, that means that these includes are there but that configure didn't
> find them. If you could tell me where the libXtst includes are located on
> Slackware so that I can fix the search, it would be cool. :-)
>
> Regards,

We discussed this problem a couple (look for mails of 7 january) of weeks ago, 
because I had the same problem with Slackware 11. You send me a new 
configure.ac for gb.desktop to test and that solved the problem. Anyway the 
other solution is: 

export LDFLAGS="-L/usr/X11R6/lib"

before ./configure

I've attached the configure.ac.

Best regards,

Stefano Palmeri
-------------- next part --------------
dnl ---- configure.ac for gb.desktop

AC_INIT(configure.ac)
GB_INIT(gb.desktop)
AC_PROG_LIBTOOL

GB_CHECK_XWINDOW

AC_CHECK_LIB(Xtst, XTestQueryExtension, [X_LIBS="$X_LIBS -lXtst"], [touch DISABLED], [$X_LIBS])

GB_COMPONENT(
  desktop,
  DESKTOP,
  [Desktop-neutral routines],
  [src],
  [],
  [],
  [$C_LIB $THREAD_LIB $X_LIBS],
  [$THREAD_INC ])

AC_OUTPUT( Makefile src/Makefile )


More information about the User mailing list