[maemo-developers] [maemo-developers] compiling problems in scratchbox

From: Andrey Khurri andrey.khurri at hiit.fi
Date: Wed Oct 4 12:23:25 EEST 2006
Hi there,

I've got a problem with compiling some stuff in Scratchbox. It seems 
that compiler does not understand an option '-llibrary' when linking. It 
works elsewhere but in Scratchbox. I tried both sbox-i686-linux-gcc and 
sbox-arm-linux-gcc compilers. Both are 3.4.4 version (CodeSourcery ARM 
2005q3-2).

Do you know if this option is supported at all by sbox compilers or 
should it be invoked in some other way than '-llibrary' or '-l library'?

I checked that I have those libraries which I am trying to link 
installed so it shouldn't be a point (libraries are located under 
/usr/lib/ as a liblibrary.a)

The help messages for sbox compilers are not that helpful and contain 
nothing related to '-llibrary' option.

Below is an output of the error for PC target:

sbox-i686-linux-gcc: -lgthread-2.0: linker input file unused because 
linking not done
sbox-i686-linux-gcc: -lglib-2.0: linker input file unused because 
linking not done
sbox-i686-linux-gcc: -lgobject-2.0: linker input file unused because 
linking not done
sbox-i686-linux-gcc: -lglib-2.0: linker input file unused because 
linking not done
sbox-i686-linux-gcc: ../libinet6/.libs/libinet6.a: linker input file 
unused because linking not done
sbox-i686-linux-gcc: ../libhiptool/.libs/libhiptool.a: linker input file 
unused because linking not done
cc1: error: unrecognized command line option "-lgthread-2.0"
cc1: error: unrecognized command line option "-lglib-2.0"
cc1: error: unrecognized command line option "-lgobject-2.0"
cc1: error: unrecognized command line option "-lglib-2.0"

Would appreciate your help,

Andrey

More information about the maemo-developers mailing list