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

scriptableapplication build fails (from wheels)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P1: Critical
    • None
    • 5.11.1
    • PySide
    • None

    Description

      The latest wheel seems to have a problem with the Qt shared libraries that are shipped, particularly libQt5Qml.so.5.

      A newly created enviroment using the 5.11.1 wheels generate the following error:

      [✔] pylon:~/dev  % source env5.11.1/bin/activate
      [✔] pylon:~/dev  % which python
      /home/crmaurei/dev/env5.11.1/bin/python
      [✔] pylon:~/dev  % pip install PySide2
      Collecting PySide2
        Using cached https://files.pythonhosted.org/packages/2b/cc/7aac6eae6ae145a4ef6b560c710a209c24457d857b63ca4a9d532c67e589/PySide2-5.11.1-5.11.1-cp35.cp36.cp37-abi3-manylinux1_x86_64.whl
      Installing collected packages: PySide2
      Successfully installed PySide2-5.11.1
      [✔] pylon:~/dev  % cd pyside5.11/examples/scriptableapplication/build 
      [✔] pylon:~/dev/pyside5.11/examples/scriptableapplication/build (5.11↑1|●1…) % cmake -H.. -B. -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release
      
      -- Configuring done
      -- Generating done
      -- Build files have been written to: /home/crmaurei/dev/pyside5.11/examples/scriptableapplication/build
      [✔] pylon:~/dev/pyside5.11/examples/scriptableapplication/build (5.11↑1|●1…) % ls
      CMakeFiles/  CMakeCache.txt  Makefile  cmake_install.cmake
      [✔] pylon:~/dev/pyside5.11/examples/scriptableapplication/build (5.11↑1|●1…) % make -j4
      Scanning dependencies of target scriptableapplication_autogen
      [ 10%] Running generator for /home/crmaurei/dev/pyside5.11/examples/scriptableapplication/scriptableapplication.xml.
      qt.shiboken: (scriptableapplication) Unknown attribute for 'add-function': 'allow-thread'
      qt.shiboken: (scriptableapplication) CLANG builtins includes directory: /usr/lib/clang/6.0.1/include
      (scriptableapplication) clang_parseTranslationUnit2(0x0, cmd[14]=-isystem/usr/lib/clang/6.0.1/include -fPIC -Wno-constant-logical-operand -std=c++14 -I/usr/include/qt/ -I/usr/include/qt/QtCore -I/usr/lib/qt//mkspecs/linux-g++ -I/usr/include/qt/ -I/usr/include/qt/QtGui -I/usr/include -I/usr/include/qt/ -I/usr/include/qt/QtWidgets -I/home/crmaurei/dev/pyside5.11/examples/scriptableapplication /tmp/wrappedclasses_XZaGEX.hpp)
      Generating class model...                    [WARNING]
      Generating enum model...                     [OK]
      Generating namespace model...                [OK]
      Resolving typedefs...                        [OK]
      Fixing class inheritance...                  [OK]
      Detecting inconsistencies in class model...  [OK]
      [OK]
      
      Done, 854ms, 1 warnings (165 known issues)
      [ 20%] Automatic MOC for target scriptableapplication
      [ 20%] Built target scriptableapplication_autogen
      Scanning dependencies of target scriptableapplication
      [ 30%] Building CXX object CMakeFiles/scriptableapplication.dir/mainwindow.cpp.o
      [ 40%] Building CXX object CMakeFiles/scriptableapplication.dir/pythonutils.cpp.o
      [ 50%] Building CXX object CMakeFiles/scriptableapplication.dir/main.cpp.o
      [ 60%] Building CXX object CMakeFiles/scriptableapplication.dir/AppLib/applib_module_wrapper.cpp.o
      [ 70%] Building CXX object CMakeFiles/scriptableapplication.dir/AppLib/mainwindow_wrapper.cpp.o
      [ 80%] Building CXX object CMakeFiles/scriptableapplication.dir/scriptableapplication_autogen/mocs_compilation.cpp.o
      [ 90%] Linking CXX executable scriptableapplication
      /home/crmaurei/dev/env5.11.1/lib/python3.6/site-packages/PySide2/Qt/lib/libQt5Qml.so.5: undefined reference to `operator delete(void*, unsigned long)@Qt_5'
      /home/crmaurei/dev/env5.11.1/lib/python3.6/site-packages/PySide2/Qt/lib/libQt5Qml.so.5: undefined reference to `operator delete[](void*, unsigned long)@Qt_5'
      collect2: error: ld returned 1 exit status
      make[2]: *** [CMakeFiles/scriptableapplication.dir/build.make:173: scriptableapplication] Error 1
      make[1]: *** [CMakeFiles/Makefile2:68: CMakeFiles/scriptableapplication.dir/all] Error 2
      make: *** [Makefile:84: all] Error 2
      

      Using a local PySide2 build (from source) doesn't show the error, so it's highly related to the Qt shared libraries.

      Attachments

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

        Activity

          People

            crmaurei Cristian Maureira-Fredes
            crmaurei Cristian Maureira-Fredes
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes