Skip to contentSkip to conversation

cross-compiling bluez-utils.3.1

Bluez-devel Robert Wlaschin 6 participants 9 messages Jun 28, 2006 – Jul 19, 2006 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

Hi,

I seem to be having problems with the latest version of bluez-utils. It seems that dbus is a required component of the 3.1 release; which isn't cross-compile friendly (the dbus build complains about cross-compiling) -- a previous version of bluez-utils (2.21) is. In the 2.21 release there was an option to compile without dbus, is there a work around for the 3.1/if so, how? If not, any suggestions about cross-compiling the stock bluez-utils.3.1 (including dbus as necessary) for an ARM processor?

Robert

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

#1 lore raw

Hi Robert,

Quoted 13 lines · Robert Wlaschin

I seem to be having problems with the latest version of bluez-utils. It seems
that dbus is a required component of the 3.1 release; which isn't cross-compile
friendly (the dbus build complains about cross-compiling) -- a previous version
of bluez-utils (2.21) is. In the 2.21 release there was an option to compile
without dbus, is there a work around for the 3.1/if so, how? If not, any suggestions about cross-compiling the stock bluez-utils.3.1 (including dbus as
necessary) for an ARM processor?

Quoted 1 line

Robert

Actually the latest bluez-utils are not even compiling on PC. It complains that dbus package is not present.

Regards,
Mayank

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

maintainer
#4 lore raw
In reply to Robert Wlaschin

Hi Robert,

Quoted 7 lines

I seem to be having problems with the latest version of bluez-utils. It seems that dbus is a required component of the 3.1 release; which isn't cross-compile friendly (the dbus build complains about cross-compiling) -- a previous version of bluez-utils (2.21) is. In the 2.21 release there was an option to compile without dbus, is there a work around for the 3.1/if so, how? If not, any suggestions about cross-compiling the stock bluez-utils.3.1 (including dbus as necessary) for an ARM processor?

the D-Bus library is mandatory now. Hence the new major version number.

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

#2 lore raw
In reply to Mayank Batra
Quoted 25 lines · Mayank Batra <mayankbatra <at> gmail.com> writes:

Hi Robert,
On 6/28/06, Robert Wlaschin <robertw <at> healthhero.com> wrote:
I seem to be having problems with the latest version of bluez-utils. It seemsthat dbus is a required component of the
3.1 release; which isn't cross-compilefriendly (the dbus build complains about cross-compiling) -- a previous versionof bluez-utils (2.21) is. In the 2.21 release there was an option to compilewithout dbus, is there a work around for the 3.1/if so, how? If not, anysuggestions about cross-compiling the stock bluez-utils.3.1 (including dbus asnecessary) for an ARM processor?Robert

Actually the latest bluez-utils are not even compiling on PC. It complains that dbus package is not present.

Regards,
Mayank

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

Quoted 5 lines

_______________________________________________
Bluez-devel mailing list
Bluez-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

Mayank,

Thanks for the response. There are some posts in the forum about problems with cross-compiling.

To get past the dbus problem, if you don't already have the dbus source you'll need to get it from http://www.freedesktop.org/wiki/Software/dbus, after that you'll need to get a new version of bluez-utils-3.1/acinclude.m4 from the bluez CVS -- there is a bug in this file that looks for the incorrect dbus libs. After you have updated that file follow the instructions in INSTALL for rebuilding the configuration script.

As a side note you may need to add PKG_CONFIG_PATH=$(BLUEZ_LIBS_BUILD_DIR) to your command-line when running ./configuration (BLUEZ_LIBS_BUILD_DIR is a make variable that needs to point to your bluez-libs-3.1 directory).

Please search the group for more information concerning this issue. I hope this helps.

Robert

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

#5 lore raw
In reply to Marcel Holtmann
Quoted 5 lines

the D-Bus library is mandatory now. Hence the new major version number.

Regards

Marcel

D-Bus seems like a useful tool for desktops, but possibly overkill and/or unnecessary for embedded systems. Also, as noted before, D-Bus will not build out of the box for cross-compiled systems such as ARM. Since a lot of embedded systems use Bluetooth, this seems problematic.

