From: Tadao Tanikawa Date: Tue, 31 Jan 2017 11:52:23 +0000 (+0900) Subject: Fix weston fails to start when mapview-demo enabled X-Git-Tag: 3.0.2~5 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=5679bb5985dfbb5b952ce954f3cd552f2b1aab8d;p=AGL%2Fmeta-agl-demo.git 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 --- 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