LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-14-2007, 05:19 AM   #1
deshu
LQ Newbie
 
Registered: Nov 2007
Posts: 0

Rep: Reputation: 0
Cross compiling Bluez-utils for ARM


Hi

I'm new to LQ and I already like it here. As I'm new to programming and compiling stuff in Linux I'm really happy to have found this place.

I'm a student at the University of Applied Sciences Northwestern Switzerland and currently I'm working on a embedded wireless web server project.

As you probably have guessed by now I already run into my first few problems. The most urgent task is about cross compiling the bluez-stack for my at91rm9200-board.

I have installed crosstools as my toolchain and already configured & made bluez-libs:
Code:
export CC=/usr/local/arm/3.4.2/bin/arm-unknown-linux-gnu-gcc
export GCC=/usr/local/arm/3.4.2/bin/arm-unknown-linux-gnu-gcc
export RANLIB=/usr/local/arm/3.4.2/bin/arm-unknown-linux-gnu-ranlib
export LD=/usr/local/arm/3.4.2/bin/arm-unknown-linux-gnu-ld
export nm=/usr/local/arm/3.4.2/bin/arm-unknown-linux-gnu-nm
export as=/usr/local/arm/3.4.2/bin/arm-unknown-linux-gnu-as
export AR=/usr/local/arm/3.4.2/bin/arm-unknown-linux-gnu-ar

./configure --host=arm-unknown-linux-gnu --libdir=/usr/local/arm-unknown-linux-gnu/arm-unknown-linux-gnu/lib --includedir=/usr/local/arm-unknown-linux-gnu/arm-unknown-linux-gnu/include/

make
make install
So far so good. Then I configured bluez-utils:
Code:
./configure --host=armarm-unknown-linux-gnu --libdir=/usr/local/arm-unknown-linux-gnu/arm-unknown-linux-gnu/lib --includedir=/usr/local/arm-unknown-linux-gnu/arm-unknown-linux-gnu/include/ --with-bluez=/cross/bluez-libs-3.22 LDFLAGS=-L"/usr/local/arm-unknown-linux-gnu/arm-unknown-linux-gnu/lib"
Then I hit the make and got the following:
Code:
make  all-recursive
make[1]: Entering directory `/cross/bluez-utils-3.22'
Making all in sbc
make[2]: Entering directory `/cross/bluez-utils-3.22/sbc'
/bin/sh ../libtool --tag=CC   --mode=compile /usr/local/arm/3.4.2/bin/arm-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..     -Wall -O2 -D_FORTIFY_SOURCE=2 -MT sbc.lo -MD -MP -MF .deps/sbc.Tpo -c -o sbc.lo sbc.c
mkdir .libs
 /usr/local/arm/3.4.2/bin/arm-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -Wall -O2 -D_FORTIFY_SOURCE=2 -MT sbc.lo -MD -MP -MF .deps/sbc.Tpo -c sbc.c  -fPIC -DPIC -o .libs/sbc.o
