Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. compiling Qt 5.6 and PyQt
Forum Updated to NodeBB v4.3 + New Features

compiling Qt 5.6 and PyQt

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
1 Posts 1 Posters 645 Views
  • 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.
  • D Offline
    D Offline
    dummys
    wrote on last edited by dummys
    #1

    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/QtGui.so: 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:

    python2 configure.py
    --sip /build/sip-4.18/sipgen
    --sip-incdir /build/sip-4.18/siplib
    --confirm-license
    --enable QtCore
    --enable QtGui
    --enable QtWidgets
    --no-designer-plugin
    --no-qml-plugin
    --no-tools
    --verbose
    --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:
    https://doc.qt.io/qt-4.8/qtglobal.html#qt_set_sequence_auto_mnemonic 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);

    thanks.

    1 Reply Last reply
    0

    • Login

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