Building Qt 5 from Git to get PySide2 (QtQuick 2.15) for Nvidia Jetson Arm64
-
Hello
I have some problem when trying to get PySide2 (Qt.Quick 2.15) working on arm64 architecture Nvidia Jetson. I am familiar with
apt-get
orpip install
. But since the Jetson arm64 repo only provide PyQt 5.12.8 and QtQuick 2.12 I struggle with linux build to install PyQt5.15.2 for hours but now I'm stuck at very last step.Since I install the Qt 5.15.x to get the QtQuick 2.15 for PySide2 the embedded system Nvidia Jetson i follow this instruction:
https://forums.developer.nvidia.com/t/pyside2-qt-for-python-installation-on-jetson-xavier/160796/5Everything seem good. I follow the instruction build Qt from Git success then i have Qt-5.15.2 in /usr/local.
qmake --version QMake version 3.1 Using Qt version 5.15.2 in /usr/local/Qt-5.15.2/lib
Then I install PySide2 using
sudo python setup.py install --qmake=/usr/local/Qt-5.15.2/bin/qmake
It took 3 hours and the terminal output "successful" but when i run the PySide2 application still missing QtQuick 2.15
I think it relate to environment but I am not clear. It took me hours to figure out but only few minute with experts like you. Please give me some instruction. Thank you
-
Add Qt-5.15.2 bin and lib into bashrc
-
Hi and welcome to devnet,
Glad you could build it but your solution sounds wrong.
Adding these changes to your bashrc means that everything you start from the command line will be influenced by them.
A more long term approach (and usually recommended when using python) would be to create a virtual environment for your project so you can have everything stored in one place.