blob: b35ee260f32ec7910cd4777f785fa9fb62ae7cb4 (
plain)
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
|
# POI service middleware: CommonAPI based POC
## Synopsis
This folder contains the server part of the proof of concepts (POC) for the POI manager service interfaces, based on CommonAPI
These interfaces provide access to a search engine for Point Of Interest with a content access module mechanism to extend to additional sources of data.
NB: The client part is located under ../../test/poi-manager-client
##Tested targets
Desktop: Tested under Ubuntu 16.04 LTS 64 bits
## Prerequisites
You need CommonAPI 3.1.5 and Franca 0.9.1 installed
For the Ubuntu 64 bits, due to the use of symbol versioning LIBDBUS_1_0 by CommonAPI-DBus, the patched version of DBus has to be >= 1.10.0
NB: the patch common-api-dbus-runtime/src/dbus-patches/capi-dbus-add-support-for-custom-marshalling.patch failed a little bit, it's needed to update the dbus/dbus-string.h manually
## How to build
First it's required to set some paths:
```
export DBUS_LIB_PATH=<path to the patched version of the DBus lib>
export COMMONAPI_DBUS_TOOL_DIR=<path to the common-api-dbus-tools folder>
export COMMONAPI_TOOL_DIR=<path to the common-api-tools folder>
```
A script allows either:
to clean and rebuild all (including invoking cmake)
```./build.sh -c```
or to build updated parts
```./build.sh```
## How To Run
First it's required to set a config file:
Copy the configuration file ../resource/commonapi-dbus.ini in a directory of your choice
Set the environment variable COMMONAPI_DBUS_DEFAULT_CONFIG before starting the poi-manager-server.
Example:
```export COMMONAPI_DBUS_DEFAULT_CONFIG=<your path>/commonapi-dbus.ini```
Copy the database for testing:
```cp ../resource/poi-database-managed.db ./bin```
And launch the server (use d-feet to check if it's running or build the client)
```./bin/poi-manager-server -f ./bin/poi-database-managed.db```
## License
Mozilla Public License Version 2.0
|