[Gambas-devel] Build failed for Gambas 2.0.0

MV gambas at ...538...
Thu Jan 3 20:03:38 CET 2008


Hello,

I've just built the latest gambas from source, and I hit bugs. My system is 
loosely based on an old fedora core 2 that I patched quite heavily, but 
otherwise running fine (yes, in other words, it's a mess). If nobody else has 
troubles, well, it may be time I upgrade to a state of the art ubuntu, but 
for the record, I think I should share my journey in the building of gambas2:

- configure left out various bits and pieces I didn't care about (gtk, pdf, 
firebird, mysql and such). In the past ('til gambas 1.9.47, the last I 
compiled) it has never been a problem. I noticed a new gb.desktop component 
(I didn't knew existed before) that was left out, but I thought it wouldn't 
matter. Otherwise, no errors.

- Make was doing its job until it reached /gb.qt.ext/ where it failed with 
something like "LD can't figure out where -lX11 is pointing to" (just 
kidding, but that was the meaning). So I picked a look at libtool in that 
particular directory, to no avail, and as time was running, I finally did it 
the old way : I cut and pasted the faulty lines in another terminal, replaced 
"-lX11" with a qualified path "-L/usr/X11R6/lib", and when that was done, 
restarted make. I had to perform the same trick to build successfuly /gb.qt/, 
too. 

- So finally, gambas managed to build seamingly successfully, I tried to run 
it and *bam* error : the desktop component is required to run the IDE. As it 
turns out, the configure test in /gb.desktop/ failed to find a function in 
libXext [XTestQueryExtension(), defined in XTest.h on my system]. As I had 
the header, and was frustrated, I supplied a sounding 'yes' by hand in the 
configure script, and after that the component built without a hitch.

- Not anymore, really ? Well, tough luck. Libtool couldn't again find where 
-lX11 was pointing, so I had to revert to the cut-and-paste routine I already 
mentionned.

So I finally managed to launch gambas and everything that I otherwise compiled 
seems to work ; well that's if don't take into account a little hotfix(*) I 
had to apply to build CWebbrowser.cpp, but I assume my kde libs are totally 
outdated, so this I don't really mind.

All in all : congrats for the good job, gambas is shinnier than ever, but the 
more I build it, the more I find it picky with its requirements. I wish 
autoconf/automake were more friendly (some tests are performed again for each 
component, finding the relevant info is kind of looking for a needle in a 
haystack), and I'd really love to know exactly which libs are required to 
make a successful build, especially what versions are considered minimum.

Otherwise, cheers !

(*) hotfix in the for of commenting out a couple of function calls getting in 
my way, declared 'private' in the header as far as gcc tells me. Chances are 
that I won't be able to select text in the component ;-)
-- 
Manuel Viet





More information about the Devel mailing list