mv -f .deps/sbc.Tpo .deps/sbc.Plo
/bin/sh ../libtool --tag=CC   --mode=link /usr/local/arm/3.4.2/bin/arm-unknown-linux-gnu-gcc  -Wall -O2 -D_FORTIFY_SOURCE=2  -L/usr/local/arm-unknown-linux-gnu/arm-unknown-linux-gnu/lib -o libsbc.la  sbc.lo
/usr/local/arm/3.4.2/bin/arm-unknown-linux-gnu-ar cru .libs/libsbc.a .libs/sbc.o
/usr/local/arm/3.4.2/bin/arm-unknown-linux-gnu-ranlib .libs/libsbc.a
creating libsbc.la
(cd .libs && rm -f libsbc.la && ln -s ../libsbc.la libsbc.la)
/usr/local/arm/3.4.2/bin/arm-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..     -Wall -O2 -D_FORTIFY_SOURCE=2 -MT sbcinfo.o -MD -MP -MF .deps/sbcinfo.Tpo -c -o sbcinfo.o sbcinfo.c
mv -f .deps/sbcinfo.Tpo .deps/sbcinfo.Po
/bin/sh ../libtool --tag=CC   --mode=link /usr/local/arm/3.4.2/bin/arm-unknown-linux-gnu-gcc  -Wall -O2 -D_FORTIFY_SOURCE=2  -L/usr/local/arm-unknown-linux-gnu/arm-unknown-linux-gnu/lib -o sbcinfo sbcinfo.o
/usr/local/arm/3.4.2/bin/arm-unknown-linux-gnu-gcc -Wall -O2 -D_FORTIFY_SOURCE=2 -o sbcinfo sbcinfo.o  -L/usr/local/arm-unknown-linux-gnu/arm-unknown-linux-gnu/lib
/usr/local/arm/3.4.2/bin/arm-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..     -Wall -O2 -D_FORTIFY_SOURCE=2 -MT sbcdec.o -MD -MP -MF .deps/sbcdec.Tpo -c -o sbcdec.o sbcdec.c
mv -f .deps/sbcdec.Tpo .deps/sbcdec.Po
/bin/sh ../libtool --tag=CC   --mode=link /usr/local/arm/3.4.2/bin/arm-unknown-linux-gnu-gcc  -Wall -O2 -D_FORTIFY_SOURCE=2  -L/usr/local/arm-unknown-linux-gnu/arm-unknown-linux-gnu/lib -o sbcdec sbcdec.o libsbc.la
/usr/local/arm/3.4.2/bin/arm-unknown-linux-gnu-gcc -Wall -O2 -D_FORTIFY_SOURCE=2 -o sbcdec sbcdec.o  -L/usr/local/arm-unknown-linux-gnu/arm-unknown-linux-gnu/lib ./.libs/libsbc.a
/usr/local/arm/3.4.2/bin/arm-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..     -Wall -O2 -D_FORTIFY_SOURCE=2 -MT sbcenc.o -MD -MP -MF .deps/sbcenc.Tpo -c -o sbcenc.o sbcenc.c
mv -f .deps/sbcenc.Tpo .deps/sbcenc.Po
/bin/sh ../libtool --tag=CC   --mode=link /usr/local/arm/3.4.2/bin/arm-unknown-linux-gnu-gcc  -Wall -O2 -D_FORTIFY_SOURCE=2  -L/usr/local/arm-unknown-linux-gnu/arm-unknown-linux-gnu/lib -o sbcenc sbcenc.o libsbc.la
/usr/local/arm/3.4.2/bin/arm-unknown-linux-gnu-gcc -Wall -O2 -D_FORTIFY_SOURCE=2 -o sbcenc sbcenc.o  -L/usr/local/arm-unknown-linux-gnu/arm-unknown-linux-gnu/lib ./.libs/libsbc.a
make[2]: Leaving directory `/cross/bluez-utils-3.22/sbc'
Making all in eglib
make[2]: Entering directory `/cross/bluez-utils-3.22/eglib'
/bin/sh ../libtool --tag=CC   --mode=compile /usr/local/arm/3.4.2/bin/arm-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..     -Wall -O2 -D_FORTIFY_SOURCE=2 -MT gmain.lo -MD -MP -MF .deps/gmain.Tpo -c -o gmain.lo gmain.c
mkdir .libs
 /usr/local/arm/3.4.2/bin/arm-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -Wall -O2 -D_FORTIFY_SOURCE=2 -MT gmain.lo -MD -MP -MF .deps/gmain.Tpo -c gmain.c  -fPIC -DPIC -o .libs/gmain.o
