Removed libmysqldb-dev. dont need to add scons, some QT -dev added, python3-dev is not neededand readline-dev to apt install. Added path to .pyenv/shims and .pyenv/bin for the setupscript to find where pip and pyenv is installed. Also made the setup end like the mac_setup script (#20860)

pull/21046/head
Nicklas Boman 4 years ago committed by GitHub
parent c6538e91b8
commit 0f43e7e089
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 12
      tools/ubuntu_setup.sh

@ -23,7 +23,6 @@ sudo apt-get update && sudo apt-get install -y --no-install-recommends \
libglfw3-dev \ libglfw3-dev \
libglib2.0-0 \ libglib2.0-0 \
liblzma-dev \ liblzma-dev \
libmysqlclient-dev \
libomp-dev \ libomp-dev \
libopencv-dev \ libopencv-dev \
libpng16-16 \ libpng16-16 \
@ -50,7 +49,10 @@ sudo apt-get update && sudo apt-get install -y --no-install-recommends \
sudo \ sudo \
vim \ vim \
wget \ wget \
gcc-arm-none-eabi gcc-arm-none-eabi \
libqt5svg5-dev \
libqt5x11extras5-dev \
libreadline-dev
# install git lfs # install git lfs
if ! command -v "git-lfs" > /dev/null 2>&1; then if ! command -v "git-lfs" > /dev/null 2>&1; then
@ -81,6 +83,7 @@ git submodule init
git submodule update git submodule update
# install python # install python
PATH=$HOME/.pyenv/bin:$HOME/.pyenv/shims:$PATH
pyenv install -s 3.8.5 pyenv install -s 3.8.5
pyenv global 3.8.5 pyenv global 3.8.5
pyenv rehash pyenv rehash
@ -90,3 +93,8 @@ eval "$(pyenv init -)"
pip install --upgrade pip==20.2.4 pip install --upgrade pip==20.2.4
pip install pipenv==2020.8.13 pip install pipenv==2020.8.13
pipenv install --dev --system --deploy pipenv install --dev --system --deploy
echo
echo "---- FINISH OPENPILOT SETUP ----"
echo "Configure your active shell env by running:"
echo "source ~/.bashrc"

Loading…
Cancel
Save