Skip to content

Commit

Permalink
add xcb depends to scripts and docs to close #108
Browse files Browse the repository at this point in the history
  • Loading branch information
sneakers-the-rat committed Jul 27, 2021
1 parent 13c4c56 commit 9c38aba
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 4 deletions.
17 changes: 16 additions & 1 deletion autopilot/setup/scripts.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,27 @@
SCRIPTS = odict({
'env_pilot': {
'type': 'bool',
'text': 'install system packages necessary for autopilot? (required if they arent already)',
'text': 'install system packages necessary for autopilot Pilots? (required if they arent already)',
'commands': [
"sudo apt-get update",
"sudo apt-get install -y build-essential cmake git python3-dev libatlas-base-dev libsamplerate0-dev libsndfile1-dev libreadline-dev libasound-dev i2c-tools libportmidi-dev liblo-dev libhdf5-dev libzmq-dev libffi-dev",
]
},
'env_terminal': {
'type': 'bool',
'text': 'install system packages necessary for autopilot Terminals? (required if they arent already)',
'commands': [
'sudo apt-get update',
'sudo apt-get install -y \
libxcb-icccm4 \
libxcb-image0 \
libxcb-keysyms1 \
libxcb-randr0 \
libxcb-render-util0 \
libxcb-xinerama0 \
libxcb-xfixes0'
]
},
'performance': {
'type': 'bool',
'text': 'Do performance enhancements? (recommended, change cpu governor and give more memory to audio)',
Expand Down
18 changes: 15 additions & 3 deletions docs/guide/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ We have tried to take care to make certain platform-specific dependencies not br
so if you have some difficulty installing autopilot on a non-raspberry-pi linux machine please submit an issue!


Pre-installation prep
Pre-installation
=====================

On the Pilot device
Expand All @@ -39,7 +39,9 @@ It's also best to update the Pi's operating system at this time::
sudo apt update
sudo apt upgrade -y

Now install the system packages that are required by Autopilot. You can do this by running this command, or it's also available as a setup script in the guided installation of Autopilot. ::
Now install the system packages that are required by Autopilot.
You can do this by running this command, or it's also available as a setup script
in the guided installation of Autopilot. (``python -m autopilot.setup.run_script env_pilot``) ::

sudo apt install -y \
python3-dev \
Expand All @@ -61,7 +63,17 @@ Now install the system packages that are required by Autopilot. You can do this
On the Terminal device
----------------------

On the computer that will run the Terminal, you also need to install virtualenv and create a virtualenv for Autopilot, but you don't need to install all the system dependencies (the line beginning with "sudo apt install").
The following system packages are required by ``PySide2`` (which no longer packages ``xcb``)::

sudo apt-get update && \
sudo apt-get install -y \
libxcb-icccm4 \
libxcb-image0 \
libxcb-keysyms1 \
libxcb-randr0 \
libxcb-render-util0 \
libxcb-xinerama0 \
libxcb-xfixes0

Creating a Virtual Environment
------------------------------
Expand Down

0 comments on commit 9c38aba

Please sign in to comment.