Trouble building bluecove-gpl and bluecove-bluez for Raspberry Pi v2 (Raspbian)

182 views
Skip to first unread message

tajones

unread,
Oct 6, 2015, 1:12:59 PM10/6/15
to bluecove-developers
Hi - 

I'm currently having trouble building bluecove-gpl and bluecove-bluez on the Raspberry Pi (version 2). I've checked out the current trunk from SVN, but when I run maven inside the two projects I get:

[INFO] Scanning for projects...

[INFO] ------------------------------------------------------------------------

[INFO] Building bluecove-gpl

[INFO]    task-segment: [install]

[INFO] ------------------------------------------------------------------------

[INFO] [resources:resources {execution: default-resources}]

[INFO] Using 'ISO-8859-1' encoding to copy filtered resources.

[INFO] Copying 0 resource

[INFO] [compiler:compile {execution: default-compile}]

[INFO] Nothing to compile - all classes are up to date

[INFO] [native:javah {execution: build-jni-headers-gpl}]

[WARNING] DEPRECATED [tasks]: Use target instead

[INFO] [antrun:run {execution: compile-native-lib-gpl}]

[WARNING] Parameter tasks is deprecated, use target instead

[INFO] Executing tasks


main:


init-native:

     [echo] java.home /usr/lib/jvm/java-6-openjdk-armhf/jre


verify-java-home:


verify-cruisecontrol:


compile-native-lib:

     [echo] compiling  .c -> .o  (-fPIC -fno-stack-protector)

    [apply] In file included from /home/pi/temp/bluecove/bluecove-read-only/bluecove-gpl/src/main/c/BlueCoveBlueZ.c:23:0:

    [apply] /home/pi/temp/bluecove/bluecove-read-only/bluecove-gpl/src/main/c/BlueCoveBlueZ.h:38:53: fatal error: com_intel_bluetooth_BluetoothStackBlueZ.h: No such file or directory

    [apply] compilation terminated.

[INFO] ------------------------------------------------------------------------

[ERROR] BUILD ERROR

[INFO] ------------------------------------------------------------------------

[INFO] An Ant BuildException has occured: The following error occurred while executing this line:

/home/pi/temp/bluecove/bluecove-read-only/bluecove-gpl/build.xml:127: apply returned: 1


[INFO] ------------------------------------------------------------------------

[INFO] For more information, run Maven with the -e switch

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 48 seconds

[INFO] Finished at: Tue Oct 06 15:35:23 UTC 2015

[INFO] Final Memory: 17M/42M

[INFO] ------------------------------------------------------------------------


for bluecove-gpl, and 


[INFO] ------------------------------------------------------------------------

[INFO] For more information, run Maven with the -e switch

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 48 seconds

[INFO] Finished at: Tue Oct 06 15:35:23 UTC 2015

[INFO] Final Memory: 17M/42M

[INFO] ------------------------------------------------------------------------

root@blupoint-hub:/home/pi/temp/bluecove/bluecove-read-only/bluecove-gpl# cd ..

root@blupoint-hub:/home/pi/temp/bluecove/bluecove-read-only# cd bluecove-bluez/

root@blupoint-hub:/home/pi/temp/bluecove/bluecove-read-only/bluecove-bluez# mvn

[INFO] Scanning for projects...

[INFO] ------------------------------------------------------------------------

[INFO] Building bluecove-bluez

[INFO]    task-segment: [install]

[INFO] ------------------------------------------------------------------------

[INFO] [resources:resources {execution: default-resources}]

[INFO] Using 'ISO-8859-1' encoding to copy filtered resources.

[INFO] Copying 0 resource

[INFO] [compiler:compile {execution: default-compile}]

[INFO] Nothing to compile - all classes are up to date

[INFO] [native:javah {execution: build-jni-headers-bluez-dbus}]

[WARNING] DEPRECATED [tasks]: Use target instead

[INFO] [antrun:run {execution: compile-native-lib-bluez-dbus}]

[WARNING] Parameter tasks is deprecated, use target instead

[INFO] Executing tasks


main:


init-native:

     [echo] java.home /usr/lib/jvm/java-6-openjdk-armhf/jre


verify-java-home:


compile-native-lib:

     [echo] compiling  .c -> .o  (-fPIC -fno-stack-protector)

    [apply] In file included from /home/pi/temp/bluecove/bluecove-read-only/bluecove-bluez/src/main/c/BlueCoveBlueZ.c:26:0:

    [apply] /home/pi/temp/bluecove/bluecove-read-only/bluecove-bluez/src/main/c/BlueCoveBlueZ.h:38:57: fatal error: com_intel_bluetooth_BluetoothStackBlueZDBus.h: No such file or directory

    [apply] compilation terminated.

[INFO] ------------------------------------------------------------------------

[ERROR] BUILD ERROR

[INFO] ------------------------------------------------------------------------

[INFO] An Ant BuildException has occured: The following error occurred while executing this line:

/home/pi/temp/bluecove/bluecove-read-only/bluecove-bluez/build.xml:142: apply returned: 1


[INFO] ------------------------------------------------------------------------

[INFO] For more information, run Maven with the -e switch

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 51 seconds

[INFO] Finished at: Tue Oct 06 15:39:27 UTC 2015

[INFO] Final Memory: 18M/45M

[INFO] ------------------------------------------------------------------------


for bluecove-bluez.


The header files it's looking for don't seem to be in the source tree. I've got the following packages installed:


bluetooth bluez-utils blueman

obexftp

python-bluez

bluez bluez-tools python-dbus python-gobject 

libbluetooth-dev


Any help would be much appreciated!


Thanks :)

Erhannis

unread,
Feb 8, 2018, 11:10:01 PM2/8/18
to bluecove-developers
I, too, get this error, 2 years later.  Has anybody ever found a solution?

Mina Shokry Rofaeil

unread,
Feb 8, 2018, 11:26:09 PM2/8/18
to Bluecove Emails
This missing header file should be generated by running javah on the class file com.intel.bluetooth.BluetoothStackBlueZ.class.

If it is not happening automatically as part of the maven script, try to manually run it.

Mina.

--
--
You received this message because you are subscribed to the Google
Groups "bluecove-developers" group.
For more options, visit this group at
http://groups.google.com/group/bluecove-developers
---
You received this message because you are subscribed to the Google Groups "bluecove-developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bluecove-developers+unsub...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages