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

Build fails on ARM

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Done
    • Affects Version/s: 6.1.2
    • Fix Version/s: None
    • Component/s: Build System
    • Labels:
      None
    • Platform/s:
      Linux/X11
    • Commits:
      e0848b2d644574e914d3f71c1fe4b309e39ac099 (pyside/pyside-setup/dev) e4b310f0e7d0795fab017085c1724ef1434cc2df (pyside/pyside-setup/6.1)

      Description

      Tested with 6.1.2 and the dev branch.

      pyside fails to build on arm (aarch64 and armv7l) with this error:

      [ 1650s] FAILED: PySide6/QtOpenGL.cpython-38-arm-linux-gnueabihf.so 
      [ 1650s] : && /usr/bin/c++ -fPIC -Wall -fvisibility=hidden -Wno-strict-aliasing -O2 -g -DNDEBUG -Wl,--as-needed -Wl,--no-undefined -shared -o PySide6/QtOpenGL.cpython-38-arm-linux-gnueabihf.so PySide6/QtOpenGL/CMakeFiles/QtOpenGL.dir/PySide6/QtOpenGL/qabstractopenglfunctions_wrapper.cpp.o PySide6/QtOpenGL/CMakeFiles/QtOpenGL.dir/PySide6/QtOpenGL/qopengldebuglogger_wrapper.cpp.o PySide6/QtOpenGL/CMakeFiles/QtOpenGL.dir/PySide6/QtOpenGL/qopengldebugmessage_wrapper.cpp.o PySide6/QtOpenGL/CMakeFiles/QtOpenGL.dir/PySide6/QtOpenGL/qopenglframebufferobjectformat_wrapper.cpp.o PySide6/QtOpenGL/CMakeFiles/QtOpenGL.dir/PySide6/QtOpenGL/qopenglpaintdevice_wrapper.cpp.o PySide6/QtOpenGL/CMakeFiles/QtOpenGL.dir/PySide6/QtOpenGL/qopenglpixeltransferoptions_wrapper.cpp.o PySide6/QtOpenGL/CMakeFiles/QtOpenGL.dir/PySide6/QtOpenGL/qopenglshaderprogram_wrapper.cpp.o PySide6/QtOpenGL/CMakeFiles/QtOpenGL.dir/PySide6/QtOpenGL/qopengltexture_wrapper.cpp.o PySide6/QtOpenGL/CMakeFiles/QtOpenGL.dir/PySide6/QtOpenGL/qopengltextureblitter_wrapper.cpp.o PySide6/QtOpenGL/CMakeFiles/QtOpenGL.dir/PySide6/QtOpenGL/qopenglversionprofile_wrapper.cpp.o PySide6/QtOpenGL/CMakeFiles/QtOpenGL.dir/PySide6/QtOpenGL/qopenglvertexarrayobject_wrapper.cpp.o PySide6/QtOpenGL/CMakeFiles/QtOpenGL.dir/PySide6/QtOpenGL/qopenglvertexarrayobject_binder_wrapper.cpp.o PySide6/QtOpenGL/CMakeFiles/QtOpenGL.dir/PySide6/QtOpenGL/qopenglwindow_wrapper.cpp.o PySide6/QtOpenGL/CMakeFiles/QtOpenGL.dir/PySide6/QtOpenGL/qopenglbuffer_wrapper.cpp.o PySide6/QtOpenGL/CMakeFiles/QtOpenGL.dir/PySide6/QtOpenGL/qopenglshader_wrapper.cpp.o PySide6/QtOpenGL/CMakeFiles/QtOpenGL.dir/PySide6/QtOpenGL/qopenglframebufferobject_wrapper.cpp.o PySide6/QtOpenGL/CMakeFiles/QtOpenGL.dir/PySide6/QtOpenGL/qtopengl_module_wrapper.cpp.o PySide6/QtOpenGL/CMakeFiles/QtOpenGL.dir/PySide6/QtOpenGL/qopenglfunctions_es2_wrapper.cpp.o -Wl,-rpath,"/home/abuild/rpmbuild/BUILD/pyside-setup-opensource-src-6.2.0~git/sources/pyside6/build/libpyside:" libpyside/libpyside6.cpython-38-arm-linux-gnueabihf.so.6.0.0 /usr/lib/libshiboken6.cpython-38-arm-linux-gnueabihf.so.6.0.0 /usr/lib/libpython3.8.so /usr/lib/libQt6OpenGL.so.6.2.0 /usr/lib/libQt6Gui.so.6.2.0 /usr/lib/libQt6Core.so.6.2.0 -pthread /usr/lib/libGLESv2.so /usr/lib/libEGL.so && :
      [ 1650s] /usr/lib/gcc/armv7hl-suse-linux-gnueabi/11/../../../../armv7hl-suse-linux-gnueabi/bin/ld: PySide6/QtOpenGL/CMakeFiles/QtOpenGL.dir/PySide6/QtOpenGL/qtopengl_module_wrapper.cpp.o: in function `PyInit_QtOpenGL':
      [ 1650s] /home/abuild/rpmbuild/BUILD/pyside-setup-opensource-src-6.2.0~git/sources/pyside6/build/PySide6/QtOpenGL/PySide6/QtOpenGL/qtopengl_module_wrapper.cpp:690: undefined reference to `init_QOpenGLVersionFunctionsFactory(_object*)'
      [ 1650s] collect2: error: ld returned 1 exit status

       

      A notable information: On these platforms, qtbase is built with -DINPUT_opengl:STRING=es2 -DFEATURE_opengles3:BOOL=ON

       

       

        Attachments

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

          Activity

            People

            Assignee:
            kleint Friedemann Kleint
            Reporter:
            cgiboudeaux Christophe Giboudeaux
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes