From: Stephan Henningsen <sth@amplex.dk>
To: bluez-devel <bluez-devel@lists.sourceforge.net>
Subject: [Bluez-devel] Error compiling bluez-utils for buildroot/ARM
Date: Thu, 17 Mar 2005 10:52:44 +0100 [thread overview]
Message-ID: <4239536C.5030202@amplex.dk> (raw)
[-- Attachment #1: Type: text/plain, Size: 4056 bytes --]
Hi,
This is not about a bug in bluez-utils, but I would like some help
integrating BlueZ into the buildroot crossplatform environment.
I've made two packages (i.e. Config.in and .mk file) for the
buildroot environment, that should support bluez-libs and
bluez-utils. The libs appear to install smoothly, but the utils
fail during configure.
I've attached both the packages in a .tar.gz which can be extracted
into buildroot/package/ where it will create both BlueZ packages.
These packages basically delegate to the Makefile of BlueZ, so you
guys should be home free ;)
The attached packages result in this error, when installing bluez-libs:
sth@speedball:~/au/buildroot$ make bluez-utils-dirclean bluez-utils
rm -rf /home/sth/au/buildroot/build_arm/bluez-utils-2.15
zcat /home/sth/au/buildroot/dl/bluez-utils-2.15.tar.gz | tar -C
/home/sth/au/buildroot/build_arm -xf -
touch /home/sth/au/buildroot/build_arm/bluez-utils-2.15/.source
(cd /home/sth/au/buildroot/build_arm/bluez-utils-2.15; \
PATH=/home/sth/au/buildroot/build_arm/staging_dir/bin:/bin:/sbin:/usr/bin:/usr/sbin
AR=/home/sth/au/buildroot/build_arm/staging_dir/bin/arm-linux-uclibc-ar
AS=/home/sth/au/buildroot/build_arm/staging_dir/bin/arm-linux-uclibc-as
LD=/home/sth/au/buildroot/build_arm/staging_dir/bin/arm-linux-uclibc-ld
NM=/home/sth/au/buildroot/build_arm/staging_dir/bin/arm-linux-uclibc-nm
CC=/home/sth/au/buildroot/build_arm/staging_dir/bin/arm-linux-uclibc-gcc
GCC=/home/sth/au/buildroot/build_arm/staging_dir/bin/arm-linux-uclibc-gcc
CXX=/home/sth/au/buildroot/build_arm/staging_dir/bin/arm-linux-uclibc-g++
RANLIB=/home/sth/au/buildroot/build_arm/staging_dir/bin/arm-linux-uclibc-ranlib
\
CFLAGS="-Os -pipe " \
./configure \
--target=arm-linux \
--host=arm-linux \
--build=i386-pc-linux-gnu \
--prefix=/usr \
--exec-prefix=/usr \
--bindir=/usr/bin \
--sbindir=/usr/sbin \
--libexecdir=/usr/lib \
--datadir=/usr/share \
--sysconfdir=/etc \
--localstatedir=/var \
--infodir=/usr/info \
--mandir=/usr/man \
--with-bluez=/usr \
);
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
...
...
...
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
make: ***
[/home/sth/au/buildroot/build_arm/bluez-utils-2.15/.configured] Error 1
sth@speedball:~/au/buildroot$
If I add --libdir=${TARGET_DIR}/usr/lib (which expands to
--libdir=/home/sth/au/buildroot/build_arm/root/usr/lib) to the
configure command, the configuring succeeds, but compilation fails:
...
/home/sth/au/buildroot/build_arm/staging_dir/bin/arm-linux-uclibc-gcc
-I/usr/include -DDBUS_API_SUBJECT_TO_CHANGE -Os -pipe -o hcid
main.o security.o storage.o lib.o parser.o lexer.o kword.o
glib-ectomy.o -L/home/sth/au/buildroot/build_arm/root/usr/lib
-lbluetooth
lexer.o(.text+0x7e0): In function `yy_get_next_buffer':
: undefined reference to `_IO_getc'
collect2: ld returned 1 exit status
make[3]: *** [hcid] Error 1
make[3]: Leaving directory
`/home/sth/au/buildroot/build_arm/bluez-utils-2.15/hcid'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/home/sth/au/buildroot/build_arm/bluez-utils-2.15'
make[1]: *** [all] Error 2
make[1]: Leaving directory
`/home/sth/au/buildroot/build_arm/bluez-utils-2.15'
make: ***
[/home/sth/au/buildroot/build_arm/bluez-utils-2.15/src/l2ping.o] Error 2
sth@speedball:~/au/buildroot$
I am new to buildroot and not very experinced with compiler flags,
especially not in a cross-compile environment. For all I know, the
extra --libdir may very well result in a hardcoded path, that
doesn't resolve on the target system.
Any help is appreciated as I am stuck!
--
Stephan Henningsen
[-- Attachment #2: bluez-packages.tar.bz --]
[-- Type: application/octet-stream, Size: 1433 bytes --]
next reply other threads:[~2005-03-17 9:52 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-17 9:52 Stephan Henningsen [this message]
2005-03-17 11:14 ` [Bluez-devel] Error compiling bluez-utils for buildroot/ARM Marcel Holtmann
2005-03-17 11:59 ` Stephan Henningsen
2005-03-17 12:38 ` Marcel Holtmann
2005-03-17 13:20 ` Stephan Henningsen
2005-03-17 13:18 ` Stephan Henningsen
2005-03-17 13:36 ` Stephan Henningsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4239536C.5030202@amplex.dk \
--to=sth@amplex.dk \
--cc=bluez-devel@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox