[PyQt] Static PyQt5.6 - QtQuick not building
Phil Thompson
phil at riverbankcomputing.com
Thu May 19 17:09:04 BST 2016
On 18 May 2016, at 8:41 pm, Robert Kent <rob at gulon.co.uk> wrote:
>
> Hi Phil,
>
> I’m trying to build a static version of PyQt5.6 on OSX 10.11.4 (Xcode 7.3.1, Python 3.5.1) for use with pyqtdeploy 1.2.1, but when I run configure, its failing the config test to built the QtQuick* modules. I have static versions of Qt5.6.0 and SIP 4.18 installed in my $SYSROOT. The static versions of libQt5Quick, libQt5QuickTest, libQt5QuickWidgets etc. are all there in the lib directory. The build lines I am using are as follows:
>
> pyqtdeploycli --package pyqt5 configure
> python configure.py --static --sysroot=$SYSROOT --no-tools --no-qsci-api --no-designer-plugin --no-qml-plugin —qmake=$SYSROOT/qt-5.6.0/bin/qmake --verbose
Why are you generating a configuration file and then not using it?
> The output snippet (with --verbose) for QtQuickWidgets for example is as follows:
It suggests a problem with your Qt build.
You might want to look at the current version of build-sysroot.py...
https://www.riverbankcomputing.com/hg/pyqtdeploy/file/1ad534a78789/Developers/build-sysroot.py
Although this is still experimental it is now documented and doesn't have any of my own paths hardcoded.
Phil
> Checking to see if the QtQuickWidgets module should be built...
> /Users/rob/Documents/pydsysroot-osx2/qt-5.6.0/bin/qmake -o cfgtest_QtQuickWidgets.mk cfgtest_QtQuickWidgets.pro
> make -f cfgtest_QtQuickWidgets.mk
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -c -pipe -stdlib=libc++ -O2 -std=gnu++11 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -mmacosx-version-min=10.7 -Wall -W -fPIC -DQT_NO_DEBUG -DQT_QUICKWIDGETS_LIB -DQT_QUICK_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -I../../Documents/pydsysroot-osx2/qt-5.6.0/include -I../../Documents/pydsysroot-osx2/qt-5.6.0/include/QtQuickWidgets -I../../Documents/pydsysroot-osx2/qt-5.6.0/include/QtQuick -I../../Documents/pydsysroot-osx2/qt-5.6.0/include/QtWidgets -I../../Documents/pydsysroot-osx2/qt-5.6.0/include/QtGui -I../../Documents/pydsysroot-osx2/qt-5.6.0/include/QtQml -I../../Documents/pydsysroot-osx2/qt-5.6.0/include/QtNetwork -I../../Documents/pydsysroot-osx2/qt-5.6.0/include/QtCore -I. -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/AGL.framework/Headers -I../../Documents/pydsysroot-osx2/qt-5.6.0/mkspecs/macx-clang -o cfgtest_QtQuickWidgets.o cfgtest_QtQuickWidgets.cpp
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -headerpad_max_install_names -stdlib=libc++ -Wl,-syslibroot,/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -mmacosx-version-min=10.7 -o cfgtest_QtQuickWidgets.app/Contents/MacOS/cfgtest_QtQuickWidgets cfgtest_QtQuickWidgets.o cfgtest_qtquickwidgets_qml_plugin_import.o cfgtest_qtquickwidgets_plugin_import.o -L/Users/rob/Documents/pydsysroot-osx2/qt-5.6.0/lib -lQt5QuickWidgets -framework DiskArbitration -framework IOKit -framework Foundation -framework CoreServices -framework AppKit -framework ApplicationServices -framework CoreFoundation -framework Cocoa -framework OpenGL -framework AGL -framework Security -framework SystemConfiguration -framework Carbon -L/Users/rob/Documents/pydsysroot-osx2/qt-5.6.0/qml/QtQuick.2 -lqtquick2plugin -L/Users/rob/Documents/pydsysroot-osx2/qt-5.6.0/qml/Qt/labs/calendar -lqtlabscalendarplugin -L/Users/rob/Documents/pydsysroot-osx2/qt-5.6.0/qml/QtQuick/Window.2 -lwindowplugin -L/Users/rob/Documents/pydsysroot-osx2/qt-5.6.0/qml/Qt/labs/templates -lqtlabstemplatesplugin -L/Users/rob/Documents/pydsysroot-osx2/qt-5.6.0/qml/Qt/labs/controls -lqtlabscontrolsplugin -L/Users/rob/Documents/pydsysroot-osx2/qt-5.6.0/qml/Qt/labs/controls/material -lqtlabsmaterialstyleplugin -L/Users/rob/Documents/pydsysroot-osx2/qt-5.6.0/qml/Qt/labs/controls/universal -lqtlabsuniversalstyleplugin -lQt5LabsControls -lQt5LabsTemplates -L/Users/rob/Documents/pydsysroot-osx2/qt-5.6.0/qml/QtGraphicalEffects/private -lqtgraphicaleffectsprivate -L/Users/rob/Documents/pydsysroot-osx2/qt-5.6.0/qml/QtMultimedia -ldeclarative_multimedia -lQt5MultimediaQuick_p -lQt5Multimedia -L/Users/rob/Documents/pydsysroot-osx2/qt-5.6.0/qml/QtQuick/Controls -lqtquickcontrolsplugin -L/Users/rob/Documents/pydsysroot-osx2/qt-5.6.0/qml/QtQuick/Layouts -lqquicklayoutsplugin -L/Users/rob/Documents/pydsysroot-osx2/qt-5.6.0/qml/QtQml/Models.2 -lmodelsplugin -L/Users/rob/Documents/pydsysroot-osx2/qt-5.6.0/qml/QtQuick/Extras -lqtquickextrasplugin -L/Users/rob/Documents/pydsysroot-osx2/qt-5.6.0/qml/QtTest -lqmltestplugin -lQt5QuickTest -lQt5Test -L/Users/rob/Documents/pydsysroot-osx2/qt-5.6.0/qml/QtQuick/Particles.2 -lparticlesplugin -lQt5QuickParticles -L/Users/rob/Documents/pydsysroot-osx2/qt-5.6.0/plugins/platforms -lqcocoa -lcups -lQt5PlatformSupport -lQt5DBus -lqtfreetype -lQt5PrintSupport -lQt5Widgets -L/Users/rob/Documents/pydsysroot-osx2/qt-5.6.0/plugins/imageformats -lqdds -lqicns -lqico -lqtga -lqtiff -lqwbmp -lqwebp -L/Users/rob/Documents/pydsysroot-osx2/qt-5.6.0/plugins/qmltooling -lqmldbg_debugger -lqmldbg_inspector -lQt5Quick -lqmldbg_local -lqmldbg_native -lQt5Gui -lqtharfbuzzng -lqmldbg_profiler -lqmldbg_server -lqmldbg_tcp -lQt5Qml -L/Users/rob/Documents/pydsysroot-osx2/qt-5.6.0/plugins/bearer -lqcorewlanbearer -framework CoreWLAN -lqgenericbearer -lQt5Network -lQt5Core -lz -lqtpcre -lm
> Undefined symbols for architecture x86_64:
> "_OBJC_CLASS_$_XCTestCase", referenced from:
> _OBJC_CLASS_$_QtTestLibWrapper in libQt5Test.a(qxctestlogger.o)
> _OBJC_CLASS_$_QtTestLibTest in libQt5Test.a(qxctestlogger.o)
> "_OBJC_CLASS_$_XCTestDriver", referenced from:
> objc-class-ref in libQt5Test.a(qxctestlogger.o)
> "_OBJC_CLASS_$_XCTestProbe", referenced from:
> objc-class-ref in libQt5Test.a(qxctestlogger.o)
> "_OBJC_CLASS_$_XCTestSuite", referenced from:
> objc-class-ref in libQt5Test.a(qxctestlogger.o)
> _OBJC_CLASS_$_QtTestLibTests in libQt5Test.a(qxctestlogger.o)
> "_OBJC_METACLASS_$_XCTestCase", referenced from:
> _OBJC_METACLASS_$_QtTestLibWrapper in libQt5Test.a(qxctestlogger.o)
> _OBJC_METACLASS_$_QtTestLibTest in libQt5Test.a(qxctestlogger.o)
> "_OBJC_METACLASS_$_XCTestSuite", referenced from:
> _OBJC_METACLASS_$_QtTestLibTests in libQt5Test.a(qxctestlogger.o)
> ld: symbol(s) not found for architecture x86_64
> clang: error: linker command failed with exit code 1 (use -v to see invocation)
> make: *** [cfgtest_QtQuickWidgets.app/Contents/MacOS/cfgtest_QtQuickWidgets] Error 1
>
> Any thoughts on what I’ve screwed up?
>
> Cheers, Rob
> _______________________________________________
> PyQt mailing list PyQt at riverbankcomputing.com
> https://www.riverbankcomputing.com/mailman/listinfo/pyqt
More information about the PyQt
mailing list