c++ - 在 Visual Studio 2017 中构建带有大量“系统找不到指定的路径”的 C++ 应用程序时,“cmd.exe”以代码 3 退出。输入输出
问题描述
由于一个问题,我正在构建我尝试调试的第一个 C++ 项目。该项目在过去的 4/5 年没有构建,但说明是运行一个 bat 文件,该文件为项目中的所有目录运行“qmake -t vclib”。这创建了一个 .vcproj 文件。打开文件说
“这些项目要么不受支持,要么需要影响项目行为才能打开此版本的 Visual Studio”
错误信息。 错误的图片
之后,我按下“确定”,在创建 .vcproj 的目录中创建了一个 .vcxproj 文件。我也收到此消息第二条错误消息。从这里我打开了应该是项目升级版本的 .vcxproj 文件,我再次遇到第二个错误。当我点击构建时,我收到这些错误: 在此处 和输出中输入图像描述:
1>------ Up-To-Date check: Project: ccCore, Configuration: Debug Win32 ------
1>Project is not up-to-date: last build was unsuccessful.
1>------ Build started: Project: ccCore, Configuration: Debug Win32 ------
1>Build started 18/06/2018 10:46:52.
1>Building with tools version "15.0".
1>Target _CheckForInvalidConfigurationAndPlatform:
1> Task "Error" skipped, due to false condition; ( '$(_InvalidConfigurationError)' == 'true' ) was evaluated as ( '' == 'true' ).
1> Task "Warning" skipped, due to false condition; ( '$(_InvalidConfigurationWarning)' == 'true' ) was evaluated as ( '' == 'true' ).
1> Using "Message" task from assembly "Microsoft.Build.Tasks.Core, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
1> Task "Message"
1> Configuration=Debug
1> Done executing task "Message".
1> Task "Message"
1> Platform=Win32
1> Done executing task "Message".
1> Task "Error" skipped, due to false condition; ('$(OutDir)' != '' and !HasTrailingSlash('$(OutDir)')) was evaluated as ('.\' != '' and !HasTrailingSlash('.\')).
1> Task "Error" skipped, due to false condition; ('$(BaseIntermediateOutputPath)' != '' and !HasTrailingSlash('$(BaseIntermediateOutputPath)')) was evaluated as ('obj\' != '' and !HasTrailingSlash('obj\')).
1> Task "Error" skipped, due to false condition; ('$(IntermediateOutputPath)' != '' and !HasTrailingSlash('$(IntermediateOutputPath)')) was evaluated as ('_obj\' != '' and !HasTrailingSlash('_obj\')).
1>Target "_CheckForInvalidConfigurationAndPlatform" skipped. Previously built successfully.
1>Target SetTelemetryEnvironmentVariables:
1> Using "SetEnv" task from assembly "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\VC\VCTargets\Microsoft.Build.CppTasks.Common.dll".
1> Task "SetEnv"
1> VSTEL_SolutionSessionID={22C99F8C-EC4B-4478-B4C6-9F995893CCFD}
1> Done executing task "SetEnv".
1> Task "SetEnv"
1> VSTEL_CurrentSolutionBuildID=470085203
1> Done executing task "SetEnv".
1> Task "SetEnv"
1> VSTEL_ProjectID={0171C2BC-3F1A-43E1-B151-47FFAC18B480}
1> Done executing task "SetEnv".
1>Target _PrepareForBuild:
1> Task "CreateItem" skipped, due to false condition; ('%(CustomBuild.IncludeFileToTool)'!='') was evaluated as (''!='').
1>Target _PrepareForReferenceResolution:
1> Task "Message" skipped, due to false condition; ('$(_REFERENCE_DEBUG)'=='true') was evaluated as (''=='true').
1>Target "ComputeCrtSDKReference" skipped, due to false condition; ('@(ClCompile)'!='' and '$(WindowsAppContainer)'=='true' and '$(UseCrtSDKReference)' != 'false') was evaluated as ...
1> Generating precompiled header source file '..\..\falcon_precomp.h.cpp'
...
1> MOC ..\include\ccFE\AppService.h
1> The system cannot find the path specified.
1> MOC ..\include\ccFE\PluginWidgetWebPage.h
1> The system cannot find the path specified.
1> MOC ..\include\ccFE\URLHandler.h
1> The system cannot find the path specified.
1> MOC ..\include\ccFE\YenkaWebPage.h
1> The system cannot find the path specified.
1> MOC ..\include\ccFE\YenkaWidget.h
1> The system cannot find the path specified.
1> MOC ..\include\ccModel\AutoLayoutBaseSet.h
1> The system cannot find the path specified.
1> MOC ..\include\ccModel\ComputedPropertyCallback.h
1> The system cannot find the path specified.
1> MOC ..\include\ccModel\ContentsTreeStore.h
1> The system cannot find the path specified.
1> MOC ..\include\ccModel\DocumentService.h
1> The system cannot find the path specified.
1> MOC ..\include\ccModel\EventRegistry.h
1> The system cannot find the path specified.
1> MOC ..\include\ccModel\Formatter.h
1> The system cannot find the path specified.
1> MOC ..\include\ccModel\LiveQuerySet.h
1> The system cannot find the path specified.
1> MOC ..\include\ccModel\NodeFilter.h
1> The system cannot find the path specified.
1> MOC ..\include\ccModel\OutputTransform.h
1> The system cannot find the path specified.
1> MOC ..\include\ccModel\OutputTransformManager.h
1> The system cannot find the path specified.
1> MOC ..\include\ccModel\PartAssociationHelper.h
1> The system cannot find the path specified.
1> MOC ..\include\ccModel\PartsTreeStore.h
1> The system cannot find the path specified.
1> MOC ..\include\ccModel\PhononMediaPlayer.h
1> The system cannot find the path specified.
1> MOC ..\include\ccModel\PixelDistanceConverter.h
1> The system cannot find the path specified.
1> MOC ..\include\ccModel\ReplacementSet.h
1> The system cannot find the path specified.
1> MOC ..\include\ccModel\SetValueCommand.h
1> The system cannot find the path specified.
1> MOC ..\include\ccModel\TreeStore.h
1> The system cannot find the path specified.
1> MOC ..\include\cc\AccurateTimer.h
1> The system cannot find the path specified.
1> MOC ..\include\cc\FeatureService.h
1> The system cannot find the path specified.
1> MOC ..\include\cc\HttpFileHandler.h
1> The system cannot find the path specified.
1> MOC ..\include\cc\JavaScriptBridge.h
1> The system cannot find the path specified.
1> MOC ..\include\cc\SettingsService.h
1> The system cannot find the path specified.
1> MOC ..\include\cc\Signaller.h
1> The system cannot find the path specified.
1> MOC ..\include\cc\WeakPointer.h
1> The system cannot find the path specified.
1> MOC collision\CollisionSpaceImpl.h
1> The system cannot find the path specified.
1> MOC commandManager\commandManager.h
1> The system cannot find the path specified.
1> MOC licence\LicenceDownloader.h
1> The system cannot find the path specified.
1> MOC licence\licenceService.h
1> The system cannot find the path specified.
1> MOC model\action_impl.h
1> The system cannot find the path specified.
1> MOC model\borderLayout.h
1> The system cannot find the path specified.
1> MOC model\camera\cameraAnimations\CameraAnimation.h
1> The system cannot find the path specified.
1> MOC model\canRotate3dCallback.h
1> The system cannot find the path specified.
1> MOC model\control_impl.h
1> The system cannot find the path specified.
1> MOC model\document_impl.h
1> The system cannot find the path specified.
1> MOC model\engineRegistry.h
1> The system cannot find the path specified.
1> MOC model\junction_impl.h
1> The system cannot find the path specified.
1> MOC model\linkedProperties.h
1> The system cannot find the path specified.
1> MOC model\link_impl.h
1> The system cannot find the path specified.
1> MOC model\LiveNodeWatcher.h
1> The system cannot find the path specified.
1> MOC model\LivePropertyWatcher.h
1> The system cannot find the path specified.
1> MOC model\Marquee.h
1> The system cannot find the path specified.
1> MOC model\model_impl.h
1> The system cannot find the path specified.
1> MOC model\node_impl.h
1> The system cannot find the path specified.
1> MOC model\pad_impl.h
1> The system cannot find the path specified.
1> MOC model\PartLockingHandler.h
1> The system cannot find the path specified.
1> MOC model\part_impl.h
1> The system cannot find the path specified.
1> MOC model\popup_impl.h
1> The system cannot find the path specified.
1> MOC model\propertyScaleCallback.h
1> The system cannot find the path specified.
1> MOC model\property_impl.h
1> The system cannot find the path specified.
1> MOC model\reflection_impl.h
1> The system cannot find the path specified.
1> MOC model\scene_impl.h
1> The system cannot find the path specified.
1> MOC model\spaceActionProcessor.h
1> The system cannot find the path specified.
1> MOC model\spaceOrient3Callback.h
1> The system cannot find the path specified.
1> MOC model\spacePos3Callback.h
1> The system cannot find the path specified.
1> MOC model\spacePosOrientCallback.h
1> The system cannot find the path specified.
1> MOC model\space_impl.h
1> The system cannot find the path specified.
1> MOC model\xyPosCallback.h
1> The system cannot find the path specified.
1> MOC model\xyzPosCallback.h
1> The system cannot find the path specified.
1> MOC package\packageManager.h
1> The system cannot find the path specified.
1> MOC package\SubjectManager.h
1> The system cannot find the path specified.
1> MOC units\numericalFormatter_impl.h
1> The system cannot find the path specified.
1> MOC util\AuthenticationDialog.h
1> The system cannot find the path specified.
1> MOC util\characterMapDialog.h
1> The system cannot find the path specified.
1> MOC util\HttpFileDownloader.h
1> The system cannot find the path specified.
1> MOC util\LocaleService.h
1> The system cannot find the path specified.
1> MOC util\NetworkProxy.h
1> The system cannot find the path specified.
1> MOC util\nodePropertyWatcher.h
1> The system cannot find the path specified.
1> MOC util\statGraph.h
1> The system cannot find the path specified.
1> MOC validators\baseValidator.h
1> The system cannot find the path specified.
1> MOC util\crashHandler.cpp
1> The system cannot find the path specified.
1> MOC ccFoundation\FeatureService.cpp
1> The system cannot find the path specified.
1> MOC util\statistic.cpp
1> The system cannot find the path specified.
1> MOC model\transaction.cpp
1> The system cannot find the path specified.
1> C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(171,5): error MSB6006: "cmd.exe" exited with code 3.
1> Done executing task "CustomBuild" -- FAILED.
1>Done building target "CustomBuild" in project "ccCore.vcxproj" -- FAILED.
1>
1>Done building project "ccCore.vcxproj" -- FAILED.
1>
1>Build FAILED.
1>
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(171,5): warning MSB8017: A circular dependency has been detected while executing custom build commands for item "_moc\crashHandler.moc". This may cause incremental build to work incorrectly.
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(171,5): warning MSB8017: A circular dependency has been detected while executing custom build commands for item "_moc\FeatureService.moc". This may cause incremental build to work incorrectly.
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(171,5): warning MSB8017: A circular dependency has been detected while executing custom build commands for item "_moc\statistic.moc". This may cause incremental build to work incorrectly.
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(171,5): warning MSB8017: A circular dependency has been detected while executing custom build commands for item "_moc\transaction.moc". This may cause incremental build to work incorrectly.
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(171,5): error MSB6006: "cmd.exe" exited with code 3.
1> 4 Warning(s)
1> 1 Error(s)
1>
1>Time Elapsed 00:00:00.31
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
由于正文字数限制,我不能放完整的日志,对不起。我读到我需要找出导致错误的构建步骤,但我不知道该怎么做。还有,为什么说“1>系统找不到指定的路径”。我可以找到所有文件并打开它们,为什么我构建项目时它们无法打开。非常感谢,如果您可以帮助我,请告诉我是否可以发布任何其他信息。
解决方案
推荐阅读
- java - 如何在 mac 上使用 Jib 对 Java 应用程序进行 dockerize
- mysql - 如何在nodejs中将字符串转换为blob/longblob - MySQL
- python - XML 响应的返回值
- haystack - Haystack 教程 1 - 库不竞争
- cookies - NextJS 不包括我的 .NET Core Webapi 提供的 HttpOnly Cookie
- c# - 根据 sql 中的字段标记 CheckBox
- c# - 使用表达式的数组 ConvertAll
- python - 无服务器框架 - 使用生成的 API ID 创建邮递员集合
- r - 在 R 中按用户名和时间合并长格式数据
- flutter - 列表删除颤振或飞镖中的特定键和值