summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorasanoaozora <fifitaneki@hotmail.com>2017-12-11 17:14:17 +0100
committerasanoaozora <fifitaneki@hotmail.com>2017-12-11 17:14:17 +0100
commite24dfc26410683b59efa7500e325a4ffe724849e (patch)
treee93a249b2914808174c05a314d8fb79f7ece84b6 /src
parenteb90438a1d4729751c0768e0b65fc8c940741d65 (diff)
downloadpoi-service-e24dfc26410683b59efa7500e325a4ffe724849e.tar.gz
Fix build errors (due to new gcc)
Diffstat (limited to 'src')
-rwxr-xr-xsrc/poi-service/build.sh2
-rwxr-xr-xsrc/poi-service/poi-manager-server/run.sh1
-rw-r--r--src/poi-service/poi-server-capi/main.cpp7
-rwxr-xr-xsrc/poi-service/run-capi2
-rw-r--r--src/speech/main.cpp3
-rwxr-xr-xsrc/speech/run.sh1
6 files changed, 13 insertions, 3 deletions
diff --git a/src/poi-service/build.sh b/src/poi-service/build.sh
index ba31142..a1f0e8a 100755
--- a/src/poi-service/build.sh
+++ b/src/poi-service/build.sh
@@ -56,7 +56,7 @@ function check_path_for_capi
echo 'export DBUS_LIB_PATH=<path>'
exit 1
fi
- commonapi_tools_option="-DDBUS_LIB_PATH="$DBUS_LIB_PATH" -DCOMMONAPI_DBUS_TOOL_DIR="$COMMONAPI_DBUS_TOOL_DIR" -DCOMMONAPI_TOOL_DIR="$COMMONAPI_TOOL_DIR
+ commonapi_tools_option="-DWITH_PLUGIN_MIGRATION=ON -DDBUS_LIB_PATH="$DBUS_LIB_PATH" -DCOMMONAPI_DBUS_TOOL_DIR="$COMMONAPI_DBUS_TOOL_DIR" -DCOMMONAPI_TOOL_DIR="$COMMONAPI_TOOL_DIR
}
while getopts cdhlmh opt
diff --git a/src/poi-service/poi-manager-server/run.sh b/src/poi-service/poi-manager-server/run.sh
index 4175d33..bb19e39 100755
--- a/src/poi-service/poi-manager-server/run.sh
+++ b/src/poi-service/poi-manager-server/run.sh
@@ -1,4 +1,5 @@
#!/bin/bash
+export LD_LIBRARY_PATH=$DBUS_LIB_PATH/lib
RESOURCE=../resource
cp $RESOURCE/poi-database-managed.db ./bin
COMMONAPI_DEFAULT_CONFIG=$RESOURCE/commonapi4dbus.ini \
diff --git a/src/poi-service/poi-server-capi/main.cpp b/src/poi-service/poi-server-capi/main.cpp
index 7ef0702..1db7592 100644
--- a/src/poi-service/poi-server-capi/main.cpp
+++ b/src/poi-service/poi-server-capi/main.cpp
@@ -36,6 +36,9 @@
#include <cmath>
#include <typeinfo>
#include <getopt.h>
+#ifndef DBUS_HAS_RECURSIVE_MUTEX
+#define DBUS_HAS_RECURSIVE_MUTEX
+#endif
#include <dbus-c++/glib-integration.h>
#include <CommonAPI/CommonAPI.hpp>
@@ -157,9 +160,9 @@ public:
configurationChanged(changedSettings);});
myServicePOIContentAccessModule->getCategoriesRemovedEvent().subscribe([&](const std::vector< CommonTypes::CategoryID >& categories) {
categoriesRemoved(categories);});
- myServicePOIContentAccessModule->getPOIAddedEvent().subscribe([&](const std::vector< POIServiceTypes::POI_ID >& pois) {
+ myServicePOIContentAccessModule->getPoiAddedEvent().subscribe([&](const std::vector< POIServiceTypes::POI_ID >& pois) {
POIAdded(pois);});
- myServicePOIContentAccessModule->getPOIRemovedEvent().subscribe([&](const std::vector< POIServiceTypes::POI_ID >& pois) {
+ myServicePOIContentAccessModule->getPoiRemovedEvent().subscribe([&](const std::vector< POIServiceTypes::POI_ID >& pois) {
POIRemoved(pois);});
myServicePOIContentAccessModule->getSearchStatusChangedEvent().subscribe([&](const NavigationTypes::Handle& poiSearchHandle, const POIServiceTypes::SearchStatusState& statusValue, const std::vector< POIServiceTypes::POI_ID >& pois) {
searchStatusChanged(poiSearchHandle,statusValue,pois);});
diff --git a/src/poi-service/run-capi b/src/poi-service/run-capi
index 6503617..80d17e4 100755
--- a/src/poi-service/run-capi
+++ b/src/poi-service/run-capi
@@ -26,6 +26,8 @@
#
# @licence end@
+export LD_LIBRARY_PATH=$DBUS_LIB_PATH/lib
+
CURDIR=$PWD
BIN_DIR=$CURDIR/poi-server-capi/bin
diff --git a/src/speech/main.cpp b/src/speech/main.cpp
index f6b3ca4..a122c71 100644
--- a/src/speech/main.cpp
+++ b/src/speech/main.cpp
@@ -36,6 +36,9 @@
#include <iostream>
#include <cmath>
#include <typeinfo>
+#ifndef DBUS_HAS_RECURSIVE_MUTEX
+#define DBUS_HAS_RECURSIVE_MUTEX
+#endif
#include <dbus-c++-1/dbus-c++/glib-integration.h>
#include <semaphore.h>
#include <flite.h>
diff --git a/src/speech/run.sh b/src/speech/run.sh
index 6a6126d..d20b715 100755
--- a/src/speech/run.sh
+++ b/src/speech/run.sh
@@ -1,3 +1,4 @@
#!/bin/bash
+export LD_LIBRARY_PATH=$DBUS_LIB_PATH/lib
./bin/speech-output-server