-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinstall_emulator_linux
More file actions
executable file
·36 lines (29 loc) · 1020 Bytes
/
install_emulator_linux
File metadata and controls
executable file
·36 lines (29 loc) · 1020 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/bash
# Quit if anything fails
set -e
#for best kernel only
if [ `uname` != "Linux" ];
then
echo "This script is for (Debian based) Linux only"
exit 1
fi
command -v apt >/dev/null 2>&1 || {
echo "You need to have apt installed. Which it should be, if you're running Debian based Linux." >&2;
echo "(Also I shouldn't have to mention this, but Ubuntu is Debian based)." >&2;
exit 1;
}
thisdir=`pwd`
command -v socat >/dev/null 2>&1 || sudo apt-get install socat
dpkg -s libzmq3-dev >/dev/null 2>&1 || sudo apt-get install libzmq3-dev
dpkg -s libzmqpp-dev >/dev/null 2>&1 || sudo apt-get install libzmqpp-dev
dpkg -s python-kivy >/dev/null 2>&1 || sudo apt-get install python-kivy
command -v pip >/dev/null 2>&1 || sudo apt-get install python-pip
sudo pip install cython
sudo pip install pygame
sudo pip install pyzmq
cd $thisdir
cd Firmware_Wrapper
./convert_firmware.sh
# echo "g++ -std=c++11 -pthread -lzmq main.cpp -o bpod_em"
g++ -std=c++11 -pthread main.cpp -o bpod_em -lzmq
cd ..