[maemo-developers] openobex and bluetooth problem, Maemo 4.1.2
From: Christian Kuersteiner ckuerste at gmx.chDate: Wed May 27 05:15:36 EEST 2009
- Previous message: openobex and bluetooth problem, Maemo 4.1.2
- Next message: Problems Installing Fremantle Beta SDK
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Johan Hedberg wrote: > Hi, > > On Tue, May 26, 2009, Christian Kuersteiner wrote: >> Has anybody some experience with libopenobex and bluetooth? Is it >> possible that bluetooth is not supported with the openobex library for >> maemo? > > You can use the maemo libopenobex with Bluetooth but you need to use > FdOBEX_TransportSetup and give it a connected RFCOMM socket. The BtOBEX* > functions are not available in the maemo version of openobex since > including them would mean linking with libbluetooth which in turn would > mean that libopenobex (and all applications linked to it) would become GPL > (instead of LGPL which is its intended license). Perfect! That's the information I was missing. It works with FdOBEX_TransportSetup as intended. I didn't think that the license may have an influence. Also I didn't found any information related to the usage of FdOBEX_TransportSetup with libopenobex when using with bluetooh in the reference manual for maemo 4.1 nor on any other places I was looking. Did I miss something? >> From googling about I saw that this is normally a problem with not >> giving the library to the linker. But I give the parameters "-lgwobex >> -lglib-2.0 -lopenobex" which are needed for libgwobex and the linker >> doesn't complain that there is not such a library. May somebody give me >> a hint what is going wrong and where I might look for a solution? I am >> sure it is a probably stupid error in my setup but I just get out of ideas. > > It's a long time since I last did anything with gwobex, but the provided > pkg-config files should contain the right compiler and linker options. > Your issue might also be something C++ specific (I noticed your .cpp > suffix) which I know very little about. You might also want to take a look > at osso-obc which is a command line obex client that uses gwobex: > https://stage.maemo.org/svn/maemo/projects/connectivity/osso-obc/trunk/ Yes, I know that it's not quite common to program in C++ for the tablet ... Anyway I will check osso-obc and see if I find a solution, although since libopenobex is working I prefer to use the it directly. Thanks a lot Johan! You safed my enthusiasm for maemo programming ;-) Chris
- Previous message: openobex and bluetooth problem, Maemo 4.1.2
- Next message: Problems Installing Fremantle Beta SDK
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]