[maemo-developers] openobex and bluetooth problem, Maemo 4.1.2
From: Johan Hedberg johan.hedberg at gmail.comDate: Tue May 26 16:35:50 EEST 2009
- Previous message: openobex and bluetooth problem, Maemo 4.1.2
- Next message: openobex and bluetooth problem, Maemo 4.1.2
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi, On Tue, May 26, 2009, Christian Kuersteiner wrote: > I try to use openobex (with libopenobex1-1.3osso5) with bluetooth. When > I use BtOBEX_TransportConnect() on the tablet I get an error (negative > value). If I use the same code sequence on my Ubuntu system everything > works fine. > 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). > To try another way I took my chance with GW Obex (the libopenobex > wrapper). Somehow I am stuck again. This time when linking my program I > get the following error: > > snarfattack.cpp:51: undefined reference to `gw_obex_setup_fd(int, char > const*, int, _GMainContext*, int*)' > collect2: ld returned 1 exit status > > 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/ Johan
- Previous message: openobex and bluetooth problem, Maemo 4.1.2
- Next message: openobex and bluetooth problem, Maemo 4.1.2
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]