You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
59 lines
1.1 KiB
59 lines
1.1 KiB
#!/bin/bash -e
|
|
sudo apt-get update && sudo apt-get install -y \
|
|
autoconf \
|
|
build-essential \
|
|
bzip2 \
|
|
clang \
|
|
cmake \
|
|
curl \
|
|
ffmpeg \
|
|
git \
|
|
libarchive-dev \
|
|
libbz2-dev \
|
|
libcurl4-openssl-dev \
|
|
libeigen3-dev \
|
|
libffi-dev \
|
|
libglew-dev \
|
|
libgles2-mesa-dev \
|
|
libglfw3-dev \
|
|
libglib2.0-0 \
|
|
liblzma-dev \
|
|
libmysqlclient-dev \
|
|
libomp-dev \
|
|
libopencv-dev \
|
|
libssl-dev \
|
|
libsqlite3-dev \
|
|
libtool \
|
|
libusb-1.0-0-dev \
|
|
libzmq5-dev \
|
|
locales \
|
|
ocl-icd-libopencl1 \
|
|
ocl-icd-opencl-dev \
|
|
opencl-headers \
|
|
python-dev \
|
|
python-pip \
|
|
screen \
|
|
sudo \
|
|
vim \
|
|
wget
|
|
|
|
curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash
|
|
|
|
# TODO: add pyenv to .bashrc
|
|
pyenv install 3.7.3
|
|
pyenv global 3.7.3
|
|
pyenv rehash
|
|
|
|
# install pipenv
|
|
pip install pipenv==2018.11.26
|
|
|
|
# pipenv setup
|
|
cd ../
|
|
pipenv install --system --deploy
|
|
|
|
# TODO: add openpilot to PYTHONPATH and external to PATH
|
|
# export PYTHONPATH="$HOME/openpilot"
|
|
# export PATH="$PATH:$HOME/openpilot/external/capnp/bin"
|
|
|
|
# TODO: run external/capnp/build.sh ... needed?
|
|
|
|
|