The littlest Qt Lite Build
-
Hi, All
I'm trying to make the littlest qt package on the Windows for fun. I skipped all modules expect qtbase and disabled all features.
Features I placed in the config.opt. And skip arguments I added in the batch script. As I saw each Qt version have own feature list.
Configure script is giving me strange errors. Who did this earlier? Did I miss something?p.s: I downloaded sources from git and now I'm on 5.10 branch. I used dev cmd for vs2017 to start script.
-
Hi and welcome to the forums.
Its quite hard to guess what went wrong without the actual Configure errors.
Did you follow a guide ?
Also did you install all requirements ?
https://doc-snapshots.qt.io/qt5-5.9/windows-requirements.html -
I struggle with the same, i try to build a top level build with almost every feature disabled but i think i am failing because of dependencies.
My actual config.opt looks like the following for my actual try to get it compiled. As you can see it's almost every feature, but for the tool i want to statically compile i don't need all features it's only a dialog which sends data to a webserver via a HTTP post request.
I think i have all requirements up and running, a normal, full, static build is possible to compile.
-debug-and-release -commercial -static -no-compile-examples -nomake tools -nomake tests -no-icu -no-pch -prefix C:/Qt/5.9.2/mingw53_32-lite -opengl desktop -no-feature-animation -no-feature-appstore-compliant -no-feature-bearermanagement -no-feature-calendarwidget -no-feature-clipboard -no-feature-colordialog -no-feature-colornames -no-feature-columnview -no-feature-commandlineparser -no-feature-commandlinkbutton -no-feature-concurrent -no-feature-contextmenu -no-feature-cssparser -no-feature-cups -no-feature-cursor -no-feature-d3d12 -no-feature-datawidgetmapper -no-feature-desktopservices -no-feature-dial -no-feature-dirmodel -no-feature-dockwidget -no-feature-dom -no-feature-draganddrop -no-feature-effects -no-feature-embedded -no-feature-errormessage -no-feature-fontcombobox -no-feature-fontdialog -no-feature-fscompleter -no-feature-ftp -no-feature-geoservices_esri -no-feature-geoservices_here -no-feature-geoservices_itemsoverlay -no-feature-geoservices_mapbox -no-feature-geoservices_mapboxgl -no-feature-geoservices_osm -no-feature-gestures -no-feature-graphicseffect -no-feature-graphicsview -no-feature-highdpiscaling -no-feature-iconv -no-feature-identityproxymodel -no-feature-im -no-feature-image_heuristic_mask -no-feature-image_text -no-feature-imageformat_bmp -no-feature-imageformat_jpeg -no-feature-imageformat_png -no-feature-imageformat_ppm -no-feature-imageformat_xbm -no-feature-imageformat_xpm -no-feature-imageformatplugin -no-feature-keysequenceedit -no-feature-lcdnumber -no-feature-library -no-feature-localserver -no-feature-mdiarea -no-feature-mimetype -no-feature-movie -no-feature-networkproxy -no-feature-paint_debug -no-feature-pdf -no-feature-pepper-plugins -no-feature-picture -no-feature-printdialog -no-feature-printer -no-feature-printing-and-pdf -no-feature-printpreviewdialog -no-feature-printpreviewwidget -no-feature-process -no-feature-processenvironment -no-feature-progressbar -no-feature-progressdialog -no-feature-proprietary-codecs -no-feature-proxymodel -no-feature-qml-interpreter -no-feature-qml-network -no-feature-qml-profiler -no-feature-quick-animatedimage -no-feature-quick-canvas -no-feature-quick-designer -no-feature-quick-flipable -no-feature-quick-gridview -no-feature-quick-listview -no-feature-quick-particles -no-feature-quick-path -no-feature-quick-pathview -no-feature-quick-positioners -no-feature-quick-shadereffect -no-feature-quick-sprite -no-feature-quickcontrols2-material -no-feature-quickcontrols2-universal -no-feature-quicktemplates2-hover -no-feature-quicktemplates2-multitouch -no-feature-regularexpression -no-feature-resizehandler -no-feature-rubberband -no-feature-sessionmanager -no-feature-settings -no-feature-sha3-fast -no-feature-sharedmemory -no-feature-shortcut -no-feature-sizegrip -no-feature-slider -no-feature-socks5 -no-feature-sortfilterproxymodel -no-feature-spellchecker -no-feature-splitter -no-feature-stackedwidget -no-feature-standarditemmodel -no-feature-statemachine -no-feature-statusbar -no-feature-statustip -no-feature-stringlistmodel -no-feature-style-stylesheet -no-feature-syntaxhighlighter -no-feature-systemsemaphore -no-feature-systemtrayicon -no-feature-textbrowser -no-feature-texthtmlparser -no-feature-textodfwriter -no-feature-timezone -no-feature-toolbar -no-feature-toolbox -no-feature-toolbutton -no-feature-tooltip -no-feature-topleveldomain -no-feature-translation -no-feature-treeview -no-feature-treewidget -no-feature-udpsocket -no-feature-undocommand -no-feature-undogroup -no-feature-undostack -no-feature-undoview -no-feature-validator -no-feature-webrtc -no-feature-whatsthis -no-feature-wheelevent -no-feature-widgettextcontrol -no-feature-wizard
-
I struggle with the same, i try to build a top level build with almost every feature disabled but i think i am failing because of dependencies.
My actual config.opt looks like the following for my actual try to get it compiled. As you can see it's almost every feature, but for the tool i want to statically compile i don't need all features it's only a dialog which sends data to a webserver via a HTTP post request.
I think i have all requirements up and running, a normal, full, static build is possible to compile.
-debug-and-release -commercial -static -no-compile-examples -nomake tools -nomake tests -no-icu -no-pch -prefix C:/Qt/5.9.2/mingw53_32-lite -opengl desktop -no-feature-animation -no-feature-appstore-compliant -no-feature-bearermanagement -no-feature-calendarwidget -no-feature-clipboard -no-feature-colordialog -no-feature-colornames -no-feature-columnview -no-feature-commandlineparser -no-feature-commandlinkbutton -no-feature-concurrent -no-feature-contextmenu -no-feature-cssparser -no-feature-cups -no-feature-cursor -no-feature-d3d12 -no-feature-datawidgetmapper -no-feature-desktopservices -no-feature-dial -no-feature-dirmodel -no-feature-dockwidget -no-feature-dom -no-feature-draganddrop -no-feature-effects -no-feature-embedded -no-feature-errormessage -no-feature-fontcombobox -no-feature-fontdialog -no-feature-fscompleter -no-feature-ftp -no-feature-geoservices_esri -no-feature-geoservices_here -no-feature-geoservices_itemsoverlay -no-feature-geoservices_mapbox -no-feature-geoservices_mapboxgl -no-feature-geoservices_osm -no-feature-gestures -no-feature-graphicseffect -no-feature-graphicsview -no-feature-highdpiscaling -no-feature-iconv -no-feature-identityproxymodel -no-feature-im -no-feature-image_heuristic_mask -no-feature-image_text -no-feature-imageformat_bmp -no-feature-imageformat_jpeg -no-feature-imageformat_png -no-feature-imageformat_ppm -no-feature-imageformat_xbm -no-feature-imageformat_xpm -no-feature-imageformatplugin -no-feature-keysequenceedit -no-feature-lcdnumber -no-feature-library -no-feature-localserver -no-feature-mdiarea -no-feature-mimetype -no-feature-movie -no-feature-networkproxy -no-feature-paint_debug -no-feature-pdf -no-feature-pepper-plugins -no-feature-picture -no-feature-printdialog -no-feature-printer -no-feature-printing-and-pdf -no-feature-printpreviewdialog -no-feature-printpreviewwidget -no-feature-process -no-feature-processenvironment -no-feature-progressbar -no-feature-progressdialog -no-feature-proprietary-codecs -no-feature-proxymodel -no-feature-qml-interpreter -no-feature-qml-network -no-feature-qml-profiler -no-feature-quick-animatedimage -no-feature-quick-canvas -no-feature-quick-designer -no-feature-quick-flipable -no-feature-quick-gridview -no-feature-quick-listview -no-feature-quick-particles -no-feature-quick-path -no-feature-quick-pathview -no-feature-quick-positioners -no-feature-quick-shadereffect -no-feature-quick-sprite -no-feature-quickcontrols2-material -no-feature-quickcontrols2-universal -no-feature-quicktemplates2-hover -no-feature-quicktemplates2-multitouch -no-feature-regularexpression -no-feature-resizehandler -no-feature-rubberband -no-feature-sessionmanager -no-feature-settings -no-feature-sha3-fast -no-feature-sharedmemory -no-feature-shortcut -no-feature-sizegrip -no-feature-slider -no-feature-socks5 -no-feature-sortfilterproxymodel -no-feature-spellchecker -no-feature-splitter -no-feature-stackedwidget -no-feature-standarditemmodel -no-feature-statemachine -no-feature-statusbar -no-feature-statustip -no-feature-stringlistmodel -no-feature-style-stylesheet -no-feature-syntaxhighlighter -no-feature-systemsemaphore -no-feature-systemtrayicon -no-feature-textbrowser -no-feature-texthtmlparser -no-feature-textodfwriter -no-feature-timezone -no-feature-toolbar -no-feature-toolbox -no-feature-toolbutton -no-feature-tooltip -no-feature-topleveldomain -no-feature-translation -no-feature-treeview -no-feature-treewidget -no-feature-udpsocket -no-feature-undocommand -no-feature-undogroup -no-feature-undostack -no-feature-undoview -no-feature-validator -no-feature-webrtc -no-feature-whatsthis -no-feature-wheelevent -no-feature-widgettextcontrol -no-feature-wizard
I don't think many people here have used QtLite before, and because of the number of options the number of possible errors is gigantic.
But without the exact error message you are getting, nobody will be able to help you.
Regards
-
@aha_1980
with the configuration above i get[...] mingw32-make[3]: Entering directory 'C:/Qt/5.9.2/Src/qtbase/src/3rdparty/harfbuzz-ng' C:\Qt\5.9.2\Src\qtbase\bin\qmake.exe -o Makefile harfbuzz-ng.pro access\qnetworkaccessfilebackend.cpp: In member function 'bool QNetworkAccessFileBackend::loadFileInfo()': access\qnetworkaccessfilebackend.cpp:243:68: error: invalid use of incomplete type 'class QDateTime' setHeader(QNetworkRequest::LastModifiedHeader, fi.lastModified()); ^ In file included from ..\..\include/QtCore/qmetatype.h:1:0, from C:/Qt/5.9.2/Src/qtbase/src/corelib/kernel/qobject.h:54, from ..\..\include/QtCore/qobject.h:1, from C:/Qt/5.9.2/Src/qtbase/src/corelib/kernel/qcoreapplication.h:46, from ..\..\include\QtCore/qcoreapplication.h:1, from ..\corelib\global\qt_pch.h:62: C:/Qt/5.9.2/Src/qtbase/src/corelib/kernel/qmetatype.h:100:22: note: forward declaration of 'class QDateTime' F(QDateTime, 16, QDateTime) \ ^ C:/Qt/5.9.2/Src/qtbase/src/corelib/kernel/qmetatype.h:1879:11: note: in definition of macro 'QT_FORWARD_DECLARE_STATIC_TYPES_ITER' class Name; ^ C:/Qt/5.9.2/Src/qtbase/src/corelib/kernel/qmetatype.h:1881:1: note: in expansion of macro 'QT_FOR_EACH_STATIC_CORE_CLASS' QT_FOR_EACH_STATIC_CORE_CLASS(QT_FORWARD_DECLARE_STATIC_TYPES_ITER) ^ Makefile.Release:10302: recipe for target '.obj/release/qnetworkaccessfilebackend.o' failed mingw32-make[4]: *** [.obj/release/qnetworkaccessfilebackend.o] Error 1 mingw32-make[4]: Leaving directory 'C:/Qt/5.9.2/Src/qtbase/src/network' Makefile:54: recipe for target 'release-all' failed mingw32-make[3]: *** [release-all] Error 2 mingw32-make[3]: Leaving directory 'C:/Qt/5.9.2/Src/qtbase/src/network' Makefile:243: recipe for target 'sub-network-make_first' failed mingw32-make[2]: *** [sub-network-make_first] Error 2 mingw32-make[2]: *** Waiting for unfinished jobs.... cd tools\uic\ && ( if not exist Makefile C:\Qt\5.9.2\Src\qtbase\bin\qmake.exe -o Makefile C:\Qt\5.9.2\Src\qtbase\src\tools\uic\uic.pro ) && mingw32-make -f Makefile mingw32-make -f Makefile.Debug all [...]