mv -f .deps/gmain.Tpo .deps/gmain.Plo
/bin/sh ../libtool --tag=CC   --mode=link /usr/local/arm/3.4.2/bin/arm-unknown-linux-gnu-gcc  -Wall -O2 -D_FORTIFY_SOURCE=2  -L/usr/local/arm-unknown-linux-gnu/arm-unknown-linux-gnu/lib -o libeglib.la  gmain.lo
/usr/local/arm/3.4.2/bin/arm-unknown-linux-gnu-ar cru .libs/libeglib.a .libs/gmain.o
/usr/local/arm/3.4.2/bin/arm-unknown-linux-gnu-ranlib .libs/libeglib.a
creating libeglib.la
(cd .libs && rm -f libeglib.la && ln -s ../libeglib.la libeglib.la)
make[2]: Leaving directory `/cross/bluez-utils-3.22/eglib'
Making all in common
make[2]: Entering directory `/cross/bluez-utils-3.22/common'
/usr/local/arm/3.4.2/bin/arm-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..    -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include   -I../eglib -Wall -O2 -D_FORTIFY_SOURCE=2 -MT oui.o -MD -MP -MF .deps/oui.Tpo -c -o oui.o oui.c
mv -f .deps/oui.Tpo .deps/oui.Po
/usr/local/arm/3.4.2/bin/arm-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..    -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include   -I../eglib -Wall -O2 -D_FORTIFY_SOURCE=2 -MT dbus.o -MD -MP -MF .deps/dbus.Tpo -c -o dbus.o dbus.c
mv -f .deps/dbus.Tpo .deps/dbus.Po
/usr/local/arm/3.4.2/bin/arm-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..    -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include   -I../eglib -Wall -O2 -D_FORTIFY_SOURCE=2 -MT textfile.o -MD -MP -MF .deps/textfile.Tpo -c -o textfile.o textfile.c
mv -f .deps/textfile.Tpo .deps/textfile.Po
/usr/local/arm/3.4.2/bin/arm-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..    -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include   -I../eglib -Wall -O2 -D_FORTIFY_SOURCE=2 -MT logging.o -MD -MP -MF .deps/logging.Tpo -c -o logging.o logging.c
mv -f .deps/logging.Tpo .deps/logging.Po
/usr/local/arm/3.4.2/bin/arm-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..    -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include   -I../eglib -Wall -O2 -D_FORTIFY_SOURCE=2 -MT dbus-helper.o -MD -MP -MF .deps/dbus-helper.Tpo -c -o dbus-helper.o dbus-helper.c
mv -f .deps/dbus-helper.Tpo .deps/dbus-helper.Po
/usr/local/arm/3.4.2/bin/arm-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..    -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include   -I../eglib -Wall -O2 -D_FORTIFY_SOURCE=2 -MT sdp-xml.o -MD -MP -MF .deps/sdp-xml.Tpo -c -o sdp-xml.o sdp-xml.c
mv -f .deps/sdp-xml.Tpo .deps/sdp-xml.Po
/usr/local/arm/3.4.2/bin/arm-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..    -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include   -I../eglib -Wall -O2 -D_FORTIFY_SOURCE=2 -MT sdp-dummy.o -MD -MP -MF .deps/sdp-dummy.Tpo -c -o sdp-dummy.o sdp-dummy.c
mv -f .deps/sdp-dummy.Tpo .deps/sdp-dummy.Po
/usr/local/arm/3.4.2/bin/arm-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..    -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include   -I../eglib -Wall -O2 -D_FORTIFY_SOURCE=2 -MT hal-dummy.o -MD -MP -MF .deps/hal-dummy.Tpo -c -o hal-dummy.o hal-dummy.c
mv -f .deps/hal-dummy.Tpo .deps/hal-dummy.Po
/usr/local/arm/3.4.2/bin/arm-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..    -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include   -I../eglib -Wall -O2 -D_FORTIFY_SOURCE=2 -MT notify-dummy.o -MD -MP -MF .deps/notify-dummy.Tpo -c -o notify-dummy.o notify-dummy.c
mv -f .deps/notify-dummy.Tpo .deps/notify-dummy.Po
rm -f libhelper.a
/usr/local/arm/3.4.2/bin/arm-unknown-linux-gnu-ar cru libhelper.a oui.o dbus.o textfile.o logging.o dbus-helper.o sdp-xml.o sdp-dummy.o hal-dummy.o notify-dummy.o
/usr/local/arm/3.4.2/bin/arm-unknown-linux-gnu-ranlib libhelper.a
/usr/local/arm/3.4.2/bin/arm-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..    -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include   -I../eglib -Wall -O2 -D_FORTIFY_SOURCE=2 -MT test_textfile.o -MD -MP -MF .deps/test_textfile.Tpo -c -o test_textfile.o test_textfile.c
mv -f .deps/test_textfile.Tpo .deps/test_textfile.Po
/bin/sh ../libtool --tag=CC   --mode=link /usr/local/arm/3.4.2/bin/arm-unknown-linux-gnu-gcc -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include   -I../eglib -Wall -O2 -D_FORTIFY_SOURCE=2  -L/usr/local/arm-unknown-linux-gnu/arm-unknown-linux-gnu/lib -o test_textfile test_textfile.o libhelper.a
mkdir .libs
/usr/local/arm/3.4.2/bin/arm-unknown-linux-gnu-gcc -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I../eglib -Wall -O2 -D_FORTIFY_SOURCE=2 -o test_textfile test_textfile.o  -L/usr/local/arm-unknown-linux-gnu/arm-unknown-linux-gnu/lib libhelper.a
make[2]: Leaving directory `/cross/bluez-utils-3.22/common'
Making all in sdpd
make[2]: Entering directory `/cross/bluez-utils-3.22/sdpd'
/usr/local/arm/3.4.2/bin/arm-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I../common   -I/usr/local/include   -I../eglib -Wall -O2 -D_FORTIFY_SOURCE=2 -MT server.o -MD -MP -MF .deps/server.Tpo -c -o server.o server.c
mv -f .deps/server.Tpo .deps/server.Po
/usr/local/arm/3.4.2/bin/arm-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I../common   -I/usr/local/include   -I../eglib -Wall -O2 -D_FORTIFY_SOURCE=2 -MT cstate.o -MD -MP -MF .deps/cstate.Tpo -c -o cstate.o cstate.c
mv -f .deps/cstate.Tpo .deps/cstate.Po
/usr/local/arm/3.4.2/bin/arm-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I../common   -I/usr/local/include   -I../eglib -Wall -O2 -D_FORTIFY_SOURCE=2 -MT request.o -MD -MP -MF .deps/request.Tpo -c -o request.o request.c
mv -f .deps/request.Tpo .deps/request.Po
/usr/local/arm/3.4.2/bin/arm-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I../common   -I/usr/local/include   -I../eglib -Wall -O2 -D_FORTIFY_SOURCE=2 -MT service.o -MD -MP -MF .deps/service.Tpo -c -o service.o service.c
mv -f .deps/service.Tpo .deps/service.Po
/usr/local/arm/3.4.2/bin/arm-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I../common   -I/usr/local/include   -I../eglib -Wall -O2 -D_FORTIFY_SOURCE=2 -MT servicedb.o -MD -MP -MF .deps/servicedb.Tpo -c -o servicedb.o servicedb.c
mv -f .deps/servicedb.Tpo .deps/servicedb.Po
rm -f libsdpserver.a
/usr/local/arm/3.4.2/bin/arm-unknown-linux-gnu-ar cru libsdpserver.a server.o cstate.o request.o service.o servicedb.o
/usr/local/arm/3.4.2/bin/arm-unknown-linux-gnu-ranlib libsdpserver.a
/usr/local/arm/3.4.2/bin/arm-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I../common   -I/usr/local/include   -I../eglib -Wall -O2 -D_FORTIFY_SOURCE=2 -MT main.o -MD -MP -MF .deps/main.Tpo -c -o main.o main.c
mv -f .deps/main.Tpo .deps/main.Po
/bin/sh ../libtool --tag=CC   --mode=link /usr/local/arm/3.4.2/bin/arm-unknown-linux-gnu-gcc -I/usr/local/include   -I../eglib -Wall -O2 -D_FORTIFY_SOURCE=2  -L/usr/local/arm-unknown-linux-gnu/arm-unknown-linux-gnu/lib -o sdpd main.o libsdpserver.a ../common/libhelper.a ../eglib/libeglib.la -L/usr/local/lib -lbluetooth
mkdir .libs
/usr/local/arm/3.4.2/bin/arm-unknown-linux-gnu-gcc -I/usr/local/include -I../eglib -Wall -O2 -D_FORTIFY_SOURCE=2 -o sdpd main.o  -L/usr/local/arm-unknown-linux-gnu/arm-unknown-linux-gnu/lib libsdpserver.a ../common/libhelper.a ../eglib/.libs/libeglib.a -L/usr/local/lib /usr/local/arm-unknown-linux-gnu/arm-unknown-linux-gnu/lib/libbluetooth.so   -Wl,--rpath -Wl,/usr/local/arm-unknown-linux-gnu/arm-unknown-linux-gnu/lib -Wl,--rpath -Wl,/usr/local/arm-unknown-linux-gnu/arm-unknown-linux-gnu/lib
make[2]: Leaving directory `/cross/bluez-utils-3.22/sdpd'
Making all in hcid
make[2]: Entering directory `/cross/bluez-utils-3.22/hcid'
test -f parser.c || /bin/sh ../ylwrap parser.y y.tab.c parser.c y.tab.h parser.h y.output parser.output -- bison -y  -d
conflicts: 18 shift/reduce
updating parser.h
make  all-am
make[3]: Entering directory `/cross/bluez-utils-3.22/hcid'
/usr/local/arm/3.4.2/bin/arm-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I../common -I../sdpd   -I/usr/local/include   -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include   -I../eglib -Wall -O2 -D_FORTIFY_SOURCE=2 -MT security.o -MD -MP -MF .deps/security.Tpo -c -o security.o security.c
mv -f .deps/security.Tpo .deps/security.Po
/usr/local/arm/3.4.2/bin/arm-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I../common -I../sdpd   -I/usr/local/include   -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include   -I../eglib -Wall -O2 -D_FORTIFY_SOURCE=2 -MT storage.o -MD -MP -MF .deps/storage.Tpo -c -o storage.o storage.c
mv -f .deps/storage.Tpo .deps/storage.Po
/usr/local/arm/3.4.2/bin/arm-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I../common -I../sdpd   -I/usr/local/include   -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include   -I../eglib -Wall -O2 -D_FORTIFY_SOURCE=2 -MT parser.o -MD -MP -MF .deps/parser.Tpo -c -o parser.o parser.c
mv -f .deps/parser.Tpo .deps/parser.Po
test -f lexer.c || /bin/sh ../ylwrap lexer.l lex.yy.c lexer.c -- flex
/usr/local/arm/3.4.2/bin/arm-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I../common -I../sdpd   -I/usr/local/include   -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include   -I../eglib -Wall -O2 -D_FORTIFY_SOURCE=2 -MT lexer.o -MD -MP -MF .deps/lexer.Tpo -c -o lexer.o lexer.c
mv -f .deps/lexer.Tpo .deps/lexer.Po
/usr/local/arm/3.4.2/bin/arm-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I../common -I../sdpd   -I/usr/local/include   -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include   -I../eglib -Wall -O2 -D_FORTIFY_SOURCE=2 -MT kword.o -MD -MP -MF .deps/kword.Tpo -c -o kword.o kword.c
mv -f .deps/kword.Tpo .deps/kword.Po
/usr/local/arm/3.4.2/bin/arm-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I../common -I../sdpd   -I/usr/local/include   -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include   -I../eglib -Wall -O2 -D_FORTIFY_SOURCE=2 -MT server.o -MD -MP -MF .deps/server.Tpo -c -o server.o server.c
mv -f .deps/server.Tpo .deps/server.Po
/usr/local/arm/3.4.2/bin/arm-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I../common -I../sdpd   -I/usr/local/include   -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include   -I../eglib -Wall -O2 -D_FORTIFY_SOURCE=2 -MT manager.o -MD -MP -MF .deps/manager.Tpo -c -o manager.o manager.c
mv -f .deps/manager.Tpo .deps/manager.Po
/usr/local/arm/3.4.2/bin/arm-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I../common -I../sdpd   -I/usr/local/include   -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include   -I../eglib -Wall -O2 -D_FORTIFY_SOURCE=2 -MT adapter.o -MD -MP -MF .deps/adapter.Tpo -c -o adapter.o adapter.c
mv -f .deps/adapter.Tpo .deps/adapter.Po
/usr/local/arm/3.4.2/bin/arm-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I../common -I../sdpd   -I/usr/local/include   -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include   -I../eglib -Wall -O2 -D_FORTIFY_SOURCE=2 -MT device.o -MD -MP -MF .deps/device.Tpo -c -o device.o device.c
mv -f .deps/device.Tpo .deps/device.Po
/usr/local/arm/3.4.2/bin/arm-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I../common -I../sdpd   -I/usr/local/include   -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include   -I../eglib -Wall -O2 -D_FORTIFY_SOURCE=2 -MT dbus-common.o -MD -MP -MF .deps/dbus-common.Tpo -c -o dbus-common.o dbus-common.c
mv -f .deps/dbus-common.Tpo .deps/dbus-common.Po
/usr/local/arm/3.4.2/bin/arm-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I../common -I../sdpd   -I/usr/local/include   -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include   -I../eglib -Wall -O2 -D_FORTIFY_SOURCE=2 -MT dbus-error.o -MD -MP -MF .deps/dbus-error.Tpo -c -o dbus-error.o dbus-error.c
mv -f .deps/dbus-error.Tpo .deps/dbus-error.Po
/usr/local/arm/3.4.2/bin/arm-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I../common -I../sdpd   -I/usr/local/include   -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include   -I../eglib -Wall -O2 -D_FORTIFY_SOURCE=2 -MT dbus-database.o -MD -MP -MF .deps/dbus-database.Tpo -c -o dbus-database.o dbus-database.c
mv -f .deps/dbus-database.Tpo .deps/dbus-database.Po
/usr/local/arm/3.4.2/bin/arm-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I../common -I../sdpd   -I/usr/local/include   -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include   -I../eglib -Wall -O2 -D_FORTIFY_SOURCE=2 -MT dbus-security.o -MD -MP -MF .deps/dbus-security.Tpo -c -o dbus-security.o dbus-security.c
mv -f .deps/dbus-security.Tpo .deps/dbus-security.Po
/usr/local/arm/3.4.2/bin/arm-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I../common -I../sdpd   -I/usr/local/include   -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include   -I../eglib -Wall -O2 -D_FORTIFY_SOURCE=2 -MT dbus-service.o -MD -MP -MF .deps/dbus-service.Tpo -c -o dbus-service.o dbus-service.c
mv -f .deps/dbus-service.Tpo .deps/dbus-service.Po
/usr/local/arm/3.4.2/bin/arm-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I../common -I../sdpd   -I/usr/local/include   -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include   -I../eglib -Wall -O2 -D_FORTIFY_SOURCE=2 -MT dbus-test.o -MD -MP -MF .deps/dbus-test.Tpo -c -o dbus-test.o dbus-test.c
mv -f .deps/dbus-test.Tpo .deps/dbus-test.Po
/usr/local/arm/3.4.2/bin/arm-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I../common -I../sdpd   -I/usr/local/include   -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include   -I../eglib -Wall -O2 -D_FORTIFY_SOURCE=2 -MT dbus-hci.o -MD -MP -MF .deps/dbus-hci.Tpo -c -o dbus-hci.o dbus-hci.c
mv -f .deps/dbus-hci.Tpo .deps/dbus-hci.Po
/usr/local/arm/3.4.2/bin/arm-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I../common -I../sdpd   -I/usr/local/include   -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include   -I../eglib -Wall -O2 -D_FORTIFY_SOURCE=2 -MT dbus-sdp.o -MD -MP -MF .deps/dbus-sdp.Tpo -c -o dbus-sdp.o dbus-sdp.c
mv -f .deps/dbus-sdp.Tpo .deps/dbus-sdp.Po
rm -f libhciserver.a
/usr/local/arm/3.4.2/bin/arm-unknown-linux-gnu-ar cru libhciserver.a security.o storage.o parser.o lexer.o kword.o server.o manager.o adapter.o device.o dbus-common.o dbus-error.o dbus-database.o dbus-security.o dbus-service.o dbus-test.o dbus-hci.o dbus-sdp.o
/usr/local/arm/3.4.2/bin/arm-unknown-linux-gnu-ranlib libhciserver.a
/usr/local/arm/3.4.2/bin/arm-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I../common -I../sdpd   -I/usr/local/include   -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include   -I../eglib -Wall -O2 -D_FORTIFY_SOURCE=2 -MT main.o -MD -MP -MF .deps/main.Tpo -c -o main.o main.c
mv -f .deps/main.Tpo .deps/main.Po
/bin/sh ../libtool --tag=CC   --mode=link /usr/local/arm/3.4.2/bin/arm-unknown-linux-gnu-gcc -I/usr/local/include   -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include   -I../eglib -Wall -O2 -D_FORTIFY_SOURCE=2  -L/usr/local/arm-unknown-linux-gnu/arm-unknown-linux-gnu/lib -o hcid main.o libhciserver.a ../sdpd/libsdpserver.a ../common/libhelper.a ../eglib/libeglib.la -L/lib -ldbus-1   -L/usr/local/lib -lbluetooth
mkdir .libs
/usr/local/arm/3.4.2/bin/arm-unknown-linux-gnu-gcc -I/usr/local/include -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I../eglib -Wall -O2 -D_FORTIFY_SOURCE=2 -o hcid main.o  -L/usr/local/arm-unknown-linux-gnu/arm-unknown-linux-gnu/lib libhciserver.a ../sdpd/libsdpserver.a ../common/libhelper.a ../eglib/.libs/libeglib.a -L/lib -ldbus-1 -L/usr/local/lib /usr/local/arm-unknown-linux-gnu/arm-unknown-linux-gnu/lib/libbluetooth.so   -Wl,--rpath -Wl,/usr/local/arm-unknown-linux-gnu/arm-unknown-linux-gnu/lib -Wl,--rpath -Wl,/usr/local/arm-unknown-linux-gnu/arm-unknown-linux-gnu/lib
/opt/crosstool/gcc-3.4.2-glibc-2.2.5/arm-unknown-linux-gnu/lib/gcc/arm-unknown-linux-gnu/3.4.2/../../../../arm-unknown-linux-gnu/bin/ld: skipping incompatible /lib/libdbus-1.so when searching for -ldbus-1
/opt/crosstool/gcc-3.4.2-glibc-2.2.5/arm-unknown-linux-gnu/lib/gcc/arm-unknown-linux-gnu/3.4.2/../../../../arm-unknown-linux-gnu/bin/ld: cannot find -ldbus-1
collect2: ld returned 1 exit status
make[3]: *** [hcid] Error 1
make[3]: Leaving directory `/cross/bluez-utils-3.22/hcid'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/cross/bluez-utils-3.22/hcid'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/cross/bluez-utils-3.22'
make: *** [all] Error 2
I'm not sure what to do now, it seems I have to set some path to the right lib or else it looks for it in /lib.

I really would appreciate your help.

Chris
 
Old 03-06-2009, 01:29 PM   #2
harman121
LQ Newbie
 
Registered: Mar 2009
Posts: 1

Rep: Reputation: 0
hiii Chris
I was also facing the same problem ie with bluez lib 3.22, THen I went for an older version of the Bluez lib and utilities ie bluez 2.25..... It is not showing any problem and compiling easily
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cross compiling utftpd on arm linux SachinTCS Linux - Software 1 04-13-2007 10:03 PM
Cross compiling utftpd on x86 for arm SachinTCS Linux - Software 1 04-13-2007 09:50 PM
Cross compiling utftpd for arm SachinTCS Linux - Desktop 1 04-13-2007 02:11 AM
cross compiling packages like PWLIB for ARM Anurag_Arjun Programming 0 01-18-2006 12:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:56 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration