Hi there,

I am using Scratchbox to compile things for Maemo (Nokia 770). I've got a trouble now concerning sbox-compiler. I tried to ask this question on Maemo-developers mailing list but didn't get any answer there. So I decided that it's more Scratchbox related issue and writing now here. Sorry guys for double posting on two mailing lists.

Okay, here I go. It seems that sbox 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 also thought that sbox compilers may have less available command-line options comparing to "normal" gcc. Can it be truth?

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
-- 
Andrey Khurri, Researcher
Helsinki Institute for Information Technology (HIIT)
Tel: +358 50 384 1510
Fax: +358  9 694 9768
[EMAIL PROTECTED]


_______________________________________________
Scratchbox-devel mailing list
[email protected]
http://lists.scratchbox.org/cgi-bin/mailman/listinfo/scratchbox-devel

Reply via email to