Qt无法找到项目的std库

时间:2016-10-28 07:42:51

标签: c++ visual-studio qt standard-library c++-standard-library

我在Qt有一个项目正在运作。然后,一旦我关闭创建者,将其打开并重建项目,Qt现在说它无法找到任何std库头。错误消息是:

  

D:\Devlibs\Qt\5.7\msvc2015_64\include\QtCore\qglobal.h:45: error: C1083: Cannot open include file: 'cstddef': No such file or directory

(与我使用的所有其他std库头一起)

我正在使用vs 2015进行构建,看起来Qt没有设置VS环境,但事实上,我的其他项目(在同一目录中)构建得很好。我尝试删除.pro文件和构建文件,重新配置项目,以及重新安装Qt,并从命令行运行Qt。一切都没有用。

我只想知道Qt环境中的VS设置是什么/哪里,什么可能导致只有一个项目以这种方式运行?我以为它会出现在Makefile中,但是当我通过它时我看不到任何东西。

整个编译输出是:

10:13:03: Running steps for project QARD_Viewer... 10:13:03: Configuration unchanged, skipping qmake step. 10:13:03: Starting: "D:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\nmake.exe" "D:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\nmake.exe" -f Makefile.Release cl -c -nologo -Zc:wchar_t -FS -Zc:strictStrings -Zc:throwingNew -O2 -MD -GR -W3 -w34100 -w34189 -w44996 -w44456 -w44457 -w44458 -wd4577 -EHsc -DUNICODE -DWIN32 -DWIN64 -DQWT_DLL -DQT_NO_DEBUG -DQT_WEBENGINE_LIB -DQT_WEBENGINEWIDGETS_LIB -DQT_WEBENGINECORE_LIB -DQT_QUICK_LIB -DQT_SVG_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_WEBCHANNEL_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DNDEBUG -I..\QARD_Viewer -I. -I"D:/Users/JSendall/Documents/PCL/GUI/QARD_Viewer/../PXGFtoFile/AARD Backup" -ID:/Users/JSendall/Documents/PCL/GUI/QARD_Viewer/../SIMD_vectors/SIMD_vectors -I"D:/Users/JSendall/Documents/PCL/GUI/QARD_Viewer/../PCL Proc Server/Common files" -ID:\Devlibs\boost_1_62_0 -ID:\Devlibs\Qwt-6.1.3\include -I..\..\Deployment\Code\PXGF_socket\PXGF_socket -I..\..\Deployment\Code\QardDetector\cfarLib -I..\..\Deployment\Code\coordHandling\coordHandling -I"..\..\Deployment\Code\PXGFtoFile\AARD Backup" -I"..\..\Deployment\Code\PCL Proc Server\Common files" -I..\..\Deployment\Code\SIMD_vectors\SIMD_vectors -I..\..\Deployment\Code\pxgf_rpk_client\pxgf_rpk_client -I..\..\Deployment\Code\QardDetector\QardDetector -ID:\Devlibs\Qt\5.7\msvc2015_64\include -ID:\Devlibs\Qt\5.7\msvc2015_64\include\QtWebEngine -ID:\Devlibs\Qt\5.7\msvc2015_64\include\QtWebEngineWidgets -ID:\Devlibs\Qt\5.7\msvc2015_64\include\QtWebEngineCore -ID:\Devlibs\Qt\5.7\msvc2015_64\include\QtQuick -ID:\Devlibs\Qt\5.7\msvc2015_64\include\QtSvg -ID:\Devlibs\Qt\5.7\msvc2015_64\include\QtWidgets -ID:\Devlibs\Qt\5.7\msvc2015_64\include\QtGui -ID:\Devlibs\Qt\5.7\msvc2015_64\include\QtANGLE -ID:\Devlibs\Qt\5.7\msvc2015_64\include\QtWebChannel -ID:\Devlibs\Qt\5.7\msvc2015_64\include\QtQml -ID:\Devlibs\Qt\5.7\msvc2015_64\include\QtNetwork -ID:\Devlibs\Qt\5.7\msvc2015_64\include\QtCore -Irelease -I. -ID:\Devlibs\Qt\5.7\msvc2015_64\mkspecs\win32-msvc2015 -Forelease\ @C:\Users\JSendell\AppData\Local\Temp\nm6F02.tmp main.cpp D:\Devlibs\Qt\5.7\msvc2015_64\include\QtCore/qglobal.h(45): fatal error C1083: Cannot open include file: 'cstddef': No such file or directory mainwindow.cpp D:\Devlibs\Qt\5.7\msvc2015_64\include\QtCore/qglobal.h(45): fatal error C1083: Cannot open include file: 'cstddef': No such file or directory ardplot_t.cpp D:\Devlibs\Qt\5.7\msvc2015_64\include\QtCore\qglobal.h(45): fatal error C1083: Cannot open include file: 'cstddef': No such file or directory qread.cpp ..\..\Deployment\Code\PCL Proc Server\Common files\QARDHeader.h(3): fatal error C1083: Cannot open include file: 'cstdint': No such file or directory cfarplotter.cpp D:\Devlibs\Qt\5.7\msvc2015_64\include\QtCore\qglobal.h(45): fatal error C1083: Cannot open include file: 'cstddef': No such file or directory detectiondisplay.cpp D:\Devlibs\Qt\5.7\msvc2015_64\include\QtCore/qglobal.h(45): fatal error C1083: Cannot open include file: 'cstddef': No such file or directory geocode_data_manager.cpp D:\Devlibs\Qt\5.7\msvc2015_64\include\QtCore/qglobal.h(45): fatal error C1083: Cannot open include file: 'cstddef': No such file or directory cacfdetector.cpp ..\..\Deployment\Code\QardDetector\cfarLib\caCfarDetector.h(2): fatal error C1083: Cannot open include file: 'numeric': No such file or directory label_connected.cpp d:\users\jsendall\documents\pcl\gui\qard_viewer\label_connected.h(3): fatal error C1083: Cannot open include file: 'vector': No such file or directory Generating Code... NMAKE : fatal error U1077: '"D:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\cl.EXE"' : return code '0x2' Stop. NMAKE : fatal error U1077: '"D:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\nmake.exe"' : return code '0x2' Stop. 10:13:04: The process "D:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\nmake.exe" exited with code 2. Error while building/deploying project QARD_Viewer (kit: Desktop Qt 5.7.0 MSVC2015_64bit) When executing step "Make" 10:13:04: Elapsed time: 00:01.

0 个答案:

没有答案