[maemo-developers] openobex and bluetooth problem, Maemo 4.1.2

From: Christian Kuersteiner ckuerste at gmx.ch
Date: Tue May 26 12:16:50 EEST 2009
Hi,

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?

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.

Thanks

Chris

More information about the maemo-developers mailing list