All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bluez-devel] Troubles cross-compiling utils... Resolved?
@ 2005-03-08  1:08 kwyjibo
  2005-03-08 12:19 ` Anderson Rodrigues
  0 siblings, 1 reply; 2+ messages in thread
From: kwyjibo @ 2005-03-08  1:08 UTC (permalink / raw)
  To: bluez-devel

Hi, I found some troubles cross-compiling for Compulab ARM unit. First of=

all, I tried to do  it with gcc 3.3.2, but there were many problems, so I=

come back to 2.95.3, which it seems to be more kind...

First, I use this command, in addition with enviroment variables to tell
where the crosscompiling chain is located (v.g CC=3D/usr/local/arm/2.95.3=
/bin/arm-linux-gcc,
LD=3D/...)

./configure --prefix=3D/mnt/image --host=3Darm --with-bluez=3D/mnt/img/li=
b

The first problem I found is that it doesn't find the headers, but the co=
nfigure's
help doesn't say nothing about that... I tried,  like in other releases:

./configure --prefix=3D/mnt/image --host=3Darm --with-bluez=3D/mnt/img/li=
b --with-bluez-includes=3D/mnt/image/include

But throws the same error. I tried this, as I did before.

./configure --prefix=3D/mnt/image --host=3Darm --with-bluez-libs=3D/mnt/i=
mage/libs
--with-bluez-includes=3D/mnt/image/include

And now I passed the configure with no errors...

Next I tried to make, and compiling one of the tools it stopped:

/usr/local/arm/2.95.3/bin/arm-linux-gcc -DHAVE_CONFIG_H -I. -I. -I..    -=
I/mnt/image/include
 -I/mnt/image/include -Wall -O2 -c `test -f 'hcisecfilter.c' || echo './'=
`hcisecfilter.c
/usr/local/arm/2.95.3/bin/arm-linux-gcc -I/mnt/image/include  -I/mnt/imag=
e/include
-Wall -O2   -o hcisecfilter  hcisecfilter.o  -lbluetooth
/usr/local/arm/2.95.3/arm-linux/bin/ld: cannot find -lbluetooth

I notice that the tool app compiled before that was

/usr/local/arm/2.95.3/bin/arm-linux-gcc -DHAVE_CONFIG_H -I. -I. -I..    -=
I/mnt/image/include
 -I/mnt/image/include -Wall -O2 -c `test -f 'ppporc.c' || echo './'`pppor=
c.c
/usr/local/arm/2.95.3/bin/arm-linux-gcc -I/mnt/image/include  -I/mnt/imag=
e/include
-Wall -O2   -o ppporc  ppporc.o -L/mnt/image/lib -lbluetooth -lbluetooth

So I noticed that this one includes -L/mnt/image//lib, I edited the makef=
ile
of the tool directory, adding that directory to the tools who needed, and=

I managed to compile them...

I haven't tested yet, so I don't know if this is right, but may be it be
useful to someone.




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-03-08 12:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-08  1:08 [Bluez-devel] Troubles cross-compiling utils... Resolved? kwyjibo
2005-03-08 12:19 ` Anderson Rodrigues

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.