Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
OpenWalnut
OpenWalnut Core
Commits
648e9740
Commit
648e9740
authored
Jul 02, 2012
by
Stefan Philips
Browse files
[CHANGE] Allow relative paths (project or data-file) as openwalnut parameter
parent
c9dc7af6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
resources/platformDependent/qt4gui/linux/bin/openwalnut
resources/platformDependent/qt4gui/linux/bin/openwalnut
+8
-6
No files found.
resources/platformDependent/qt4gui/linux/bin/openwalnut
View file @
648e9740
...
...
@@ -2,17 +2,20 @@
# get path of this script
BINDIR
=
`
dirname
"
$0
"
`
cd
"
$BINDIR
/.."
# strip "bin" to get base directory
BASEDIR
=
`
dirname
"
$BINDIR
"
`
LIBDIR
=
$BASEDIR
/lib
# 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:
Libs
=
"libopenwalnut_biosig.so.1 libopenwalnut_eep.so.1 libopenwalnut_niftiio.so.1 libopenwalnut_niftiznz.so.1"
# Well, this one needs to be there! If not, your installation is wrong.
Preloads
=
"
lib
/libopenwalnut.so.1"
Preloads
=
"
$LIBDIR
/libopenwalnut.so.1"
# We need to ensure the libs are there. If not, do not add them to the preloads variable
for
lib
in
$Libs
do
if
[
-e
"lib/
$lib
"
]
;
then
Preloads
=
$Preloads
:lib/
$lib
libfile
=
$LIBDIR
/
$lib
if
[
-e
"
$libfile
"
]
;
then
Preloads
=
$Preloads
:
$libfile
fi
done
# Finally, export it
...
...
@@ -22,5 +25,4 @@ export LD_PRELOAD=$Preloads
export
LC_ALL
=
C
# Run OpenWalnut
bin/openwalnut-qt4
$@
$BINDIR
/openwalnut-qt4
$@
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment