#14 Do not compile

open
nobody
None
5
2007-11-18
2007-11-18
Anonymous
No

On a Ubuntu 7.10 64 bits, with Java 1.6:

make[1]: entrant dans le répertoire « /home/eric/Bluetooth/avetanabt/c »
javah -jni -classpath /home/eric/Bluetooth/avetanabt/binaries/avetanaBT.jar de.avetana.bluetooth.stack.BlueZ
g++ -shared -lbluetooth -I /usr/lib/jvm/java-6-sun//include -I /usr/lib/jvm/java-6-sun//include/linux BlueZ.cpp -o /home/eric/Bluetooth/avetanabt/binaries/libavetanaBT.so
BlueZ.cpp: In function «jint Java_de_avetana_bluetooth_stack_BlueZ_createService(JNIEnv*, _jclass*, _jobject*)":
BlueZ.cpp:1412: erreur: cast from «ServiceHandle*" to «jint" loses precision
make[1]: *** [libavetanaBT.so] Erreur 1
make[1]: quittant le répertoire « /home/eric/Bluetooth/avetanabt/c »
make: *** [csource] Erreur 2

Discussion

  • Nobody/Anonymous

    Logged In: NO

    Works fine on a 32 bits system

     
  • Nobody/Anonymous

    Logged In: NO

    try making [(jint *)srh], the return type in line 1412 as (long)srh; in 64 bit pointers are 64bit and int are 32bit; jint is an integer, so make it long which is 64bit.

    But i have other errors after that... STDC++ reference errors...

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks