~ubuntu-branches/ubuntu/raring/openwalnut/raring

« back to all changes in this revision

Viewing changes to resources/qt4gui/bin/openwalnut

  • Committer: Package Import Robot
  • Author(s): Sebastian Eichelbaum
  • Date: 2012-12-12 11:26:32 UTC
  • mfrom: (3.1.1 sid)
  • Revision ID: package-import@ubuntu.com-20121212112632-xhiuwkxuz5h0idkh
Tags: 1.3.1+hg5849-1
* Minor changes compared to 1.3.0 but included several bug fixes.
* See http://www.openwalnut.org/versions/4

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/sh
2
 
 
3
 
# get path of this script
4
 
BINDIR=`dirname "$0"`
5
 
cd "$BINDIR/.."
6
 
 
7
 
# We want to avoid that multiple system installations of OpenWalnut cause some weird loading of libs. We want ours (relative to our executable) to be loaded:
8
 
Libs="libopenwalnut_biosig.so.1 libopenwalnut_eep.so.1 libopenwalnut_niftiio.so.1 libopenwalnut_niftiznz.so.1"
9
 
# Well, this one needs to be there! If not, your installation is wrong.
10
 
Preloads="lib/libopenwalnut.so.1"
11
 
# We need to ensure the libs are there. If not, do not add them to the preloads variable
12
 
for lib in $Libs
13
 
do
14
 
    if [ -e "lib/$lib" ]; then
15
 
        Preloads=$Preloads:lib/$lib
16
 
    fi
17
 
done
18
 
# Finally, export it
19
 
export LD_PRELOAD=$Preloads
20
 
 
21
 
# Run OpenWalnut
22
 
bin/openwalnut-qt4 $@
23