Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
plugin-GUI
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
yehaojie
plugin-GUI
Commits
1847d041
Commit
1847d041
authored
9 years ago
by
Yogi
Browse files
Options
Downloads
Patches
Plain Diff
adding setup script for unix installs
parent
f340a6bb
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Builds/Linux/setup.sh
+100
-0
100 additions, 0 deletions
Builds/Linux/setup.sh
Source/UI/UIComponent.cpp
+557
-559
557 additions, 559 deletions
Source/UI/UIComponent.cpp
with
657 additions
and
559 deletions
Builds/Linux/setup.sh
0 → 100755
+
100
−
0
View file @
1847d041
#/*
# ------------------------------------------------------------------
#
# This file is part of the Open Ephys GUI
# Copyright (C) 2013 Open Ephys
#
# ------------------------------------------------------------------
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
#*/
#!/bin/bash
BUILD_HOME
=
$(
pwd
)
PLUGIN_DIR
=
"/usr/local/lib"
PROC_DIR
=
${
BUILD_HOME
%/*/*
}
# Step 1: Compile GUI source
make
-j2
if
[
$?
-eq
0
]
;
then
sudo ln
-s
-f
$BUILD_HOME
/build/open-ephys /usr/bin/.
echo
"-----> GUI compile successful."
else
echo
"-----> GUI compile failed."
exit
fi
# Step 2: Create GUI shared library
# cd $BUILD_HOME/build/intermediate/Debug/
# g++ -fPIC -shared -o libephys.so *.o
# sudo rm /usr/lib/libephys.so
# sudo cp libephys.so /usr/lib/.
# ldconfig -n /usr/lib/
# if [ $? -eq 0 ]; then
# echo "-----> OpenEphys library installation sucessful."
# else
# echo "-----> OpenEphys library installation failed."
# exit
# fi
# Step 2: Setup directories for plugins
if
[
!
-d
"
${
PLUGIN_DIR
}
/GUI"
]
;
then
sudo mkdir
${
PLUGIN_DIR
}
/GUI
fi
if
[
!
-d
"
${
PLUGIN_DIR
}
/GUI"
]
;
then
sudo mkdir
${
PLUGIN_DIR
}
/GUI
fi
if
[
!
-d
"
${
PLUGIN_DIR
}
/GUI/sources"
]
;
then
sudo mkdir
${
PLUGIN_DIR
}
/GUI/sources/
fi
if
[
!
-d
"
${
PLUGIN_DIR
}
/GUI/sinks"
]
;
then
sudo mkdir
${
PLUGIN_DIR
}
/GUI/sinks/
fi
if
[
!
-d
"
${
PLUGIN_DIR
}
/GUI/filters"
]
;
then
sudo mkdir
${
PLUGIN_DIR
}
/GUI/filters/
fi
if
[
!
-d
"
${
PLUGIN_DIR
}
/GUI/utilities"
]
;
then
sudo mkdir
${
PLUGIN_DIR
}
/GUI/utilities/
fi
# Step 3: Compile plugins
PLUGIN_SRC_DIR
=
"
${
PROC_DIR
}
/Source/Processors"
PLUGINS
=
`
ls
-d
${
PLUGIN_SRC_DIR
}
/
*
`
cd
$PLUGIN_SRC_DIR
for
PLUGIN
in
${
PLUGINS
}
do
if
[
-f
$PLUGIN
/Makefile
]
;
then
cd
$PLUGIN
make clean
make
if
[
$?
-ne
0
]
;
then
echo
"-----> Plugin compile failed."
exit
fi
make
install
cd
..
fi
done
if
[
$?
-eq
0
]
;
then
echo
"-----> Plugin installation sucessful."
else
echo
"-----> Plugin installation failed."
exit
fi
This diff is collapsed.
Click to expand it.
Source/UI/UIComponent.cpp
+
557
−
559
View file @
1847d041
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment