在构建QT5.7时,我经常调用以下命令行:
C:\SDK\qt\src\配置-commercial -确认-许可证-调试和发布-强制调试- -ltcg -static -angle -nomake -nomake测试-qt-sql-odbc -qt-sql-sqlite -qt-zlib -D Z_PREFIX -skip -skip qtandroidextras -skip qtandroidextras -skip qt3d qttools en30 20 en21# qtdoc qtgamepad 23#qtgamepad#qtgamepad#qtgamepad qtimageformats # qtlocation #qtlocation qtenen29#en30#enqent31#entx31-skip qtserialport -skip qtsvg -skip qtwayland -skip qtwebchannel -skip qtwebengine -skip qtwebsockets -skip qtwinextras -skip qtx11extras -skip qtxmlpatterns -prefix C:\SDK\Qt\x64
但是,使用QT5.8时,此命令行将发生以下错误消息:
错误:为布尔命令行选项“sql”提供的值无效。 错误:为布尔命令行选项“sqlite”提供的值无效。
根据QT5.8文档,我的命令行看起来很好。
我该怎么办?
发布于 2017-02-27 08:22:52
显然参数已经被重命名了。文件也不最新。
正确的命令行是:
C:\SDK\qt\src\配置-commercial -确认-许可证-调试和发布-强制-调试- -ltcg -static -angle -nomake -nomake测试-sql-odbc -sql-sqlite -qt-zlib -D Z_PREFIX -skip -skip qtactiveqt -skip qtandroidextras -skip qt3d qttools -skip qttools en30 20 qtdoc qtgamepad qtimageformats # qtmacextras qten29#en31 examples #-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>。
https://stackoverflow.com/questions/42480831
复制相似问题