jbluez compile error

This is where you talk about the NXJ software itself, installation issues, and programming talk.

Moderators: 99jonathan, roger, imaqine

jbluez compile error

Postby jevans » Thu Sep 06, 2007 7:15 pm

There is a similar topic already here, but there was no resolution to the problem, so
I will ask now. I am attempting to compile the lejos_nxj software on a Fedora Core 4 Linux System. When I attempt to build with ant, I get the following long error message:

<good compilation stuff above, then...>
make:

jbluez:

clean:

jbluez:
[cc] 1 total files to be compiled.
[cc] /root/lejos_nxj/src/jbluez/jbluez.c:8:33: error: bluetooth/bluetooth.h: No such file or directory
[cc] /root/lejos_nxj/src/jbluez/jbluez.c:9:27: error: bluetooth/hci.h: No such file or directory
[cc] /root/lejos_nxj/src/jbluez/jbluez.c:10:31: error: bluetooth/hci_lib.h: No such file or directory
[cc] /root/lejos_nxj/src/jbluez/jbluez.c:11:30: error: bluetooth/rfcomm.h: No such file or directory
[cc] /root/lejos_nxj/src/jbluez/jbluez.c: In function ‘Java_lejos_pc_comm_NXTCommBluez_search’:
[cc] /root/lejos_nxj/src/jbluez/jbluez.c:51: error: ‘inquiry_info’ undeclared (first use in this function)
[cc] /root/lejos_nxj/src/jbluez/jbluez.c:51: error: (Each undeclared identifier is reported only once
[cc] /root/lejos_nxj/src/jbluez/jbluez.c:51: error: for each function it appears in.)
[cc] /root/lejos_nxj/src/jbluez/jbluez.c:51: error: ‘ii’ undeclared (first use in this function)
[cc] /root/lejos_nxj/src/jbluez/jbluez.c:67: warning: implicit declaration of function ‘hci_get_route’
[cc] /root/lejos_nxj/src/jbluez/jbluez.c:68: warning: implicit declaration of function ‘hci_open_dev’
[cc] /root/lejos_nxj/src/jbluez/jbluez.c:70: warning: implicit declaration of function ‘strerror’
[cc] /root/lejos_nxj/src/jbluez/jbluez.c:70: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
[cc] /root/lejos_nxj/src/jbluez/jbluez.c:77: error: ‘IREQ_CACHE_FLUSH’ undeclared (first use in this function)
[cc] /root/lejos_nxj/src/jbluez/jbluez.c:78: error: syntax error before ‘)’ token
[cc] /root/lejos_nxj/src/jbluez/jbluez.c:80: warning: implicit declaration of function ‘hci_inquiry’
[cc] /root/lejos_nxj/src/jbluez/jbluez.c:82: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
[cc] /root/lejos_nxj/src/jbluez/jbluez.c:88: warning: implicit declaration of function ‘memset’
[cc] /root/lejos_nxj/src/jbluez/jbluez.c:88: warning: incompatible implicit declaration of built-in function ‘memset’
[cc] /root/lejos_nxj/src/jbluez/jbluez.c:89: warning: implicit declaration of function ‘hci_read_remote_name’
[cc] /root/lejos_nxj/src/jbluez/jbluez.c:90: warning: implicit declaration of function ‘strcpy’
[cc] /root/lejos_nxj/src/jbluez/jbluez.c:90: warning: incompatible implicit declaration of built-in function ‘strcpy’
[cc] /root/lejos_nxj/src/jbluez/jbluez.c:91: warning: implicit declaration of function ‘strcmp’
[cc] /root/lejos_nxj/src/jbluez/jbluez.c:103: warning: implicit declaration of function ‘ba2str’
[cc] /root/lejos_nxj/src/jbluez/jbluez.c:104: warning: incompatible implicit declaration of built-in function ‘memset’
[cc] /root/lejos_nxj/src/jbluez/jbluez.c:106: warning: incompatible implicit declaration of built-in function ‘strcpy’
[cc] /root/lejos_nxj/src/jbluez/jbluez.c:109: warning: incompatible implicit declaration of built-in function ‘strcpy’
[cc] /root/lejos_nxj/src/jbluez/jbluez.c:110: warning: implicit declaration of function ‘strcat’
[cc] /root/lejos_nxj/src/jbluez/jbluez.c:110: warning: incompatible implicit declaration of built-in function ‘strcat’
[cc] /root/lejos_nxj/src/jbluez/jbluez.c:57: warning: unused variable ‘cod’
[cc] /root/lejos_nxj/src/jbluez/jbluez.c: At top level:
[cc] /root/lejos_nxj/src/jbluez/jbluez.c:127: error: syntax error before ‘jstr2ba’
[cc] /root/lejos_nxj/src/jbluez/jbluez.c:128: warning: return type defaults to ‘int’
[cc] /root/lejos_nxj/src/jbluez/jbluez.c: In function ‘jstr2ba’:
[cc] /root/lejos_nxj/src/jbluez/jbluez.c:130: error: ‘bdaddr_t’ undeclared (first use in this function)
[cc] /root/lejos_nxj/src/jbluez/jbluez.c:130: error: syntax error before ‘bdaddr’
[cc] /root/lejos_nxj/src/jbluez/jbluez.c:133: warning: implicit declaration of function ‘str2ba’
[cc] /root/lejos_nxj/src/jbluez/jbluez.c:133: error: ‘bdaddr’ undeclared (first use in this function)
[cc] /root/lejos_nxj/src/jbluez/jbluez.c: In function ‘Java_lejos_pc_comm_NXTCommBluez_rcSocketCreate’:
[cc] /root/lejos_nxj/src/jbluez/jbluez.c:148: error: ‘BTPROTO_RFCOMM’ undeclared (first use in this function)
[cc] /root/lejos_nxj/src/jbluez/jbluez.c:150: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
[cc] /root/lejos_nxj/src/jbluez/jbluez.c: In function ‘Java_lejos_pc_comm_NXTCommBluez_rcSocketBind’:
[cc] /root/lejos_nxj/src/jbluez/jbluez.c:163: error: storage size of ‘addr’ isn’t known
[cc] /root/lejos_nxj/src/jbluez/jbluez.c:174: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
[cc] /root/lejos_nxj/src/jbluez/jbluez.c:163: warning: unused variable ‘addr’
[cc] /root/lejos_nxj/src/jbluez/jbluez.c: In function ‘Java_lejos_pc_comm_NXTCommBluez_rcSocketConnect’:
[cc] /root/lejos_nxj/src/jbluez/jbluez.c:185: error: storage size of ‘addr’ isn’t known
[cc] /root/lejos_nxj/src/jbluez/jbluez.c:192: error: ‘uint8_t’ undeclared (first use in this function)
[cc] /root/lejos_nxj/src/jbluez/jbluez.c:192: error: syntax error before ‘channel’
[cc] /root/lejos_nxj/src/jbluez/jbluez.c:196: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
[cc] /root/lejos_nxj/src/jbluez/jbluez.c:185: warning: unused variable ‘addr’
[cc] /root/lejos_nxj/src/jbluez/jbluez.c: In function ‘Java_lejos_pc_comm_NXTCommBluez_rcSocketSend’:
[cc] /root/lejos_nxj/src/jbluez/jbluez.c:219: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
[cc] /root/lejos_nxj/src/jbluez/jbluez.c: In function ‘Java_lejos_pc_comm_NXTCommBluez_rcSocketRecv’:
[cc] /root/lejos_nxj/src/jbluez/jbluez.c:238: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
[cc] /root/lejos_nxj/src/jbluez/jbluez.c: In function ‘Java_lejos_pc_comm_NXTCommBluez_rcSocketShutdown’:
[cc] /root/lejos_nxj/src/jbluez/jbluez.c:260: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
[cc] /root/lejos_nxj/src/jbluez/jbluez.c: In function ‘Java_lejos_pc_comm_NXTCommBluez_rcSocketClose’:
[cc] /root/lejos_nxj/src/jbluez/jbluez.c:276: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’

