I'm building FreeCAD using the Flatpak manifest from Flathub, but modified for Python 3. Pyside2 5.12.1 built successfully using the KDE 5.12 Platform/SDK environment, but the resulting FreeCAD failed with this error:
https://bugreports.qt.io/browse/PYSIDE-1140 (Pyside2 5.12.1 still builds with the 5.12 environment, but now there is a FreeCAD build error.) I upgraded to the KDE 5.14 Platform/SDK and modified the source line in the manifest to point to Pyside2 5.14.1. It looks like this: - name: pyside2 buildsystem: simple build-commands: - mkdir -p /app/qt5include && cp -R /usr/include/Qt* /app/qt5include # https://bugreports.qt.io/browse/PYSIDE-787 - cd sources/shiboken2 && mkdir _build && cd _build && cmake -GNinja -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX=/app -DUSE_PYTHON_VERSION=3 -DBUILD_TESTS=OFF .. && ninja install - cd sources/pyside2 && mkdir _build && cd _build && cmake -GNinja -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX=/app -DUSE_PYTHON_VERSION=3 -DBUILD_TESTS=OFF .. && ninja install - cd sources/pyside2-tools && mkdir _build && cd _build && cmake -GNinja -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX=/app -DBUILD_TESTS=OFF .. && ninja install cleanup: - /qt5include - /bin sources: - type: archive url: https://download.qt.io/official_releases/QtForPython/pyside2/PySide2-5.14.1-src/pyside-setup-opensource-src-5.14.1.tar.xz sha256: 41ce931695567639c92acb68a9d66ed5609f067011af9a94b53fc0d697ad1d1c - type: shell commands: - sed -i 's|\(--include-paths=\)|\1/app/qt5include:|' sources/pyside2/cmake/Macros/PySideModules.cmake Shiboken builds and installs, but the Pyside2 configuration fails like this: Running: cd sources/pyside2 && mkdir _build && cd _build && cmake -GNinja -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX=/app -DUSE_PYTHON_VERSION=3 -DBUILD_TESTS=OFF .. && ninja install -- The C compiler identification is GNU 9.2.0 -- The CXX compiler identification is GNU 9.2.0 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done CMake Error at CMakeLists.txt:47 (message): Could not identify PySide2 version. Error: -- Configuring incomplete, errors occurred! See also "/run/build/pyside2/sources/pyside2/_build/CMakeFiles/CMakeOutput.log". Error: module pyside2: Child process exited with code 1 pyside_version.py exists and reflects the correct version. Does this error suggest a different problem? Note that if I change the Pyside2 source line back to 5.12.1 but still using the KDE 5.14 environment, Pyside2 builds, and FreeCAD builds and runs without the "'Shiboken.ObjectType' object is not iterable" error. Thanks, Mike
_______________________________________________ PySide mailing list PySide@qt-project.org https://lists.qt-project.org/listinfo/pyside