LinuxQuestions.org
Visit Jeremy's Blog.
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 01-27-2006, 11:03 AM   #1
dubrick_vit
LQ Newbie
 
Registered: Jan 2006
Posts: 3

Rep: Reputation: 0
BlueTooth Bluez-utils porting


I'm trying to port bluez-utils (utilities for BlueTooth Linux), version 2.24, to the MIPS processor.
I configure the template makefile using mipsel-uClibc. The configured makefile seems ok (e.g. it includes CC = mipsel-linux-gcc)
When cross-compiling on a PC platform, although mipsel-linux-gcc is being used, a default library loader of PC (ld.so.0) is used instead of ld-uClibc.so.0.
How can I force the loader to use ld-uClibc.so.0
 
Old 01-28-2006, 10:25 AM   #2
Oliv'
Senior Member
 
Registered: Jan 2004
Location: Montpellier (France)
Distribution: Gentoo
Posts: 1,014

Rep: Reputation: 36
Hi,

from my point of view, the simpler is to work in a chrooted environnement which contains mips compiled librairies.
you may also try to use -rpath-link option

Oliv'
 
Old 01-29-2006, 03:08 AM   #3
dubrick_vit
LQ Newbie
 
Registered: Jan 2006
Posts: 3

Original Poster
Rep: Reputation: 0
another problem with Bluez-utils-2.24

I found solution for loader's problem (flags -Wl,-dynamic-linker,--path to uClibc---).
But now I have a problem with library itself.
I'm trying to compile bluez-utils-2.24 project for Linux 2.4.20 that
runs on MIPS. This cross-compilation was done on my desktop Linux
2.6.12. All needed drivers (HCI, RFCOMM, L2CAP) were uploaded to the
MIPS-board early (after some patches for kernel 2.4.20 that I found in
internet).

I configured the environment with the following variables:
export PLATFORM=mipsel-uclibc
export BUILD=i386-pc-linux-gnu
export HOSTCC=gcc
export CROSS_COMPILE=mipsel-uclibc-
export LDFLAGS=-Wl,-dynamic-linker,/lib/ld-uClibc.so.0,-soname=libc.so.0
and runned
./configure mipsel-linux --build=$BUILD.
Making the project was OK, it used "mipsel-linux-gcc", etc., so it
seemed OK.

After uploading all the bluez utilities on the MIPS-board, each call for
these utilities (i.e. "hciconfig") failed with such a prompt:
libc.so.6: aborted attempt to load hciconfig!

As I understood, it still used my desktop standard library (cause
"libc.so.6" is a symbolic link in /usr/local/lib on my PC) instead the
libc.so.0 on the MIPS-board.
Even LDFLAG "-soname=libc.so.0", which I added (see above) did not force
it to define right library in building executables.

Could someone help me in configuring this project?
What did I miss?
 
  


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
bluez & bluetooth & Sony T630 norkers Linux - Software 2 05-13-2005 06:18 AM
missing Bluez triona Fedora 1 05-05-2005 04:36 AM
"bluetooth" rather than "bluez" triona Linux - Software 2 02-08-2005 03:57 PM
USB bluetooth w/ bluez on 2.6.8.1 (slackware 10) mo0 Slackware 0 10-03-2004 03:30 AM
Bluez????? abhay7182 Linux - Laptop and Netbook 0 08-20-2004 05:00 AM


All times are GMT -5. The time now is 11:16 AM.

Main Menu
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