Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / November 2007

Tip: Looking for answers? Try searching our database.

unable to compile avetanabt library (bluetooth)

Thread view: 
Franck Dubois - 02 Nov 2007 14:28 GMT
hello,

I would to compile avetanabt linux library. The jar library is building
but the compilation have some errors to generate libavetanaBT.so file.

a few of verbose compilation :

BlueZ.cpp: In function «int listenRFCOMM(JNIEnv*, int, int, int, int, int)":
BlueZ.cpp:1849: erreur: «jint" was not declared in this scope
BlueZ.cpp:1849: erreur: expected `)' before numeric constant
BlueZ.cpp: At global scope:
BlueZ.cpp:1889: erreur: expected constructor, destructor, or type
conversion before «void"
BlueZ.cpp:1939: erreur: expected constructor, destructor, or type
conversion before «void"
BlueZ.cpp: In function «_jobject* my_sdp_service_attr_req(JNIEnv*,
_jclass*, sdp_session_t*, uint32_t, sdp_attrreq_type_t, const sdp_list_t*)":
BlueZ.cpp:2170: erreur: invalid conversion from «char*" to «uint8_t*"
BlueZ.cpp: At global scope:
BlueZ.cpp:2205: erreur: «jint" has not been declared
BlueZ.cpp: In function «void fill_jobject(JNIEnv*, _jclass*, const
char*, int*, sdp_list_t*, _jobject**)":
BlueZ.cpp:2432: erreur: «jbyte" was not declared in this scope
BlueZ.cpp:2432: erreur: expected primary-expression before «)" token

Anyone can help me ?

Thanks in advance
Gordon Beaton - 02 Nov 2007 16:09 GMT
> I would to compile avetanabt linux library. The jar library is
> building but the compilation have some errors to generate
[quoted text clipped - 3 lines]
>
> BlueZ.cpp:1849: erreur: «jint" was not declared in this scope

The source should be including <jni.h>, and the compiler needs to know
where to find it. Both $JAVA_HOME/include and $JAVA_HOME/include/linux
need to be in the "include path", usually set with the -I compiler
option in the Makefile.

If that doesn't help, contact the author of the code or post more
details.

/gordon

--
Roedy Green - 03 Nov 2007 07:16 GMT
On Fri, 02 Nov 2007 14:28:07 +0100, Franck Dubois
<franckdubois@laposte.net> wrote, quoted or indirectly quoted someone
who said :

>BlueZ.cpp: In function «int listenRFCOMM(JNIEnv*, int, int, int, int, int)":
>BlueZ.cpp:1849: erreur: «jint" was not declared in this scope

sounds like you don't have the JNI C++ .h/.hpp include libraries
declared in your C++ compiler.

See http://mindprod.com/jgloss/jni.html

Signature

Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.