i am trying to install lightblue 0.2 on kubuntu as explained on the website. (python setup.py install). i have the good version of APIS needed: pybluez0.9.1, openobex1.3.1 and bluez.
Sooo when i run python setup.py install in /root/lightblue/lightblue0.2 i got the following error:
running install
running build
running build_py
running build_ext
building '_lightblueutil' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.4 -c src/linux/lightblue_util.c -o build/temp.linux-i686-2.4/src/linux/lightblue_util.o
src/linux/lightblue_util.c:30:33: error: bluetooth/bluetooth.h: No such file or directory
src/linux/lightblue_util.c:31:27: error: bluetooth/hci.h: No such file or directory
src/linux/lightblue_util.c:32:31: error: bluetooth/hci_lib.h: No such file or directory
src/linux/lightblue_util.c: In function ‘lb_hci_read_local_name’:
src/linux/lightblue_util.c:48: warning: implicit declaration of function ‘hci_read_local_name’
src/linux/lightblue_util.c: In function ‘lb_hci_read_bd_addr’:
src/linux/lightblue_util.c:65: error: ‘bdaddr_t’ undeclared (first use in this function)
src/linux/lightblue_util.c:65: error: (Each undeclared identifier is reported only once
src/linux/lightblue_util.c:65: error: for each function it appears in.)
src/linux/lightblue_util.c:65: error: expected ‘;’ before ‘ba’
src/linux/lightblue_util.c:72: warning: implicit declaration of function ‘hci_read_bd_addr’
src/linux/lightblue_util.c:72: error: ‘ba’ undeclared (first use in this function)
src/linux/lightblue_util.c:78: warning: implicit declaration of function ‘ba2str’
src/linux/lightblue_util.c: In function ‘lb_hci_read_class_of_dev’:
src/linux/lightblue_util.c:97: warning: implicit declaration of function ‘hci_read_class_of_dev’
error: command 'gcc' failed with exit status 1
So if you guys can help me or tell me what i did wrong, it would great.
Best regards, guigui.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thank you so much for you reply.
Effectively i had some packages missing... I thought that libluetooth was installed since bluez-utils is natively setup on kubuntu. i also had to install libopenobex even i had install openobex-apps. So now it's working perfectly. Great great great.
I am planning to use that with firefox using pyxpcom!! wish me luck :p
bye and thx again.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
hello guys,
i am trying to install lightblue 0.2 on kubuntu as explained on the website. (python setup.py install). i have the good version of APIS needed: pybluez0.9.1, openobex1.3.1 and bluez.
Sooo when i run python setup.py install in /root/lightblue/lightblue0.2 i got the following error:
running install
running build
running build_py
running build_ext
building '_lightblueutil' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.4 -c src/linux/lightblue_util.c -o build/temp.linux-i686-2.4/src/linux/lightblue_util.o
src/linux/lightblue_util.c:30:33: error: bluetooth/bluetooth.h: No such file or directory
src/linux/lightblue_util.c:31:27: error: bluetooth/hci.h: No such file or directory
src/linux/lightblue_util.c:32:31: error: bluetooth/hci_lib.h: No such file or directory
src/linux/lightblue_util.c: In function ‘lb_hci_read_local_name’:
src/linux/lightblue_util.c:48: warning: implicit declaration of function ‘hci_read_local_name’
src/linux/lightblue_util.c: In function ‘lb_hci_read_bd_addr’:
src/linux/lightblue_util.c:65: error: ‘bdaddr_t’ undeclared (first use in this function)
src/linux/lightblue_util.c:65: error: (Each undeclared identifier is reported only once
src/linux/lightblue_util.c:65: error: for each function it appears in.)
src/linux/lightblue_util.c:65: error: expected ‘;’ before ‘ba’
src/linux/lightblue_util.c:72: warning: implicit declaration of function ‘hci_read_bd_addr’
src/linux/lightblue_util.c:72: error: ‘ba’ undeclared (first use in this function)
src/linux/lightblue_util.c:78: warning: implicit declaration of function ‘ba2str’
src/linux/lightblue_util.c: In function ‘lb_hci_read_class_of_dev’:
src/linux/lightblue_util.c:97: warning: implicit declaration of function ‘hci_read_class_of_dev’
error: command 'gcc' failed with exit status 1
So if you guys can help me or tell me what i did wrong, it would great.
Best regards, guigui.
Hi,
It looks like it can't find the bluetooth library header files. Have you installed the libbluetooth1-dev, bluez-utils, and libbluetooth1 packages?
Bea
hello Bea,
Thank you so much for you reply.
Effectively i had some packages missing... I thought that libluetooth was installed since bluez-utils is natively setup on kubuntu. i also had to install libopenobex even i had install openobex-apps. So now it's working perfectly. Great great great.
I am planning to use that with firefox using pyxpcom!! wish me luck :p
bye and thx again.
No problems.
Ah that's right, libopenobex would be required as well.
Good luck with it!