2017-02-27 7 views
4

は、Qtの5.7を構築している間、私は次のコマンドラインを呼び出すために使用:のQt 5.8と設定エラーとSQLライブラリ

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 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

をしかし、Qtの5.8で、このコマンドラインは、次のエラーメッセージで失敗します

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

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

Qt 5.8 documentationによれば、私のコマンドラインはうまくいくようです。

私は何をすべきですか?

+0

http://stackoverflow.com/questions/41812121/qt-lite-and-configuration-changes-in-qt-5-8/41962051#41962051 – dtech

答えて

6

明らかにパラメータの名前が変更されました。ドキュメントは最新ではありません。

正しいコマンドラインは次のとおりです。

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>を使用する必要があるように見えます。

関連する問題