LinuxQuestions.org
Review your favorite Linux distribution.
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

Closed Thread
 
Search this Thread
Old 04-28-2008, 11:02 PM   #1
cloudlast
LQ Newbie
 
Registered: Apr 2008
Posts: 2

Rep: Reputation: 0
how to cross-compile bluez-utils?


Hello everybody.
These days I was trying to cross-compiling the bluez bluetooth-stack to make it work on the ARM2440 platform.My cross-compiler version is arm-linux-gcc-3.4.1 and I put it in "/usr/local/arm/3.4.1/" directory. My compiler's bin file are in "/usr/local/arm/3.4.1/bin/".
I have added "/usr/local/arm/3.4.1/bin" to my PATH.
I have cross-compiled the bluez-libs-3.30 successfully using the following command:
Code:
./configure 
--prefix=/ARM2440/applications/bluezport/libs 
--host=arm-linux 
CC=arm-linux-gcc 
CPP=arm-linux-cpp 
AR=arm-linux-ar 
STRIP=arm-linux-strip 
RANLIB=arm-linux-ranlib 
LD=arm-linux-ld 
make && make install
but when I try to cross-compiling the bluez-utils-3.30,I got failed.
This is command I used:
Code:
 ./configure 
--prefix=/ARM2440/applications/bluezport/utils
--host=arm-linux 
--disable-test 
--disable-cups
CC=arm-linux-gcc 
CPP=arm-linux-cpp
AR=arm-linux-ar 
STRIP=arm-linux-strip 
RANLIB=arm-linux-ranlib 
LD=arm-linux-ld
here things goes right.

but when I hitted the 'make' command.
it showed the error message to me
Code:
glib-helper.c:32:33: bluetooth/bluetooth.h: No such file or directory
glib-helper.c:33:27: bluetooth/sdp.h: No such file or directory
glib-helper.c:34:31: bluetooth/sdp_lib.h: No such file or directory
glib-helper.h:24: error: parse error before "sdp_list_t"
So I copied the "bluetooth" folder that contains all relevant head files to
"/usr/local/arm/3.4.1/arm-linux/include/",so the make process went on running for a while and stopped again. The error message was:
Code:
hal-libhal.c:33:24: hal/libhal.h: No such file or directory
hal-libhal.c:40: error: parse error before '*' token
So I copied the "hal" folder that contains "libhal.h" from "/usr/include" to "/usr/local/arm/3.4.1/arm-linux/include/" . I don't know that "libhal.h" is used for what,but all the same-name file I had is the one "/usr/include/hal/libhal.h" .The make process went on running for a while and stopped again.This time the error message is showed as follows:
Code:
/usr/local/arm/3.4.1/lib/gcc/arm-linux/3.4.1/../../../../arm-linux/bin/ld: skipping incompatible /lib/libdbus-1.so when searching for -ldbus-1
/usr/local/arm/3.4.1/lib/gcc/arm-linux/3.4.1/../../../../arm-linux/bin/ld: cannot find -ldbus-1
collect2: ld returned 1 exit status
make[3]: *** [hcid] Error 1
make[3]: Leaving directory `/root/bluez-utils-3.30/hcid'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/root/bluez-utils-3.30/hcid'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/bluez-utils-3.30'
make: *** [all] Error 2
I don't know why the complier searched "/lib/" for "libdbus-1.so".it is my x86 host's lib...
Maybe I made some mistakes when I ran ./configure.......?
I am troubled in this error for 5 days.I had tried many ways,but they all did nothing.I really got nothing to do now. I hope somebody can help me.
Thanks a lot!
 
Old 04-29-2008, 07:24 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,666
Blog Entries: 54

Rep: Reputation: 2952Reputation: 2952Reputation: 2952Reputation: 2952Reputation: 2952Reputation: 2952Reputation: 2952Reputation: 2952Reputation: 2952Reputation: 2952Reputation: 2952
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread should be closed because it is a duplicate of http://www.linuxquestions.org/questi...-error-638369/.
 
  


Closed Thread


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
bluez-utils cross-compiling error cloudlast Linux - Embedded & Single-board computer 4 05-07-2009 04:37 AM
Cross compiling Bluez-utils for ARM deshu Linux - Software 1 03-06-2009 02:29 PM
BlueTooth Bluez-utils porting dubrick_vit Linux - Software 2 01-29-2006 04:08 AM
Alsa utils doesn't want to compile for some reason... mogua Linux - Hardware 1 12-16-2005 05:04 AM
BLFS: nfs-utils-0.2 will not compile; rpmisc.o:218 ... SparceMatrix Linux From Scratch 4 06-22-2003 05:29 PM


All times are GMT -5. The time now is 11:10 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration