尝试生成项目文件时发生错误。
Running D:/虚幻4/Epic Games/4.10/Engine/Binaries/DotNET/UnrealBuildTool.exe -projectfiles -project=“D:/用户目录/我的文档/Unreal Projects/我的项目/我的项目.uproject” -game -rocket -progress -2015
Discovering modules, targets and source code for game…
UnrealBuildTool Exception: ERROR: Failed to harvest environment variables
Hello,
The “failed to harvest environment variables” error has been seen before and there are a few things that should be checked to fix it. First, can you install the Windows 8.1 SDK (or Windows 10 SDK if you’re using Windows 10). If your machine says that the SDK is already installed, please reinstall anyway to ensure this is not the issue.
If you still run into this error after ensuring the SDK is set properly, you will need to make sure that your environment variables are set properly on your machine. The following link can show you how to access the environment variables and what to look for to make sure it is setup: A new, community-hosted Unreal Engine Wiki - Announcements - Epic Developer Community Forums (Specifically the 7 steps above the “OtherCompilerError” section). Let me know if you have any troubles with these or if you are still having problem building the engine.
Cheers