Congratulations to our 2022 Qt Champions!

compiling Qt 5.6 and PyQt

  • Hi,

    After successfully compiling Qt 5.6 for 32bit and compiling PyQt 5.6 and using sip 4.18 and get the following error when importing pyqt widgets:

    from PyQt5 import QtGui, QtWidgets

    ImportError: /opt/ida-6.95/python/PyQt5/ undefined symbol: _Z29qt_set_sequence_auto_mnemonicb

    How can I solve this error ?

    I'm on arch linux 32bit.
    Here is my configure for qt 5.6:
    ./configure "-nomake" "tests" "-qtnamespace" "QT" "-confirm-license" "-accessibility" "-opensource" "-force-debug-info" "-developer-build" "-fontconfig" "-qt-freetype" "-qt-libpng" "-glib" "-qt-xcb" "-dbus" "-qt-sql-sqlite" "-gtkstyle" "-prefix" ../builded_qt

    And here is my PyQt configure:

    --sip /build/sip-4.18/sipgen
    --sip-incdir /build/sip-4.18/siplib
    --enable QtCore
    --enable QtGui
    --enable QtWidgets
    --destdir /build/builded_qt/pyqt
    --sipdir /build/builded_qt/pyqt/sip-files
    --qmake /build/qt-everywhere-opensource-src-5.6.0/qtbase/bin/qmake

    To be honest I'm wondering why this method get in the binary because it seems that's it's only for Mac: it's for Qt 4.8 I didn't found it for 5.6

    void qt_set_sequence_auto_mnemonic(bool on)
    Enables automatic mnemonics on Mac if on is true; otherwise this feature is disabled.
    Note that this function is only available on Mac where mnemonics are disabled by default.
    To access to this function, use an extern declaration: extern void qt_set_sequence_auto_mnemonic(bool b);


Log in to reply