2006-06-26 11:04:23

by Mayank Batra

[permalink] [raw]
Subject: [Bluez-devel] bluez-utils do not cross compile

Hi,

I am trying to cross compile bluez-libs-2.25 and bluez-utils-2.25 for ARM.
bluez-libs-2.25 cross-compile fine.
But when I cross compile bluez-utils, I get the following error while
configuring:


[root@localhost bluez-utils-2.25]#./configure --host=arm-linux
--libdir=/usr/local/arm/2.95.3/arm-linux/lib
--includedir=/usr/local/arm/2.95.3/arm-linux/include
--with-kernel=$KERNEL_PATH

configure: WARNING: If you wanted to set the --build type, don't use --host.
If a cross compiler is detected then cross compile mode will be used.
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for arm-linux-strip... arm-linux-strip
checking whether to enable maintainer-specific portions of Makefiles... no
checking for arm-linux-gcc... arm-linux-gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... yes
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether arm-linux-gcc accepts -g... yes
checking for arm-linux-gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of arm-linux-gcc... gcc
checking whether arm-linux-gcc accepts -fPIE... no
checking for a BSD-compatible install... /usr/bin/install -c
checking for bison... bison -y
checking for flex... flex
checking for yywrap in -lfl... no
checking for yywrap in -ll... no
checking lex output file root... lex.yy
checking whether yytext is a pointer... no
checking build system type... i686-pc-linux-gnu
checking host system type... arm-unknown-linux-gnu
checking for a sed that does not truncate output... /bin/sed
checking for egrep... grep -E
checking for ld used by arm-linux-gcc... arm-linux-ld
checking if the linker (arm-linux-ld) is GNU ld... yes
checking for arm-linux-ld option to reload object files... -r
checking for BSD-compatible nm... arm-linux-nm
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... arm-linux-gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking the maximum length of command line arguments... 32768
checking command to parse arm-linux-nm output from arm-linux-gcc object...
ok
checking for objdir... .libs
checking for arm-linux-ar... arm-linux-ar
checking for arm-linux-ranlib... arm-linux-ranlib
checking for arm-linux-strip... (cached) arm-linux-strip
checking if arm-linux-gcc supports -fno-rtti -fno-exceptions... yes
checking for arm-linux-gcc option to produce PIC... -fPIC
checking if arm-linux-gcc PIC flag -fPIC works... yes
checking if arm-linux-gcc static flag -static works... yes
checking if arm-linux-gcc supports -c -o file.o... yes
checking whether the arm-linux-gcc linker (arm-linux-ld) supports shared
libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating libtool
checking bluetooth/bluetooth.h usability... yes
checking bluetooth/bluetooth.h presence... yes
checking for bluetooth/bluetooth.h... yes
checking for hci_open_dev in -lbluetooth... no
configure: error: Bluetooth library not found





=================

*Can you help me find out the reason fro the error: Bluetooth library not
found ???*
**
Any suggestions will be appreciated.
Thanks in advance.

Regards,
Mayank


Attachments:
(No filename) (4.11 kB)
(No filename) (4.72 kB)
(No filename) (299.00 B)
(No filename) (164.00 B)
Download all attachments

2006-06-27 07:35:52

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [Bluez-devel] bluez-utils do not cross compile

Hi Mayank,

> It works!!
> But one question: why don't I get this error when I am not cross
> compiling?
> Is it specific to arm-linux-gcc?

this happens all the time. A different architecture has different
default includes and on i386/x86_64 something works even if you forget
the correct header.

> Also, the same error was coming in tools/hciconfig.c and hidd/sdp.c as
> well.

I fixed all the other places, too.

Regards

Marcel



Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

2006-06-27 04:40:19

by Mayank Batra

[permalink] [raw]
Subject: Re: [Bluez-devel] bluez-utils do not cross compile

Hi Marcel,

On 6/26/06, Marcel Holtmann <[email protected]> wrote:

> Hi Mayank,
>
> > It works after I give the options --with-bluez=PATH
> > But now when I say make, I get the following error:
> >
> > arm-linux-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../common
> > -I/usr/local/include -Wall -O2 -D_FORTIFY_SOURCE=2 -c `test -f
> > 'hciattach.c' || echo './'`hciattach.c
> > hciattach.c: In function `main':
> > hciattach.c:1006: `PATH_MAX' undeclared (first use in this function)
> > hciattach.c:1006: (Each undeclared identifier is reported only once
> > hciattach.c:1006: for each function it appears in.)
> > hciattach.c:1006: warning: unused variable `dev'
> > make[2]: *** [hciattach.o] Error 1
>
> check if the attached patch helps.


It works!!
But one question: why don't I get this error when I am not cross compiling?
Is it specific to arm-linux-gcc?

Also, the same error was coming in tools/hciconfig.c and hidd/sdp.c as well.


Thanks a lot for your help.

Regards,
Mayank


Attachments:
(No filename) (986.00 B)
(No filename) (1.42 kB)
(No filename) (299.00 B)
(No filename) (164.00 B)
Download all attachments

2006-06-26 11:53:37

by Mayank Batra

[permalink] [raw]
Subject: Re: [Bluez-devel] bluez-utils do not cross compile

Hi Dimitry,


On 6/26/06, Dimitry Andric <[email protected]> wrote:
>
> Mayank Batra wrote:
> > But when I cross compile bluez-utils, I get the following error while
> ...
> > configure: error: Bluetooth library not found
>
> Read ./configure --help, and use the --with-bluez option correctly.


It works after I give the options --with-bluez=PATH
But now when I say make, I get the following error:

arm-linux-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../common
-I/usr/local/include -Wall -O2 -D_FORTIFY_SOURCE=2 -c `test -f 'hciattach.c'
|| echo './'`hciattach.c
hciattach.c: In function `main':
hciattach.c:1006: `PATH_MAX' undeclared (first use in this function)
hciattach.c:1006: (Each undeclared identifier is reported only once
hciattach.c:1006: for each function it appears in.)
hciattach.c:1006: warning: unused variable `dev'
make[2]: *** [hciattach.o] Error 1


Please help me out.
Thanks

Regards,
Mayank


Attachments:
(No filename) (911.00 B)
(No filename) (1.33 kB)
(No filename) (299.00 B)
(No filename) (164.00 B)
Download all attachments

2006-06-26 11:30:11

by Dimitry Andric

[permalink] [raw]
Subject: Re: [Bluez-devel] bluez-utils do not cross compile

Mayank Batra wrote:
> But when I cross compile bluez-utils, I get the following error while
...
> configure: error: Bluetooth library not found

Read ./configure --help, and use the --with-bluez option correctly.


Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel