-
Notifications
You must be signed in to change notification settings - Fork 1
/
update-mvo-ext.bash
executable file
·35 lines (30 loc) · 1.48 KB
/
update-mvo-ext.bash
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
# Refresh build of plugin
cd /mvo-ext-src
mkdir -p build
cd build
cmake -DAFW_SDK_DIR=$AFW_SDK_DIR \
-DCMAKE_PREFIX_PATH=/qt/5.12.2/gcc_64/lib/cmake \
../mapviewer.ext
cmake --build .
# Start MVO on demand
MVO_RUNNING=$(ps | grep startMvoServer)
if [ -z "$MVO_RUNNING" ]; then
echo "-> Starting MVO in the background (localhost:5000)"
export NDS_PLUGIN_PATH=/mvo-ext-src/build
cd /MapViewerOnline/mapviewer.server/plugins/mapviewer.backend
mv mapviewer.ext.3dobjects.pluginspec mapviewer.ext.3dobjects.pluginspec.disabled
mv mapviewer.ext.autodrive.pluginspec mapviewer.ext.autodrive.pluginspec.disabled
mv mapviewer.ext.landmarks.pluginspec mapviewer.ext.landmarks.pluginspec.disabled
mv mapviewer.ext.obstacles.pluginspec mapviewer.ext.obstacles.pluginspec.disabled
mv mapviewer.extension.gpx.pluginspec mapviewer.extension.gpx.pluginspec.disabled
mv mapviewer.extension.kml.pluginspec mapviewer.extension.kml.pluginspec.disabled
mv mapviewer.extension.locmark.pluginspec mapviewer.extension.locmark.pluginspec.disabled
mv mapviewer.extension.recorder.pluginspec mapviewer.extension.recorder.pluginspec.disabled
mv mapviewer.ext.poi.pluginspec mapviewer.ext.poi.pluginspec.disabled
cd /MapViewerOnline/mapviewer.sessionserver
/MapViewerOnline/mapviewer.sessionserver/startMvoServer.sh > /mvo-ext-src/log.txt 2>&1 &
echo "-> View docs on localhost:80"
cd /ndsafw-sdk/sdk/sdk-doc
python3 -m http.server 80 2>&1 > /dev/null &
cd /mvo-ext-src/build
fi