Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. PySide failed to build from source with custom Qt build
Qt 6.11 is out! See what's new in the release blog

PySide failed to build from source with custom Qt build

Scheduled Pinned Locked Moved Unsolved Qt for Python
2 Posts 2 Posters 730 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    kraken1564
    wrote on last edited by
    #1

    I'd like to deploy my app with all the necessary dependencies so I'd like to make the size of the app as small as possible. To do that, I built Qt from source with the features that I do not need disabled, e.g.:

    configure --no-feature-network ...
    

    After that I try to build PySide2 from source using this custom Qt build and I get this error:

    make[2]: *** No rule to make target «PySide2/QtCore/PySide2/QtCore/qabstractanimation_wrapper.cpp», for «PySide2/QtCore/CMakeFiles/QtCore.dir/PySide2/QtCore/qabstractanimation_wrapper.cpp.o».  Stop.
    CMakeFiles/Makefile2:200: recipe for target 'PySide2/QtCore/CMakeFiles/QtCore.dir/all' failed
    make[1]: *** [PySide2/QtCore/CMakeFiles/QtCore.dir/all] Error 2
    Makefile:129: recipe for target 'all' failed
    make: *** [all] Error 2
    error: Error compiling pyside2
    

    I did disable the 'animation' feature (--no-feature-animation). If I turn it back on, I get another similar errors for the disabled features.
    So the question is whether the PySide build tools can automatically find out what features have been disabled or not? If not, can I do it manually? I can't find any options or arguments that I can use to disable features in PySide explicitly.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      That's something you should rather bring to the PySide mailing list. You'll find there PySide2 developers/maintainers. This forum is more user oriented.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      2

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved