Dependencies?
-
Well..I was just trying to build a minimal version of static Qt, which I am going to use to get an application released. And when I tried to remove "unused" features, I got something interesting: the configure.bat did not throw an error or a warning, but it failed during mingw32-make, indicating that variable 'QPainter p' has initializer but incomplete type.
So, my problem is, which feature or part on earth is the 'QPainter' class in.
And below is my configuration. I am building Qt5.11.0 with Mingw32 from the mingw5.3 32 bit. And below are my configures. Thanks for your help.configure.bat -static -static-runtime -release -platform win32-g++ -prefix "C:\Qt\Qt5.11.0_MinGW_static" -no-sqlite -no-zlib -qt-pcre -qt-libpng -qt-libjpeg -no-freetype -no-opengl -opensource -confirm-license -make libs -no-openssl -nomake tools -nomake examples -nomake tests -skip qt3d -skip qtcanvas3d -skip qtcanvas3d -skip qtdatavis3d -skip qtlocation -skip qtwayland -skip qtwebchannel -skip qtwebengine -skip qtwebsockets -skip qtwebview -skip qtwinextras -skip qtnetworkauth -skip qtmacextras -skip qtandroidextras -skip qtserialport -skip qtserialbus -skip qtactiveqt -skip qtxmlpatterns -skip qtdeclarative -skip qtremoteobjects -skip qtscxml -skip qtpurchasing -skip qtgamepad -skip qtconnectivity -skip qtsensors -skip qtquickcontrols -skip qtspeech -skip qtvirtualkeyboard -skip qtcharts -skip qttools -skip qtscript -skip qttranslations -no-feature-wizard -no-feature-wheelevent -no-feature-whatsthis -no-feature-undostack -no-feature-undoview -no-feature-undogroup -no-feature-undocommand -no-feature-tuiotouch -no-feature-treeview -no-feature-treewidget -no-feature-translation -no-feature-topleveldomain -no-feature-udpsocket -no-feature-tooltip -no-feature-toolbox -no-feature-toolbar -no-feature-timezone -no-feature-textodfwriter -no-feature-texthtmlparser -no-feature-textdate -no-feature-textbrowser -no-feature-temporaryfile -no-feature-tabwidget -no-feature-tablewidget -no-feature-tableview -no-feature-tabletevent -no-feature-tabbar -no-feature-systemsemaphore -no-feature-syntaxhighlighter -no-feature-statustip -no-feature-statusbar -no-feature-statemachine -no-feature-standarditemmodel -no-feature-splitter -no-feature-spinbox -no-feature-socks5 -no-feature-sortfilterproxymodel -no-feature-sharedmemory -no-feature-sessionmanager -no-feature-scroller -no-feature-scrollbar -no-feature-scrollarea -no-feature-rubberband -no-feature-radiobutton -no-feature-appstore-compliant -no-feature-bearermanagement -no-feature-calendarwidget -no-feature-completer -no-feature-concurrent -no-feature-contextmenu -no-feature-desktopservices -no-feature-datetimeparser -no-feature-datetimeedit -no-feature-datestring -no-feature-cups -no-feature-dnslookup -no-feature-ftp -no-feature-future -no-feature-highdpiscaling -no-feature-http -no-feature-iconv -no-feature-identityproxymodel -no-feature-gestures -no-feature-keysequenceedit -no-feature-localserver -no-feature-listview -no-feature-listwidget -no-feature-menubar -no-feature-messagebox -no-feature-mimetype -no-feature-movie -no-feature-networkdiskcache -no-feature-networkinterface -no-feature-networkproxy -no-feature-pdf -no-feature-processenvironment -no-feature-harfbuzz -no-dbus -no-sql-sqlite -no-sql-db2 -no-sql-ibase -no-sql-mysql -no-sql-oci -no-sql-odbc -no-sql-psql -no-sql-sqlite2 -no-sql-tds -no-system-proxies -no-feature-directwrite -no-fontconfig -no-incredibuild-xge -no-plugin-manifests -no-sse2 -no-sse3 -no-ssse3 -no-sse4.2 -no-pch -skip webengine -no-feature-testlib -no-feature-network -no-feature-sql -system-doubleconversion -feature-doubleconversion -skip tools -no-vulkan -feature-mainwindow
[koahnig, added code wrappers]
-
@koahnig said in Dependencies?:
ake: QT += gui".
I suppose that you are right. However, in fact I did not find any switch in my command line disabling gui...well,though, I will have another try, maybe trying to enable the make of gui. And thanks.
-
@koahnig Well...... adding -feature-gui did not help..
this time the command line is :configure.bat -static -static-runtime -release -platform win32-g++ -prefix "C:\Qt\Qt5.11.0_MinGW_static" -no-sqlite -no-zlib -qt-pcre -qt-libpng -qt-libjpeg -no-freetype -no-opengl -opensource -confirm-license -make libs -no-openssl -nomake tools -nomake examples -nomake tests -skip qt3d -skip qtcanvas3d -skip qtcanvas3d -skip qtdatavis3d -skip qtlocation -skip qtwayland -skip qtwebchannel -skip qtwebengine -skip qtwebsockets -skip qtwebview -skip qtwinextras -skip qtnetworkauth -skip qtmacextras -skip qtandroidextras -skip qtserialport -skip qtserialbus -skip qtactiveqt -skip qtxmlpatterns -skip qtdeclarative -skip qtremoteobjects -skip qtscxml -skip qtpurchasing -skip qtgamepad -skip qtconnectivity -skip qtsensors -skip qtquickcontrols -skip qtspeech -skip qtvirtualkeyboard -skip qtcharts -skip qttools -skip qtscript -skip qttranslations -no-feature-wizard -no-feature-wheelevent -no-feature-whatsthis -no-feature-undostack -no-feature-undoview -no-feature-undogroup -no-feature-undocommand -no-feature-tuiotouch -no-feature-treeview -no-feature-treewidget -no-feature-translation -no-feature-topleveldomain -no-feature-udpsocket -no-feature-tooltip -no-feature-toolbox -no-feature-toolbar -no-feature-timezone -no-feature-textodfwriter -no-feature-texthtmlparser -no-feature-textdate -no-feature-textbrowser -no-feature-temporaryfile -no-feature-tabwidget -no-feature-tablewidget -no-feature-tableview -no-feature-tabletevent -no-feature-tabbar -no-feature-systemsemaphore -no-feature-syntaxhighlighter -no-feature-statustip -no-feature-statusbar -no-feature-statemachine -no-feature-standarditemmodel -no-feature-splitter -no-feature-spinbox -no-feature-socks5 -no-feature-sortfilterproxymodel -no-feature-sharedmemory -no-feature-sessionmanager -no-feature-scroller -no-feature-scrollbar -no-feature-scrollarea -no-feature-rubberband -no-feature-radiobutton -no-feature-appstore-compliant -no-feature-bearermanagement -no-feature-calendarwidget -no-feature-completer -no-feature-concurrent -no-feature-contextmenu -no-feature-desktopservices -no-feature-datetimeparser -no-feature-datetimeedit -no-feature-datestring -no-feature-cups -no-feature-dnslookup -no-feature-ftp -no-feature-future -no-feature-highdpiscaling -no-feature-http -no-feature-iconv -no-feature-identityproxymodel -no-feature-gestures -no-feature-keysequenceedit -no-feature-localserver -no-feature-listview -no-feature-listwidget -no-feature-menubar -no-feature-messagebox -no-feature-mimetype -no-feature-movie -no-feature-networkdiskcache -no-feature-networkinterface -no-feature-networkproxy -no-feature-pdf -no-feature-processenvironment -no-feature-harfbuzz -no-dbus -no-sql-sqlite -no-sql-db2 -no-sql-ibase -no-sql-mysql -no-sql-oci -no-sql-odbc -no-sql-psql -no-sql-sqlite2 -no-sql-tds -no-system-proxies -no-feature-directwrite -no-fontconfig -no-incredibuild-xge -no-plugin-manifests -no-sse2 -no-sse3 -no-ssse3 -no-sse4.2 -no-pch -skip webengine -no-feature-testlib -no-feature-network -no-feature-sql -system-doubleconversion -feature-doubleconversion -skip tools -no-vulkan -feature-mainwindow -no-feature-xml -feature-gui //your code here
-
Well, here I added a line #include "QtGui/qpainter.h" into qtbase\src\widgets\kernel\qwidgets_p.h and it seems to work...
However in the end it did not take so much trouble. Simplyconfigure.bat -static -static-runtime -release -platform win32-g++ -prefix "C:\Qt_static" -no-sqlite -no-zlib -qt-pcre -qt-libpng -qt-libjpeg -no-freetype -no-opengl -opensource -confirm-license -make libs -no-openssl -nomake tools -nomake examples -nomake tests -skip qt3d -skip qtcanvas3d -skip qtcanvas3d -skip qtdatavis3d -skip qtlocation -skip qtwayland -skip qtwebchannel -skip qtwebengine -skip qtwebsockets -skip qtwebview -skip qtwinextras -skip qtnetworkauth -skip qtmacextras -skip qtandroidextras -skip qtserialport -skip qtserialbus -skip qtactiveqt -skip qtxmlpatterns -skip qtdeclarative -skip qtremoteobjects -skip qtscxml -skip qtpurchasing -skip qtgamepad -skip qtconnectivity -skip qtsensors -skip qtquickcontrols -skip qtspeech -skip qtvirtualkeyboard -skip qtcharts -skip qttools -skip qtscript -skip qttranslations -no-feature-wizard -no-feature-wheelevent -no-feature-whatsthis -no-feature-undostack -no-feature-undoview -no-feature-undogroup -no-feature-undocommand -no-feature-tuiotouch -feature-treeview -no-feature-treewidget -no-feature-translation -no-feature-topleveldomain -no-feature-udpsocket -no-feature-tooltip -no-feature-toolbox -feature-toolbar -no-feature-timezone -no-feature-textodfwriter -no-feature-texthtmlparser -no-feature-textdate -no-feature-textbrowser -feature-temporaryfile -no-feature-tablewidget -feature-tableview -no-feature-tabletevent -no-feature-systemsemaphore -no-feature-syntaxhighlighter -no-feature-statustip -no-feature-statusbar -no-feature-statemachine -feature-standarditemmodel -no-feature-splashscreen -feature-splitter -feature-spinbox -no-feature-socks5 -no-feature-sortfilterproxymodel -no-feature-sharedmemory -no-feature-sessionmanager -no-feature-scroller -feature-scrollbar -feature-scrollarea -no-feature-rubberband -feature-radiobutton -no-feature-appstore-compliant -no-feature-bearermanagement -no-feature-calendarwidget -feature-completer -no-feature-concurrent -no-feature-contextmenu -no-feature-desktopservices -no-feature-datetimeparser -no-feature-datetimeedit -no-feature-datestring -no-feature-cups -no-feature-dnslookup -no-feature-ftp -no-feature-future -no-feature-highdpiscaling -no-feature-http -no-feature-iconv -no-feature-identityproxymodel -no-feature-gestures -no-feature-keysequenceedit -no-feature-localserver -feature-listview -no-feature-listwidget -no-feature-mdiarea -feature-menubar -feature-messagebox -no-feature-mimetype -no-feature-movie -no-feature-networkdiskcache -no-feature-networkinterface -no-feature-networkproxy -feature-pdf -no-feature-processenvironment -no-feature-harfbuzz -no-dbus -no-sql-sqlite -no-sql-db2 -no-sql-ibase -no-sql-mysql -no-sql-oci -no-sql-odbc -no-sql-psql -no-sql-sqlite2 -no-sql-tds -no-system-proxies -no-feature-directwrite -no-fontconfig -no-incredibuild-xge -no-plugin-manifests -no-sse2 -no-sse3 -no-ssse3 -no-sse4.2 -no-pch -skip webengine -no-feature-testlib -no-feature-xml -no-feature-network -no-feature-sql -system-doubleconversion -feature-doubleconversion -skip tools -no-vulkan -feature-mainwindow -feature-dockwidget -feature-itemviews -feature-inputdialog -feature-printer -skip qtmultimedia -feature-filedialog
And it worked. By the way, thanks all the same.