使用QT 5.8和SQL库配置错误
Configure error with Qt 5.8 and SQL libraries
构建QT 5.7时,我曾经调用以下命令行:
c: sdk qt src configure -confirm -license-debug-and-release -force-debug-info -ltcg -ltcg -static-angle -nomake示例-Nomake Tests -QT-SQL-ODBC -QT-SQL-ODBC -QT-SQL-SQL-SQL-SQLITE z_prefix -skip qt3d -skip qtactiveqt -skip qtandroidextras -skipqtpurchasing -skip qttools -skip qtcanvas3d -skip qtConnectivity -skipqtdatavis3d -skip qtdeclarative -skip qtdoc -skip qtgamepad -skipqtgraphicalfects -skip qtimageformats -skip qtlocation -skipqtmacextras -skip qtmultimedia -skip qtquickcontrols2 -skip qtsensors-skip qtserialport -skip qtsvg -skip qtwayland -skip qtwebChannel -skip qtwebengine -skip qtwebsockets -skip qtwinextras -skip qtx11 Exttras -skip qtxmlpatterns -prepaterns -predek predek predek prefeck c:qud f ix pred
但是,使用QT 5.8,此命令行失败,以下错误消息:
错误:布尔命令行选项" sql-odbc'。
给出无效的值错误:布尔命令行选项给出的无效值'sql-sqlite'。
根据QT 5.8文档,我的命令行似乎很好。
我该怎么办?
显然已重命名。并且该文档不是最新的。
正确的命令行是:
c: sdk qt src configure -confirm -license -debug and -release -force -debug -info -ltcg -static -angle -nomake示例-Nomake Tests -sql -odbc -sql -sql -sql -sqlite -qt -Zlib -d Z_prefix -skip qt3d -skip qtactiveqt -skip qtandroidextras -skip qtpurchasing -skip qttools -skip qtcanvas3d -skip qtcannectivity -skip qtconnectivity -skip qtdatavis3d -skip qtdatavis3d -skip qtdeclaration -skipskipskipsk qtmegke qumeds qumeckept- -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 qtx11 Exttras -skip qtxmlpatterns -prepaterns -predek predek predek prefeck c:qud f ix pred
看来我们现在应该使用-sql<driver>
而不是-qt-sql<driver>
。
- 配置:错误:找不到 MySQL 包含目录
- 叮当格式化程序多行格式配置错误
- 如何解决导入dll过程中Viual Studio中的并排配置错误
- 配置:错误:无法链接到libboost_atomic
- Rstudio,配置:错误:在libgdal中找不到GDALAllRegister
- 配置:错误:C++编译器无法创建可执行文件
- 无法配置 AGENT++ 配置: 错误: 找不到合适的 libsnmp++ 库
- 配置:错误:*** -LM找不到!**
- 使用QT 5.8和SQL库配置错误
- 配置:错误:缺少所需的库库
- 在Fix8C++库中运行Linux配置错误
- 构建达科他州时配置错误
- msys 和 tdm-gcc:配置错误 - 无法运行 C 编译的程序
- Glibc 2.7 配置错误程序太旧
- PHP PDO_ODBC配置:错误:C 编译器无法创建可执行文件
- Linphone编译-配置:错误:无法运行C编译的程序
- 为什么我看到这个libzdb配置错误
- MSBuild配置错误WDK 8.1 Visual Studio 2015无法生成内核模式驱动程序
- android平台GMP库配置错误.处理步骤
- 使CEGUI / GTK2配置错误