If you're looking to build GUIs with PySide2 for Qt 5.15.10 on Jetson Nano, Then follow the steps:
-
Install Pre-requisites
sudo apt-get install libxcb-xinput0
-
Install Python3.7 using
sudo apt install python3.7
-
Install pip using
sudo apt-get install python3-pip
-
Clone the Repository using
git clone https://github.com/achuthaperumal/PySide2-NVIDIA-Jetson-Nano.git && cd PySide2-NVIDIA-Jetson-Nano
-
Install Shiboken
python3.7 -m pip install ./shiboken2-5.15.10-5.15.10-cp37-cp37m-linux_aarch64.whl
-
Install PySide2 with Pip
python3.7 -m pip install ./PySide2-5.15.10-5.15.10-cp37-cp37m-linux_aarch64.whl
Note: This wheel file is built as standalone package meaning you do not need to install Qt5 seperately. Since opencv has an inbuilt Qt and it interferes with this version, you have to install opencv-headless using
pip uninstall opencv-python && pip install opencv-python-headless
In case you come across any error regarding "unable to initialize platform plugin xcb..."
-
Set Qt plugins in Debug mode
export QT_DEBUG_PLUGINS=1
-
Now run your program and look for errors in the console.
-
Try to fix the errors by installing the missing packages.