Customize error using Qt 5.8 and SQL libraries

When building Qt 5.7, I used the following command line to invoke:

C: \ SDK \ Qt \ src \ configure -commercial -confirm-license -debug-and-release -force-debug-info -ltcg -static -angle -nomake examples -nomake tests -qt-sql-odbc -qt-sql -sqlite -qt-zlib -D Z_PREFIX -skip qt3d -skip qtactiveqt -skip qtandroidextras -skip qtpurchasing -skip qttools -skip qtcanvas3d -skip qtconnectivity -skip qtdatavis3d -skip qtqipskip qqskskqqskskqqskskgqskskg qskipg qskskg qskskg qskskg qskskg qskskg qskipg qskskg qskskg qskskg qskipg qskskg qskqg qtlocation -skip qtmacextras -skip qtmultimedia -skip qtquickcontrols2 -skip qtsensors -skip qtserialport -skip qtsvg -skip qtwayland -skip qtwebchannel -skip qtwebengine -skip qtwebsockets -skip qtwinextxtqtxpqtxpq qtxpq qtxpqs qtxxqsqs qtxxqs qtxxqsqs qtxqxras qtqsqxras qtpqs qtxqsqras qtwebsks

However, with Qt 5.8, this command line fails with the following error message:

ERROR: Invalid value specified for boolean 'sql-odbc' command line option.

ERROR: Invalid value for boolean command line option 'sql-sqlite'.

According to the Qt 5.8 documentation , my command line looks just fine.

What should I do?

+4
source share
1 answer

Apparently, the parameters have been renamed. and the documentation is not updated.

The correct command line is:

C:\SDK\Qt\src\configure -commercial -confirm-license -debug-and-release -force-debug-info -ltcg -static -angle -nomake examples -nomake tests -sql-odbc -sql-sqlite -qt-zlib -D Z_PREFIX -skip qt3d -skip qtactiveqt -skip qtandroidextras -skip qtpurchasing -skip qttools -skip qtcanvas3d -skip qtconnectivity -skip qtdatavis3d -skip qtdeclarative -skip qtdoc -skip qtgamepad -skip qtgraphicaleffects -skip qtimageformats -skip qtlocation -skip qtmacextras -skip qtmultimedia -skip qtquickcontrols2 -skip qtsensors -skip qtserialport -skip qtsvg -skip qtwayland -skip qtwebchannel -skip qtwebengine -skip qtwebsockets -skip qtwinextras -skip qtx11extras -skip qtxmlpatterns -prefix C:\SDK\Qt\x64

, -sql<driver> -qt-sql<driver>.

+6
source

Source: https://habr.com/ru/post/1670905/


All Articles