summaryrefslogtreecommitdiff
path: root/src/poi-service
diff options
context:
space:
mode:
author <philippe colliot>2015-11-23 10:40:12 +0100
committer <philippe colliot>2015-11-23 10:40:12 +0100
commitd67268f037737e63a831419290f51505f39dfdfb (patch)
treed545bbc3bfa0412c5291cd72d923e3c26f30a500 /src/poi-service
parent79c9942e550e855b810f9128520c4f2571f6f44d (diff)
downloadpoi-service-d67268f037737e63a831419290f51505f39dfdfb.tar.gz
some improvements of the build scripts
Diffstat (limited to 'src/poi-service')
-rw-r--r--src/poi-service/CMakeLists.txt7
-rw-r--r--src/poi-service/README58
-rw-r--r--src/poi-service/poi-manager-server/CMakeLists.txt4
-rw-r--r--src/poi-service/poi-manager-server/poi-manager-server-stub.cpp6
-rw-r--r--src/poi-service/poi-server/CMakeLists.txt4
5 files changed, 63 insertions, 16 deletions
diff --git a/src/poi-service/CMakeLists.txt b/src/poi-service/CMakeLists.txt
index 5e2a8ec..d36eca8 100644
--- a/src/poi-service/CMakeLists.txt
+++ b/src/poi-service/CMakeLists.txt
@@ -2,7 +2,7 @@
# @licence app begin@
# SPDX-License-Identifier: MPL-2.0
#
-# Component Name: poi-server
+# Component Name: poi-service-server
#
# Author: Philippe Colliot
#
@@ -15,11 +15,10 @@
#
# @licence end@
###########################################################################
-project(poi-server)
+project(poi-service-server)
cmake_minimum_required(VERSION 2.8)
-set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++11")
-message(STATUS "poi-service-server")
+message(STATUS ${PROJECT_NAME})
option(WITH_FRANCA_INTERFACE
"Build using the Franca interfaces" OFF)
diff --git a/src/poi-service/README b/src/poi-service/README
index ee184e3..cf1b54b 100644
--- a/src/poi-service/README
+++ b/src/poi-service/README
@@ -1,4 +1,4 @@
-Release date of the file: 03-08-2015
+Release date of the file: 18-11-2015
Status: OK
Project:
@@ -25,7 +25,8 @@ License:
See headers and LICENSE file
Test target:
-Ubuntu 14.04 LTS
+Ubuntu 14.04 LTS 32bits
+Ubuntu 15.10 64bits
To get the code:
Code is part of the navigation-service repository, so you need to clone the whole content:
@@ -54,14 +55,57 @@ How To Run poi-server
How To Build poi-manager-server
===============================
NB: You need CommonAPI 3.1.2 and Franca 0.9.1 installed
+
+=============
If the CommonAPI stuff has been generated into /usr/local/
-Check if the links are well set into ./lib
+Check if the links are well set into /usr/local/lib
+if not do it yourself
+
+cd /usr/local/lib
+rm libCommonAPI-DBus.so.3
+rm libCommonAPI.so.3
ln -s libCommonAPI-DBus.so.3.1.2 libCommonAPI-DBus.so.3
ln -s libCommonAPI.so.3.1.2 libCommonAPI.so.3
-The folder ./include/CommonAPI-3.1/CommonAPI must contain 3.1.2 includes
+
+The folder /usr/local/include/CommonAPI-3.1/CommonAPI must contain 3.1.2 include files
+
+=============
+In case the .pc are not well generated, please add these files to /usr/local/lib/pkgconfig
+
+CommonAPI.pc
+
+prefix=/usr/local
+exec_prefix=${prefix}
+libdir=${exec_prefix}/lib
+includedir=${prefix}/include
+
+Name: Common API C++
+Description: GENIVI Common API C++ Library
+Version: 3.1.2
+Libs: -L${libdir} -lCommonAPI
+Cflags: -I${includedir}/CommonAPI-3.1
+
+CommonAPI-DBus.pc
+
+prefix=/usr/local
+exec_prefix=${prefix}
+libdir=${exec_prefix}/lib
+includedir=${prefix}/include
+
+Name: Common API C++ D-Bus Middleware
+Description: GENIVI Common API C++ D-Bus Middleware
+Version: 3.1.2
+Requires: CommonAPI dbus-1
+Libs: -L${libdir} -Wl,--no-as-needed -lCommonAPI-DBus -Wl,--as-needed
+Cflags: -I${includedir}/CommonAPI-3.1
+
+=============
+You need to pass as parameter to the cmake the link to your patched dbus library (required by CommonAPI)
+
+NB: For the 64 bits version, replace 'x86' with 'x86_64' in the command below:
cd build
-cmake -DWITH_FRANCA_INTERFACE=ON -DCOMMONAPI_DBUS_TOOL_GENERATOR=<common-api-dbus-tools folder>/org.genivi.commonapi.dbus.cli.product/target/products/org.genivi.commonapi.dbus.cli.product/linux/gtk/x86/commonapi-dbus-generator-linux-x86 -DCOMMONAPI_TOOL_GENERATOR=<common-api-tools folder>/org.genivi.commonapi.core.cli.product/target/products/org.genivi.commonapi.core.cli.product/linux/gtk/x86/commonapi-generator-linux-x86 -DWITH_DEBUG=ON . ../
+cmake -DWITH_FRANCA_INTERFACE=ON -DDBUS_LIB_PATH=yourPath -DCOMMONAPI_DBUS_TOOL_GENERATOR=<common-api-dbus-tools folder>/org.genivi.commonapi.dbus.cli.product/target/products/org.genivi.commonapi.dbus.cli.product/linux/gtk/x86/commonapi-dbus-generator-linux-x86 -DCOMMONAPI_TOOL_GENERATOR=<common-api-tools folder>/org.genivi.commonapi.core.cli.product/target/products/org.genivi.commonapi.core.cli.product/linux/gtk/x86/commonapi-generator-linux-x86 -DWITH_DEBUG=ON ../
make
cd ..
@@ -69,9 +113,9 @@ cd ..
How To Run poi-manager-server
===============================
-Copy the configuration file commonapi-dbus.ini in a directory of your choice
+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 EnhancedPositionService.
+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
diff --git a/src/poi-service/poi-manager-server/CMakeLists.txt b/src/poi-service/poi-manager-server/CMakeLists.txt
index 897565d..bb4faac 100644
--- a/src/poi-service/poi-manager-server/CMakeLists.txt
+++ b/src/poi-service/poi-manager-server/CMakeLists.txt
@@ -16,6 +16,10 @@
# @licence end@
###########################################################################
project(poi-manager-server)
+message(STATUS ${PROJECT_NAME})
+
+add_definitions("-std=gnu++11")
+
set(PARENT_API poiservice)
set(ROOT_API navigation)
set(API_VERSION_MAJOR 0)
diff --git a/src/poi-service/poi-manager-server/poi-manager-server-stub.cpp b/src/poi-service/poi-manager-server/poi-manager-server-stub.cpp
index bc33b9a..2832278 100644
--- a/src/poi-service/poi-manager-server/poi-manager-server-stub.cpp
+++ b/src/poi-service/poi-manager-server/poi-manager-server-stub.cpp
@@ -1259,9 +1259,9 @@ void PoiManagerServerStub::getLocale(const std::shared_ptr<CommonAPI::ClientId>
void PoiManagerServerStub::getSupportedLocales(const std::shared_ptr<CommonAPI::ClientId> _client, getSupportedLocalesReply_t _reply)
{
- std::vector< POIServiceTypes::Locales> localeList;
- POIServiceTypes::Locales en_US { "eng","USA", "Latn" };
- POIServiceTypes::Locales fr_FR { "fra","FRA", "Latn" };
+ std::vector< NavigationTypes::Locales> localeList;
+ NavigationTypes::Locales en_US { "eng","USA", "Latn" };
+ NavigationTypes::Locales fr_FR { "fra","FRA", "Latn" };
localeList.push_back(en_US);
localeList.push_back(fr_FR);
diff --git a/src/poi-service/poi-server/CMakeLists.txt b/src/poi-service/poi-server/CMakeLists.txt
index d299c54..0243461 100644
--- a/src/poi-service/poi-server/CMakeLists.txt
+++ b/src/poi-service/poi-server/CMakeLists.txt
@@ -16,9 +16,9 @@
# @licence end@
###########################################################################
project(poi-server)
-cmake_minimum_required(VERSION 2.8)
+message(STATUS ${PROJECT_NAME})
-message(STATUS "poi-server")
+add_definitions("-std=gnu++11")
find_package(PkgConfig REQUIRED)