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

Cross-compiling fails for 6.4

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3: Somewhat important
    • 6.4.0
    • 6.4
    • PySide
    • None
    • Linux/X11
    • 55d3c8da3e (pyside/pyside-setup/dev)

    Description

      Cross compiling pyside-setup for raspberry Pi4 with following command:

      python3 setup.py bdist_wheel --parallel=8 --ignore-git --reuse-build 
      --standalone --limited-api=yes --build-type=all --cmake-toolchain-file=/home/tatiana/work/latestsysroots/raspberryPi4.cmake 
      --qt-host-path=/home/tatiana/Qt/6.4.0/gcc_64/ 
      --plat-name=linux_aarch64 --shiboken-host-path=/home/tatiana/work/latestsysroots/pyside6.4.0-desktop/qfpa-py3.8-qt6.4.0-64bit-release/install/
       --python-target-path=/home/tatiana/work/latestsysroots/rpi-sysroot/usr/bin/python3.9 
      --qt-target-path=/home/tatiana/work/latestsysroots/rpi-raspberry/usr/local/qt6/
      

       
      COMPILATION ERROR:

      [1/2] Building CXX object PySide6/QtOpenGL/CMakeFiles/QtOpenGL.dir/glue/utils.cpp.o
      FAILED: PySide6/QtOpenGL/CMakeFiles/QtOpenGL.dir/glue/utils.cpp.o 
      /usr/bin/aarch64-linux-gnu-g++-10 --sysroot=/home/tatiana/work/latestsysroots/rpi-raspberry -DNDEBUG -DPy_LIMITED_API=0x03060000 -DQT_CORE_LIB -DQT_GUI_LIB -DQT_LEAN_HEADERS=1 -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQtOpenGL_EXPORTS -I/home/tatiana/work/latestsysroots/pyside-setup/sources/pyside6/PySide6/QtOpenGL/QtOpenGL -I/home/tatiana/work/latestsysroots/pyside-setup/sources/pyside6/PySide6/QtOpenGL -I/home/tatiana/work/latestsysroots/pyside-setup/sources/pyside6/libpyside -I/home/tatiana/work/latestsysroots/pyside-setup/build/qfpa-py3.9-qt6.4.0-linux_aarch64-release/build/pyside6/PySide6/QtCore/PySide6/QtCore -I/home/tatiana/work/latestsysroots/pyside-setup/build/qfpa-py3.9-qt6.4.0-linux_aarch64-release/build/pyside6/PySide6/QtGui/PySide6/QtGui -I/home/tatiana/work/latestsysroots/pyside-setup/build/qfpa-py3.9-qt6.4.0-linux_aarch64-release/build/pyside6/PySide6/QtOpenGL/PySide6/QtOpenGL -I/home/tatiana/work/latestsysroots/pyside-setup/sources/pyside6/PySide6 -isystem /home/tatiana/work/latestsysroots/rpi-raspberry/usr/local/qt6/include/QtCore -isystem /home/tatiana/work/latestsysroots/rpi-raspberry/usr/local/qt6/include -isystem /home/tatiana/work/latestsysroots/rpi-raspberry/usr/local/qt6/include/QtGui -isystem /home/tatiana/work/latestsysroots/rpi-raspberry/usr/local/qt6/include/QtOpenGL -isystem /home/tatiana/work/latestsysroots/rpi-raspberry/usr/local/qt6/mkspecs/devices/linux-rasp-pi4-aarch64 -isystem /home/tatiana/work/latestsysroots/pyside-setup/build/qfpa-py3.9-qt6.4.0-linux_aarch64-release/install/include/shiboken6 -isystem /home/tatiana/work/latestsysroots/rpi-raspberry/usr/include/python3.9 -march=armv8-a -I/home/tatiana/work/latestsysroots/rpi-raspberry/usr/include -Wall -fvisibility=hidden -Wno-strict-aliasing -Os -DNDEBUG -fPIC -fPIC -ffunction-sections -fdata-sections -fno-exceptions -pthread -std=gnu++17 -MD -MT PySide6/QtOpenGL/CMakeFiles/QtOpenGL.dir/glue/utils.cpp.o -MF PySide6/QtOpenGL/CMakeFiles/QtOpenGL.dir/glue/utils.cpp.o.d 
      -o PySide6/QtOpenGL/CMakeFiles/QtOpenGL.dir/glue/utils.cpp.o -c /home/tatiana/work/latestsysroots/pyside-setup/sources/pyside6/PySide6/QtOpenGL/glue/utils.cpp
      /home/tatiana/work/latestsysroots/pyside-setup/sources/pyside6/PySide6/QtOpenGL
      
      /glue/utils.cpp: In function ‘int glGetVReturnSize(GLenum)’:
      /home/tatiana/work/latestsysroots/pyside-setup/sources/pyside6/PySide6/QtOpenGL/glue/utils.cpp:15:10: error: ‘GL_POINT_SIZE_RANGE’ was not declared in this scope; did you mean ‘GL_ALIASED_POINT_SIZE_RANGE’?
       15 | case GL_POINT_SIZE_RANGE:
       | ^~~~~~~~~~~~~~~~~~~
       | GL_ALIASED_POINT_SIZE_RANGE
      /home/tatiana/work/latestsysroots/pyside-setup/sources/pyside6/PySide6/QtOpenGL/glue/utils.cpp:16:10: error: ‘GL_SMOOTH_LINE_WIDTH_RANGE’ was not declared in this scope; did you mean ‘GL_ALIASED_LINE_WIDTH_RANGE’?
       16 | case GL_SMOOTH_LINE_WIDTH_RANGE:
       | ^~~~~~~~~~~~~~~~~~~~~~~~~~
       | GL_ALIASED_LINE_WIDTH_RANGE
      /home/tatiana/work/latestsysroots/pyside-setup/sources/pyside6/PySide6/QtOpenGL/glue/utils.cpp:17:10: error: ‘GL_VIEWPORT_BOUNDS_RANGE’ was not declared in this scope; did you mean ‘GL_VIEWPORT_BOUNDS_RANGE_NV’?
       17 | case GL_VIEWPORT_BOUNDS_RANGE:
       | ^~~~~~~~~~~~~~~~~~~~~~~~
       | GL_VIEWPORT_BOUNDS_RANGE_NV
      ninja: build stopped: subcommand failed.
      

      Error appears in several places where GL_VIEWPORT_BOUNDS_RANGE difinititions are used.

      Local fix: ADD header with definition declaration:
      #include "GL/gl.h"

       

       

      Attachments

        1. icu_error_output.log
          788 kB
        2. no-qt-tools.log
          691 kB
        3. set_correct_scheme.patch
          2 kB

        Issue Links

          For Gerrit Dashboard: PYSIDE-2060
          # Subject Branch Project Status CR V

          Activity

            People

              kleint Friedemann Kleint
              tatiana.borisova Tatiana Borisova
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews