[Gambas-user] gb3: compiling on Debian Wheezy (testing)

Kevin Fishburne kevinfishburne at ...1887...
Sun Jul 24 07:37:23 CEST 2011


On 07/23/2011 02:18 PM, Kevin Fishburne wrote:
> Just caught something new:
>
> /bin/sed: can't read /usr/lib/libfreetype.la: No such file or directory
> libtool: link: `/usr/lib/libfreetype.la' is not a valid libtool archive
> make[4]: *** [gb.sdl.la] Error 1
> make[4]: Leaving directory
> `/home/kevinfishburne/Desktop/gb3/trunk/gb.sdl/src'
> make[3]: *** [all-recursive] Error 1
> make[3]: Leaving directory `/home/kevinfishburne/Desktop/gb3/trunk/gb.sdl'
> make[2]: *** [all] Error 2
> make[2]: Leaving directory `/home/kevinfishburne/Desktop/gb3/trunk/gb.sdl'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/kevinfishburne/Desktop/gb3/trunk'
> make: *** [all] Error 2
>
> I've checked for the presence of every dependency library in Synaptic
> and searching the file system and everything seems to be there, though
> there may be a version mismatch (newer libraries possibly). I also saw
> the someone named Henry in the mailing list had the same problem this
> year but received no replies

*** Please see the end of this email as I solved the problem. I'm 
leaving the rest here in case it is useful for correcting whatever is 
happening. ***

Well, I'm been trying like crazy to get it to install and am using this 
installation script now:

svn checkout https://gambas.svn.sourceforge.net/svnroot/gambas/gambas/trunk/
cd trunk
./reconf-all
./configure -C
make
sudo make install

and interestingly am receiving a new error:

libtool: link: (cd ".libs" && rm -f "gb.sdl.so.0" && ln -s 
"gb.sdl.so.0.0.0" "gb.sdl.so.0")
libtool: link: (cd ".libs" && rm -f "gb.sdl.so" && ln -s 
"gb.sdl.so.0.0.0" "gb.sdl.so")
/bin/sed: can't read /usr/lib/libfreetype.la: No such file or directory
libtool: link: `/usr/lib/libfreetype.la' is not a valid libtool archive
make[2]: *** [gb.sdl.la] Error 1
make[2]: Leaving directory 
`/home/kevinfishburne/Desktop/gb3/trunk/gb.sdl/src'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/kevinfishburne/Desktop/gb3/trunk/gb.sdl'
make: *** [install-recursive] Error 1

 From my research it seems this problem may have been worked around by 
creating a symlink somewhere. I created a symlink from 
/usr/lib/x86_64-linux-gnu/libfreetype.la to /usr/lib/libfreetype.la and 
copied trunk/gb.sdl/src/gb.sdl.la to /usr/lib/gb.sdl.la and now receive 
the original error:

libtool: install: /usr/bin/install -c .libs/gb.sdl.lai 
/usr/local/lib/gambas3/gb.sdl.la
/usr/bin/install: cannot stat `.libs/gb.sdl.lai': No such file or directory
make[3]: *** [install-gblibLTLIBRARIES] Error 1
make[3]: Leaving directory 
`/home/kevinfishburne/Desktop/gb3/trunk/gb.sdl/src'
make[2]: *** [install-am] Error 2
make[2]: Leaving directory 
`/home/kevinfishburne/Desktop/gb3/trunk/gb.sdl/src'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/kevinfishburne/Desktop/gb3/trunk/gb.sdl'
make: *** [install-recursive] Error 1

I'm using libfreetype6-dev.

Here's Henri's post (sorry for misspelling your name earlier):

http://old.nabble.com/natty-gambas3-td31276264.html

He mentioned v4l in the post (I'm using libv4l-dev 0.8.4-3).

*** The Solution ***

First I copied every .la file in trunk to /usr/lib (maybe unnecessary). 
Then I copied trunk/gb.sdl/src/gb.sdl.la to 
trunk/gb.sdl/src/.libs/gb.sdl.lai, then ran "sudo make install" again. 
It worked and gb3 runs, but I haven't tested it to see if everything 
works yet.

While I'm glad it's working, I have absolutely no idea what I was doing. 
I don't know an .la file from my asshole, which is one of the many 
reasons I'm still using a BASIC dialect. Hopefully this information can 
be used to allow gb3 to successfully compile on Debian testing in the 
future, or at least help some poor soul struggling to get it to install. 
And thanks for all the help (cough!). ;)

-- 
Kevin Fishburne
Eight Virtues
www:http://sales.eightvirtues.com
e-mail:sales at ...1887...
phone: (770) 853-6271





More information about the User mailing list