Esato Mobile
Sony Ericsson / Sony : Themes, ringtones, screensavers, games, video clips : avetanaBluetooth
> New Topic
> Reply
< Esato Forum Index > Sony Ericsson / Sony > Themes, ringtones, screensavers, games, video clips > avetanaBluetooth Bookmark topic
kitying Posts: 5

HELP !!!

I have downloaded the avetanaBluetooth(http://sourceforge.net/projects/avetanabt/) and tried to make it usable in my Fedroa Core 4. I follow the steps on HOWTOCOMILE, however it gets errors :


make -C c
make[1]: Entering directory `/home/kitying/new/sources/c'
javah -jni -classpath ../build de.avetana.bluetooth.stack.BlueZ
g++ -shared -I /etc/alternatives/java_sdk/include -I /etc/alternatives/java_sdk/include/linux BlueZ.cpp -o ../build/libavetanaBT.so -lbluetooth
BlueZ.cpp: In function ‘void fill_jobject(JNIEnv*, __jclass*, const char*, int*, sdp_list_t*, __jobject**)’:
BlueZ.cpp:2174: error: invalid conversion from ‘const jbyte*’ to ‘jbyte*’
BlueZ.cpp:2174: error: initializing argument 4 of ‘void _Jv_JNIEnv::SetByteArrayRegion(__jbyteArray*, jsize, jsize, jbyte*)’
make[1]: *** [libavetanaBT.so] Error 1
make[1]: Leaving directory `/home/kitying/new/sources/c'
make: *** [csource] Error 2

I believe that this is the step during generate the libavetanaBT.so file. Anyway, i just can't use it. May anyone can tell me how to solve it ?????

Many Thanks inadvanced !!!



--
Posted: 2006-02-22 05:50:38
Edit : Quote

RayKnight Posts: 484

Uhmm Linux... I can't make my bluetooth dongle work with it!!! I'm running suse... If you find some solution please let me know!
--
Posted: 2006-02-22 17:28:40
Edit : Quote

kitying Posts: 5

For FC4,

You First should install the BlueZ packages, bluez-libs and bluez-uilts,
which you can download from
(ref:http://www.hanscees.com/bluezhowto.html)
and if you want to use file transfer by Obex, you may also need to install openObex, which can be downloaded from

up to now, you can sending file by entering comamnds.

If you need to Java programming on Bluetooth, you may have to install the JSR82 implementation, which I used is avetanaBluetooth

what I found is you need to download it from
extract it and follows the HOWTOCOMPILE
it gets compilation error during "make"
I had change the line 2174 in BlueZ.cpp

from
env->SetByteArrayRegion(jbData, 0, attrlen,(const jbyte*)s);
to
env->SetByteArrayRegion(jbData, 0, attrlen,(jbyte*)s);

and make sure the the libavetanaBT.so is newly generated.

for my case, I need to make changes on LibLoader.java line 141

from
System.loadLibrary(name);
to
System.loadLibrary(name.substring(3));

but I am not sure if it is nessary in your case.

jar again and make sure copy the libavetanaBT.so to /usr/lib or /usr/local/lib

That's all what I found up to now, but I still on testing on it.

Hope that helpful.
--
Posted: 2006-02-24 03:04:40
Edit : Quote

New Topic   Reply
Forum Index

Esato home