2006-05-31 14:52:25

by ifq

[permalink] [raw]
Subject: [Bluez-devel] cross compile BlueZ lib error

Hello, all,

I want to cross compile bluez lib for arm.

And I have done as following:
#./configure --host=armv4l-linux --prefix=/root/bluedev/bluezport/libs
CC=/opt/host/armv4l/bin/armv4l-unknown-linux-gcc
CPP=/opt/host/armv4l/bin/armv4l-unknown-linux-cpp
AR=/opt/host/armv4l/bin/armv4l-unknown-linux-ar
STRIP=/opt/host/armv4l/bin/armv4l-unknown-linux-strip
RANLIB=/opt/host/armv4l/bin/armv4l-unknown-linux-ranlib
LD=/opt/host/armv4l/bin/armv4l-unknown-linux-ld
--includedir=/root/linux/include

"/root/linux/include"is my arm linux include directory.

then
#make

and i get an error as follow:
/bin/sh ../libtool --mode=compile
/opt/host/armv4l/bin/armv4l-unknown-linux-gcc -DHAVE_CONFIG_H -I. -I. -I..
-I../include -Wall -O2 -D_FORTIFY_SOURCE=2 -c -o hci.lo `test -f 'hci.c'
|| echo './'`hci.c
/opt/host/armv4l/bin/armv4l-unknown-linux-gcc -DHAVE_CONFIG_H -I. -I. -I..
-I../include -Wall -O2 -D_FORTIFY_SOURCE=2 -c hci.c -Wp,-MD,.deps/hci.TPlo
-o hci.o
hci.c: In function `hci_send_cmd':
hci.c:885: storage size of `iv' isn't known
hci.c:903: warning: implicit declaration of function `writev'
hci.c:885: warning: unused variable `iv'

according to "hci.c" the 'iv 'is a "struct iovec".and this struct defined in
the linux/include/linux/uio.h
I think this is a very simple error,but i'm new to linux.so,please help me
to fix it up:)

thanks very much!

if.q
Cheng DU .China


Attachments:
(No filename) (1.35 kB)
(No filename) (1.55 kB)
(No filename) (0.00 B)
(No filename) (164.00 B)
Download all attachments