Skip to content

Commit

Permalink
Merge pull request #523 from bitcraze/ataffanel/libxcb
Browse files Browse the repository at this point in the history
#518: Add libxcb-xinemara0 install req
  • Loading branch information
knmcguire authored Jul 14, 2021
2 parents ff87242 + c58aaf2 commit c925258
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 2 additions & 3 deletions docs/installation/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,12 @@ page_id: install

For < Ubuntu 20.04 you will need to check first if which version your python is on and if you have 'python3' on your system.

From a fresh Ubuntu 20.04 system, running the client form source requires git and pip.
From a fresh Ubuntu 20.04 system, running the client form source requires git, pip and a lib for the Qt GUI.

```
sudo apt install git python3-pip python3-pyqt5
sudo apt install git python3-pip libxcb-xinerama0
pip3 install --upgrade pip
```
Since the pyqt5 package required for the cfclient does not install all the libraries, it will need to be installed seperately too, however this should be fixed in the future. See this [issue](https://github.com/bitcraze/crazyflie-clients-python/issues/518)

### Setting udev permissions

Expand Down
3 changes: 3 additions & 0 deletions src/cfclient/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,9 @@ def main():
from PyQt5.QtWidgets import QApplication
from PyQt5.QtGui import QIcon

if os.name == 'posix':
logger.info('If startup fails because of "xcb", install dependency with `sudo apt install libxcb-xinerama0`.')

app = QApplication(sys.argv)
app.setStyle("Fusion")
from cfclient.utils.ui import UiUtils
Expand Down

0 comments on commit c925258

Please sign in to comment.