BUILD FAILED
/root/lejos_nxj/build/build.xml:70: The following error occurred while executing this line:
/root/lejos_nxj/src/jbluez/build.xml:42: gcc failed with return code 1

Total time: 18 seconds

</end error>

I went ahead and commented out all of the jbluez stuff in the build.xml file to get the rest to compile nicely, which it did, but I would really like to be able to use the bluetooth. Can anyone offer me any sort of solution to this problem? Thank you in advance.
jevans
New User
 
Posts: 1
Joined: Thu Sep 06, 2007 7:08 pm

Re: jbluez compile error

Postby NVRAM » Fri Sep 07, 2007 4:29 am

jevans wrote:I am attempting to compile the lejos_nxj software on a Fedora Core 4 Linux System. When I attempt to build with ant, I get the following long error message:

<good compilation stuff above, then...>
make:

jbluez:

clean:

jbluez:
[cc] 1 total files to be compiled.
[cc] /root/lejos_nxj/src/jbluez/jbluez.c:8:33: error: bluetooth/bluetooth.h: No such file or directory
[cc] /root/lejos_nxj/src/jbluez/jbluez.c:9:27: error: bluetooth/hci.h: No such file or directory
[cc] /root/lejos_nxj/src/jbluez/jbluez.c:10:31: error: bluetooth/hci_lib.h: No such file or directory
[cc] /root/lejos_nxj/src/jbluez/jbluez.c:11:30: error: bluetooth/rfcomm.h: No such file or directory
--- SNIP
Can anyone offer me any sort of solution to this problem? Thank you in advance.


Verify that you have the bluez-libs and bluez-libs-devel packages installed.

1. Try: rpm -qa | fgrep bluez
2. If not found, install them. You can try: yum install bluez-libs bluez-libs-devel
NVRAM
New User
 
Posts: 17
Joined: Tue Aug 21, 2007 5:25 am


Return to NXJ Software

Who is online

Users browsing this forum: ljdedseyrooov and 1 guest

more stuff