[PyQt] Compilation errors of static QScintilla with Xcode 8.2.1

Patrick Stinson patrickkidd at gmail.com
Tue Jan 31 17:13:03 GMT 2017


After successfully building static latest sip, pyqt5-5.7.1, and python-3.5.2 using build-sysroot.py, I am lastly getting lots of compilation errors for QScintilla. This also happens when following the instructions “Building Static Packages” in the pyqtdeploy user guide. There are many many more similar-looking errors after the synopsis below.

Looks like errors in the source and not the config?


turin:Qt4Qt5 patrick$ make
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -c -pipe -stdlib=libc++ -fvisibility=hidden -fpascal-strings -fmessage-length=0 -Wno-trigraphs -Wreturn-type -Wparentheses -Wswitch -Wno-unused-parameter -Wunused-variable -Wunused-value -Wno-shorten-64-to-32 -Wno-sign-conversion -fexceptions -fasm-blocks -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-implicit-atomic-properties -Wformat -Wno-missing-braces -Wno-unused-function -Wno-unused-label -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-sign-compare -Wpointer-sign -Wno-newline-eof -Wdeprecated-declarations -Winvalid-offsetof -Wno-conversion -fvisibility-inlines-hidden -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.2.sdk -miphoneos-version-min=6.0 -O2 -fPIC -std=gnu++11  -arch armv7  -arch arm64 -fobjc-nonfragile-abi -fobjc-legacy-dispatch -Wno-deprecated-implementations -Wprotocol -Wno-selector -Wno-strict-selector-match -Wno-undeclared-selector -fvisibility=hidden -fvisibility-inlines-hidden -w -DDARWIN_NO_CARBON -DQT_NO_PRINTER -DQT_NO_PRINTDIALOG -DSCINTILLA_QT -DSCI_LEXER -DQT_NO_DEBUG -DQT_PRINTSUPPORT_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I. -I/Users/patrick/Documents/dev/vendor/Qt/5.7/ios/mkspecs/macx-ios-clang/ios -I. -I../include -I../lexlib -I../src -I../../../../Qt/5.7/ios/include -I../../../../Qt/5.7/ios/include/QtPrintSupport -I../../../../Qt/5.7/ios/include/QtWidgets -I../../../../Qt/5.7/ios/include/QtGui -I../../../../Qt/5.7/ios/include/QtCore -I. -I../../../../Qt/5.7/ios/mkspecs/macx-ios-clang -o qsciscintilla.o qsciscintilla.cpp
In file included from qsciscintilla.cpp:23:
./Qsci/qsciscintilla.h:2138:25: error: implicit instantiation of undefined template 'QPointer<QsciLexer>'
    QPointer<QsciLexer> lex;
                        ^
../../../../Qt/5.7/ios/include/QtCore/qmetatype.h:1339:1: note: template is declared here
QT_FOR_EACH_AUTOMATIC_TEMPLATE_SMART_POINTER(QT_FORWARD_DECLARE_SHARED_POINTER_TYPES_ITER)
^
../../../../Qt/5.7/ios/include/QtCore/qmetatype.h:215:7: note: expanded from macro 'QT_FOR_EACH_AUTOMATIC_TEMPLATE_SMART_POINTER'
    F(QPointer)
      ^
qsciscintilla.cpp:71:5: error: no matching member function for call to 'connect'
    connect(this,SIGNAL(SCN_MODIFYATTEMPTRO()),
    ^~~~~~~
../../../../Qt/5.7/ios/include/QtCore/qobject.h:449:41: note: candidate function not viable: no known conversion from 'QsciScintilla' to 'const QObject' for object argument
inline QMetaObject::Connection QObject::connect(const QObject *asender, const char *asignal,
                                        ^
../../../../Qt/5.7/ios/include/QtCore/qobject.h:251:13: note: candidate template ignored: substitution failure [with Func1 = const char *, Func2 = const char *]: implicit instantiation of undefined template 'QtPrivate::QEnableIf<false, QMetaObject::Connection>'
            connect(const typename QtPrivate::FunctionPointer<Func1>::Object *sender, Func1 signal, Func2 slot)
            ^
../../../../Qt/5.7/ios/include/QtCore/qobject.h:291:13: note: candidate template ignored: substitution failure [with Func1 = const char *, Func2 = const char *]: no type named 'Object' in 'QtPrivate::FunctionPointer<const char *>'
            connect(const typename QtPrivate::FunctionPointer<Func1>::Object *sender, Func1 signal, Func2 slot)
            ^                                                         ~~~~~~
../../../../Qt/5.7/ios/include/QtCore/qobject.h:219:43: note: candidate function template not viable: requires at least 4 arguments, but 3 were provided
    static inline QMetaObject::Connection connect(const typename QtPrivate::FunctionPointer<Func1>::Object *sender, Func1 signal,


More information about the PyQt mailing list