Error de compilación de la biblioteca Qt (Windows): doble conversión/doble conversión.h: no existe tal archivo o directorio

descripción incorrecta

Descargar qt-everywhere-opensource-src-5.15.9.tar.gz, error de compilación en la plataforma Windows

正在生成代码...
        cl -c -FIglobal\qt_pch.h -Yuglobal\qt_pch.h -Fp.pch\debug\Qt5Cored_pch.pch -nologo -Zc:wchar_t -FS -Zc:rvalueCast -Zc:inline -Zc:strictStrings -Zc:throwingNew -Zc:referenceBinding -Zc:__cplusplus -Zi -MDd -std:c++17 -utf-8 -EHsc -W3 -w34100 -w34189 -w44996 -w44456 -w44457 -w44458 -wd4577 -wd4467 /Fd.obj\debug\Qt5Cored.vc.pdb -DUNICODE -D_UNICODE -DWIN32 -D_ENABLE_EXTENDED_ALIGNED_STORAGE -DWIN64 -DQT_NO_LINKED_LIST -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_USING_NAMESPACE -DQT_NO_FOREACH -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_BUILD_CORE_LIB -DQT_BUILDING_QT -D_CRT_SECURE_NO_WARNINGS -D_USE_MATH_DEFINES -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x040800 -DQT_DEPRECATED_WARNINGS_SINCE=0x060000 -DPCRE2_CODE_UNIT_WIDTH=16 -DPCRE2_STATIC -D_WINDLL -I. -I..\3rdparty\zlib\src -Iglobal -I..\3rdparty\md5 -I..\3rdparty\md4 -I..\3rdparty\sha3 -I..\3rdparty -I..\3rdparty\double-conversion\include -I..\3rdparty\harfbuzz\src -I..\3rdparty\tinycbor\src -I.rcc\debug -I..\..\include -I..\..\include\QtCore -I..\..\include\QtCore\5.15.9 -I..\..\include\QtCore\5.15.9\QtCore -Itmp -I.moc\debug -I.tracegen\debug -I..\3rdparty\pcre2\src -I..\..\mkspecs\win32-msvc -Fo.obj\debug\ @C:\Users\ADMINI~1\AppData\Local\Temp\nm94B2.tmp
bignum.cc
bignum-dtoa.cc
cached-powers.cc
diy-fp.cc
double-conversion.cc
..\3rdparty\double-conversion\double-conversion.cc(32): fatal error C1083: 无法打开包括文件: “double-conversion/double-conversion.h”: No such file or directory
fast-dtoa.cc
fixed-dtoa.cc
strtod.cc
正在生成代码...
NMAKE : fatal error U1077: “"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29910\bin\HostX64\x64\cl.EXE"”: 返回代码“0x2”
Stop.
NMAKE : fatal error U1077: “"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29910\bin\HostX64\x64\nmake.exe"”: 返回代码“0x2”
Stop.
NMAKE : fatal error U1077: “cd”: 返回代码“0x2”
Stop.
NMAKE : fatal error U1077: “cd”: 返回代码“0x2”
Stop.
NMAKE : fatal error U1077: “cd”: 返回代码“0x2”
Stop.

Solución

método uno

No descargar qt-everywhere-opensource-src-5.15.9.tar.gz, descargar qt-everywhere-opensource-src-5.15.9.zipy luego compilar.

Método dos

Vaya al directorio del archivo fuente
qt-everywhere-src-5.15.9\qtbase\src\3rdparty\double-conversion\include\double-conversion
y cambie el nombre del archivo double-conva double-conversion.h.
Insertar descripción de la imagen aquí

Supongo que te gusta

Origin blog.csdn.net/hezhanran/article/details/131080915
Recomendado
Clasificación