-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathINSTALL.txt
77 lines (54 loc) · 1.92 KB
/
INSTALL.txt
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
70
71
72
73
74
75
76
77
How to compile OpenObex
=======================
The compilation of OpenObex is done using CMake.
The following OBEX transports are available:
* Bluetooth (not all systems, see below)
* Irda (not all systems, see below)
* TCP
* Custom transport
* File descriptor
The following operating systems are supported:
* Linux [Bluetooth, Irda]
* FreeBSD [Bluetooth]
* NetBSD [Bluetooth]
* Windows [Bluetooth(MS stack), Irda]
Non-listed operating systems may still be supported. For Windows operating
system, please see INSTALL_Win32.txt.
1 Requirements
==============
1. a C compiler (e.g. GCC)
2. LibUSB [1]
3. autoconf+automake or CMake(>=2.6)[2]
[1]: at http://libusb.sf.net
[2]: at http://www.cmake.org
2 Compilation
=============
2a Compilation using autoconf+automake
======================================
At the command line, run:
$ ./configure --prefix=/usr
$ make
The --prefix option changes the installation prefix, the default is /usr/local.
Running
$ ./configure --help
gives you lots of other options.
2b Compiling using CMake
========================
It is recommended to not build in the source directory. To build in any other
directory, just run cmake with the path to the source directory as last argument.
A mix of this is a 'build' subdirectory in the source tree. The example below uses
this method.
At the command line, run:
$ mkdir build
$ cd build
$ cmake ..
$ make
You can also use a substitute like cmake-gui or ccmake. Different build
front-ends are also possible, the default are "Unix Makefiles".
You might want to adjust the installation prefix by changing the
CMAKE_INSTALL_PREFIX variable like, the default is /usr/local.
3 Installation
==============
Then you can install the files by running the "install" make target.
When using CMake, the "package" make target will create a compressed tarball
with the binaries.