File: INSTALL.txt

package info (click to toggle)
libopenobex 1.7.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, sid, stretch
  • size: 972 kB
  • ctags: 1,552
  • sloc: ansic: 9,988; xml: 407; makefile: 96
file content (59 lines) | stat: -rw-r--r-- 1,590 bytes parent folder | download
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
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
 * USB
 * 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. CMake(>= 2.8.5)[2]

[1]: at http://libusb.sf.net
[2]: at http://www.cmake.org


2 Compilation
=============

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.