From 5679bb5985dfbb5b952ce954f3cd552f2b1aab8d Mon Sep 17 00:00:00 2001 From: Tadao Tanikawa Date: Tue, 31 Jan 2017 20:52:23 +0900 Subject: [PATCH] Fix weston fails to start when mapview-demo enabled Some part of weston which support mapview-demo refers library in /usr/local/lib. To solve this, make symblic link directory into /usr/lib because adding /usr/local/lib into library search path in anyway didn't work well. E.g. Environment=LD_LIBRARY_PATH=/usr/local/lib in weston service E.g. LD_LIBRARY_PATH=/usr/local/lib in /etc/environment E.g. Adding /usr/local/lib into /etc/ld.so.conf Change-Id: I9d85732c18d1c9b13343304f45b53cfc806ec941 Signed-off-by: Tadao Tanikawa --- .../navigation/mapviewer-demo/switch_off_mapviewer-demo.sh | 4 ++++ .../navigation/mapviewer-demo/switch_on_mapviewer-demo.sh | 3 +++ 2 files changed, 7 insertions(+) diff --git a/recipes-demo-hmi/navigation/mapviewer-demo/switch_off_mapviewer-demo.sh b/recipes-demo-hmi/navigation/mapviewer-demo/switch_off_mapviewer-demo.sh index 22fa16c7c..b38cbc473 100755 --- a/recipes-demo-hmi/navigation/mapviewer-demo/switch_off_mapviewer-demo.sh +++ b/recipes-demo-hmi/navigation/mapviewer-demo/switch_off_mapviewer-demo.sh @@ -3,3 +3,7 @@ /bin/systemctl disable weston-mapviewer-demo.service /bin/systemctl enable weston.service /bin/systemctl disable mapviewer.service + +rm -f /usr/lib/libmmngrbuf.so.1 + +sync diff --git a/recipes-demo-hmi/navigation/mapviewer-demo/switch_on_mapviewer-demo.sh b/recipes-demo-hmi/navigation/mapviewer-demo/switch_on_mapviewer-demo.sh index f61cdc700..2259a482b 100755 --- a/recipes-demo-hmi/navigation/mapviewer-demo/switch_on_mapviewer-demo.sh +++ b/recipes-demo-hmi/navigation/mapviewer-demo/switch_on_mapviewer-demo.sh @@ -4,3 +4,6 @@ /bin/systemctl enable weston-mapviewer-demo.service /bin/systemctl enable mapviewer.service +/bin/ln -sf /usr/local/lib/libmmngrbuf.so.1 /usr/lib + +sync -- 2.16.6