[PyQt] Minimal qt config options for PyQt5.QtCore only?

Patrick Stinson patrickkidd at gmail.com
Fri Mar 1 06:05:19 GMT 2019


I am trying to build a backend app which only uses QtCore (on vanilla ubuntu). Has anyone got any idea what the minimal qt configure options are to build QtCore only which will also compile and link with PyQt5.QtCore? The dependency matrix isn’t jumping out at me.

I’ve tried variations of the following and am still running into all sorts of missing class declarations and qt features in the PyQt5 phase:

OPENSSL_LIBS="-L/usr/lib/x86_64-linux-gnu -lssl -lcrypto" ./configure -opensource -confirm-license -release -nomake examples -nomake tests -prefix $SYSROOT -no-gui -no-widgets -skip qtactiveqt -skip qtremoteobjects -no-opengl -skip qt3d -skip qtandroidextras -skip qtcanvas3d -skip qtcharts -skip qtconnectivity -skip qtdatavis3d -skip qtdeclarative -skip qtdoc -skip qtgamepad -skip qtgraphicaleffects -skip qtimageformats -skip qtlocation -skip qtmacextras -skip qtmultimedia -skip qtnetworkauth -skip qtpurchasing -skip qtquickcontrols -skip qtquickcontrols2 -skip qtscript -skip qtscxml -skip qtsensors -skip qtserialbus -skip qtserialport -skip qtspeech -skip qtsvg -skip qttools -skip qttranslations -skip qtvirtualkeyboard -skip qtwayland -skip qtwebchannel -skip qtwebengine -skip qtwebsockets -skip qtwebview -skip qtwinextras -skip qtx11extras -skip qtxmlpatterns -no-feature-texthtmlparser -no-feature-textodfwriter -no-feature-concurrent -no-feature-effects -no-feature-im -no-feature-process -no-feature-dom -no-feature-filesystemmodel -no-feature-graphicsview -no-feature-graphicseffect -no-feature-sizegrip -no-feature-calendarwidget -no-feature-printpreviewwidget -no-feature-keysequenceedit -no-feature-colordialog -no-feature-filedialog -no-feature-fontdialog -no-feature-printpreviewdialog -no-feature-progressdialog -no-feature-inputdialog -no-feature-errormessage -no-feature-wizard -no-feature-datawidgetmapper -no-feature-imageformat_bmp -no-feature-imageformat_ppm -no-feature-imageformat_xbm -no-feature-imageformat_png -no-feature-imageformat_jpeg -no-feature-image_heuristic_mask -no-feature-image_text -no-feature-colornames -no-feature-cups -no-feature-paint_debug -no-feature-freetype -no-feature-codecs -no-feature-big_codecs -no-feature-iconv -no-feature-ftp -no-feature-socks5 -no-feature-networkdiskcache -no-feature-bearermanagement -no-feature-completer -no-feature-fscompleter -no-feature-desktopservices -no-feature-systemtrayicon -no-feature-undocommand -no-feature-undostack -no-feature-undogroup -no-feature-undoview -no-feature-dbus -openssl-linked 


OPENSSL_LIBS="-L/usr/lib/x86_64-linux-gnu -lssl -lcrypto" ./configure -opensource -confirm-license -release -openssl-linked -nomake examples -nomake tests -prefix $SYSROOT -no-gui -no-widgets -skip qtactiveqt -skip qtremoteobjects -no-opengl -skip qt3d -skip qtandroidextras -skip qtcanvas3d -skip qtcharts -skip qtconnectivity -skip qtdatavis3d -skip qtdeclarative -skip qtdoc -skip qtgamepad -skip qtgraphicaleffects -skip qtimageformats -skip qtlocation -skip qtmacextras -skip qtmultimedia -skip qtnetworkauth -skip qtpurchasing -skip qtquickcontrols -skip qtquickcontrols2 -skip qtscript -skip qtscxml -skip qtsensors -skip qtserialbus -skip qtserialport -skip qtspeech -skip qtsvg -skip qttools -skip qttranslations -skip qtvirtualkeyboard -skip qtwayland -skip qtwebchannel -skip qtwebengine -skip qtwebsockets -skip qtwebview -skip qtwinextras -skip qtx11extras -skip qtxmlpatterns 

Cheers!
-Patrick


More information about the PyQt mailing list