What exactly does D-Bus supply in terms of necessary/useful functionality for Bluetooth, and how difficult would it be to work around having to use it? (I have not taken a serious look at the new release yet, as I'm still working on a basic understanding of the 2.21 version).
sf

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

maintainer
#6 lore raw

Hi Steve,

Quoted 4 lines

D-Bus seems like a useful tool for desktops, but possibly overkill and/or unnecessary for embedded systems. Also, as noted before, D-Bus will not build out of the box for cross-compiled systems such as ARM. Since a lot of embedded systems use Bluetooth, this seems problematic.

I am aware of embedded systems and a long time this was the reason for keeping D-Bus optional. In the long run it is not worth it and it would only increase the complexity. Devices like the Nokia 770 proved that we can handle D-Bus in the embedded area and if there are problems, they must be addressed in D-Bus.

Quoted 4 lines

What exactly does D-Bus supply in terms of necessary/useful functionality for Bluetooth, and how difficult would it be to work around having to use it? (I have not taken a serious look at the new release yet, as I'm still working on a basic understanding of the 2.21 version).

D-Bus is a message bus (IPC based). Something like RPC and it makes writing client applications a lot easier. The BlueZ D-Bus API provides a clean interface to basic Bluetooth tasks. You don't need any knowledge about HCI anymore. You can also write your application in C, C++, Java, Python, C# etc. and they don't need to be put under GPL.

Trying to implement your own message bus to avoid the D-Bus dependency is not worth it. We considered it in the beginning, but this would increase the complexity without any real benefit.

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

#3 lore raw
In reply to Robert Wlaschin

Hi Robert,

Quoted 5 lines · Robert Wlaschin

To get past the dbus problem, if you don't already have the dbus source you'll
need to get it from http://www.freedesktop.org/wiki/Software/dbus, after that

I've got the DBus sources, and it is working fine.

you'll need to get a new version of bluez-utils-3.1/acinclude.m4 from the

Quoted 2 lines

bluez
CVS -- there is a bug in this file that looks for the incorrect dbus libs.

I think that the CVS is down, can you please send it to me by mail?

Thanks.

Mayank

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

#7 lore raw
In reply to Marcel Holtmann

hello,marcel:
I have a stupid question:can Bluez 3.1 run on ARM system?
I cross-compiled the 3.1.and got lots of error.
is there anyone have success cross-compile 3.1 to ARM?could you give me some advice?
thanks very much.

2006/6/29, Marcel Holtmann <[email protected]>:

Quoted 38 lines

Hi Steve,

Quoted 4 lines

D-Bus seems like a useful tool for desktops, but possibly overkill and/or unnecessary for embedded systems. Also, as noted before, D-Bus will not build out of the box for cross-compiled systems such as ARM. Since a lot of embedded systems use Bluetooth, this seems problematic.

I am aware of embedded systems and a long time this was the reason for keeping D-Bus optional. In the long run it is not worth it and it would only increase the complexity. Devices like the Nokia 770 proved that we can handle D-Bus in the embedded area and if there are problems, they must be addressed in D-Bus.

Quoted 1 line

What exactly does D-Bus supply in terms of necessary/useful

functionality for

Quoted 1 line

Bluetooth, and how difficult would it be to work around having to use

it? (I

Quoted 1 line

have not taken a serious look at the new release yet, as I'm still

working

Quoted 1 line

on a basic understanding of the 2.21 version).

D-Bus is a message bus (IPC based). Something like RPC and it makes writing client applications a lot easier. The BlueZ D-Bus API provides a clean interface to basic Bluetooth tasks. You don't need any knowledge about HCI anymore. You can also write your application in C, C++, Java, Python, C# etc. and they don't need to be put under GPL.

Trying to implement your own message bus to avoid the D-Bus dependency is not worth it. We considered it in the beginning, but this would increase the complexity without any real benefit.

Regards

Marcel

Quoted 10 lines

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

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

#8 lore raw
Quoted 8 lines · ifq

hello,marcel:
I have a stupid question:can Bluez 3.1 run on ARM system?
I cross-compiled the 3.1.and got lots of error.
is there anyone have success cross-compile 3.1 to ARM?could you give me some advice?
thanks very much.

Yes, U can . I myself did it using scratchbox for
cross-compilation.Itworked fine.

regards,
rahul

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel