My favorites | Sign in
Logo
                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
@version $Revision$ ($Author$) $Date$

* Build maven2

The project is a module for bluecove project.

We are using maven2 to download main bluecove.jar and build this project.

To create Eclipse projects run:
mvn eclipse:clean eclipse:eclipse -DdownloadSources=true

To run build without tests:
mvn -Dmaven.test.skip=true

To run build without building native code:
mvn -Dnative.build.skip=true

* Build using ant

For your convenience you may use ant to create the librayr binary and jar. You will need Optional ant taks installed (ant-nodeps.jar) to run the build.

For this main bluecove.jar should be download or compiled, expected location is: ../bluecove/target/bluecove-${version}.jar

To build native library libbluecove-${os.arch}.so and bluecove-gpl-${version}.jar:
ant all

* Native Library Compilation Requirements

- GCC compiler (4.1 or newer)
- Java SE Development Kit 1.4 or newer
- Linux Bluetooth protocol stack (BlueZ)
- Development librararies for Bluetooth applications (package bluez-libs-devel 3.9 or newer)
- When building on 64-bit platform make sure JAVA_HOME during build is pointing to 64-bit java

The native library are build during maven or ant build.

* Build Native Library using make or shell script

For your convenience we createated Makefile and build.sh shell script so you may build the libbluecove.so even when ant or maven is not available

1. Make sure you have main bluecove library ../bluecove/target/bluecove-${version}.jar

2. Run: make all or build.sh in bluecove-gpl directory

* JVM specific notes

* sablevm on debian (in particular for NSLU2)
build dependencies:
apt-get install gcc
apt-get install sablevm
apt-get install libsablevm1-dev
// apt-get install ant-optional
// TODO manualy build and install sablevm-sdk-1.13 cp-tools
build:
//for now create .h on another computer
ant -Dbuild.compiler=jikes -Djni_headers_skip=true all

* Build server Hack for BlueZ 3 and BlueZ 4 compatibility.

On build server:
We are binary editing libbluetooth.so to remove version information:

This way: ldd libbluecove.so
linux-gate.so.1 => (0xb7f12000)
libbluetooth.so => /usr/lib/libbluetooth.so (0xb7ee0000)
libc.so.6 => /lib/libc.so.6 (0xb7d6c000)
/lib/ld-linux.so.2 (0x007b9000)

And will run on BlueZ v3 and BlueZ v4.
Show details Hide details

Change log

r2748 by skarzhevskyy on Feb 13, 2009   Diff
Build Native Library using make or shell
script
Go to: 
Project members, sign in to write a code review

Older revisions

r2707 by skarzhevskyy on Jan 17, 2009   Diff
Update files attributes.
r2635 by skarzhevskyy on Dec 19, 2008   Diff
USe The universal-bluez  on build
server
r2632 by skarzhevskyy on Dec 19, 2008   Diff
Use ant for compile-native-lib
All revisions of this file

File info

Size: 2513 bytes, 69 lines

File properties

svn:mergeinfo
svn:mime-type
text/plain
svn:eol-style
native
svn:keywords
Date Author Id Revision
Hosted by Google Code