Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-2156

Can not build PySide6 from source on Jetson Orin

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3: Somewhat important
    • 6.4.1
    • 6.4.1
    • Build System
    • None
    • Linux ubuntu 5.10.104-tegra #1 SMP PREEMPT Wed Aug 10 20:17:07 PDT 2022 aarch64 aarch64 aarch64 GNU/Linux
    • Linux/X11

    Description

      Hello team,

      I attempted to build PySide6 for Nvidia Jetson Orin using Qmake from usr/local/Qt-6.4.1/bin/qmake without success (All requirements have been installed). Since many Jetson users in Nvidia forum also face this issues so i put the priority critical.

      I follow this instruction to build Qt5.15.6 and 6.4.1 https://forums.developer.nvidia.com/t/pyside2-qt-for-python-installation-on-jetson-xavier/160796/5 . Note: I tried all the solution with 6.4.1 before build 5.15.6 to verify what wrongs.

      sdv_orin@ubuntu:~/Documents/pyside-setup$ sudo python3 setup.py install --qmake=/usr/local/Qt-6.4.1/bin/qmake
      [sudo] password for sdv_orin: 
      Traceback (most recent call last):
        File "setup.py", line 42, in <module>
          setup_runner.run_setup()
        File "/home/sdv_orin/Documents/pyside-setup/build_scripts/setup_runner.py", line 204, in run_setup
          self.run_setuptools_setup()
        File "/home/sdv_orin/Documents/pyside-setup/build_scripts/setup_runner.py", line 277, in run_setuptools_setup
          setup(**kwargs)
        File "/usr/local/lib/python3.8/dist-packages/setuptools/__init__.py", line 86, in setup
          _install_setup_requires(attrs)
        File "/usr/local/lib/python3.8/dist-packages/setuptools/__init__.py", line 75, in _install_setup_requires
          dist = MinimalDistribution(attrs)
        File "/usr/local/lib/python3.8/dist-packages/setuptools/__init__.py", line 59, in __init__
          self.set_defaults._disable()
      AttributeError: 'MinimalDistribution' object has no attribute 'set_defaults'
      Traceback (most recent call last):
        File "setup.py", line 42, in <module>
          setup_runner.run_setup()
        File "/home/sdv_orin/Documents/pyside-setup/build_scripts/setup_runner.py", line 260, in run_setup
          raise RuntimeError(msg)
      RuntimeError: 
      setup.py invocation failed with exit code: 1.
      setup.py invocation was: /usr/bin/python3 setup.py install --qmake=/usr/local/Qt-6.4.1/bin/qmake --internal-build-type=shiboken6
      

      The same procedure worked for PySide2 5.15.2 (Qmake from Qt-5.15.6). Because the Nvidia Jetson family does not support pyside and pyqt from pip. I also careful research before asking for help but can not found any useful.  I'm really struggling. Thank you in advanced

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            crmaurei Cristian Maureira-Fredes
            minhtam Minh Tâm
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes