Unsolved 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/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_qtAnd 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/qmakeTo 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.6void 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.