Fix weston fails to start when mapview-demo enabled 05/8405/2
authorTadao Tanikawa <tanikawa.tadao@jp.panasonic.com>
Tue, 31 Jan 2017 11:52:23 +0000 (20:52 +0900)
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Thu, 16 Feb 2017 12:45:14 +0000 (12:45 +0000)
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 <tanikawa.tadao@jp.panasonic.com>
recipes-demo-hmi/navigation/mapviewer-demo/switch_off_mapviewer-demo.sh
recipes-demo-hmi/navigation/mapviewer-demo/switch_on_mapviewer-demo.sh

index 22fa16c..b38cbc4 100755 (executable)
@@ -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
index f61cdc7..2259a48 100755 (executable)
@@ -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