Hi,
I always wanted to get into game dev and wanted to start learning ue4. But I can’t seem to build anything using c++ (similar error with rebuild/clean solution), including a fresh basic template. I have searched answers for days, and have tried various things such as
-
renaming environment variable path and PATH to not include spaces
-
making sure desktop development with c++, game development with c++, windows 8.1 and 10 sdk were installed
-
including the path of the ue4 build .bat files found at “\Engine\Build\BatchFiles” in the PATH environment variable
-
right clicking project and selecting “generate visual studios project files”
-
Changing my windows 7 username to a name without special characters
-
including quotations for NMake found under the project solutions configuration properties
ex: Build Command Line reads exactly “D:\Program Files\Epic Games\UE_4.18\Engine\Build\BatchFiles\Build.bat” MyProjectEditor Win64 Development “$(SolutionDir)$(ProjectName).uproject” -waitmutex
The error given:
D:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.MakeFile.Targets(44,5): error MSB3073: The command ""D:\Program Files\Epic Games\UE_4.18\Engine\Build\BatchFiles\Build.bat" MyProjectEditor Win64 Development "D:\VisualStudCompileTest\MyProject\MyProject.uproject" -waitmutex" exited with code 1.
0 Warning(s)
1 Error(s)
Time Elapsed 00:00:00.48
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped
Here’s the part of output that I think is the main cause of the build failure
Using "Exec" task from assembly "Microsoft.Build.Tasks.Core, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
Task "Exec"
Task Parameter:Command="D:\Program Files\Epic Games\UE_4.18\Engine\Build\BatchFiles\Build.bat" MyProjectEditor Win64 Development "D:\VisualStudCompileTest\MyProject\MyProject.uproject" -waitmutex
"D:\Program Files\Epic Games\UE_4.18\Engine\Build\BatchFiles\Build.bat" MyProjectEditor Win64 Development "D:\VisualStudCompileTest\MyProject\MyProject.uproject" -waitmutex
'C:\Users\' is not recognized as an internal or external command,
operable program or batch file.
D:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.MakeFile.Targets(44,5): error MSB3073: The command ""D:\Program Files\Epic Games\UE_4.18\Engine\Build\BatchFiles\Build.bat" MyProjectEditor Win64 Development "D:\VisualStudCompileTest\MyProject\MyProject.uproject" -waitmutex" exited with code 1.
Done executing task "Exec" -- FAILED.
Done building target "Build" in project "MyProject.vcxproj" -- FAILED.
I think the issue might be that it can’t identify/execute .bat or something
'C:\Users\' is not recognized as an internal or external command,
operable program or batch file.
Interestingly, if i were to cmd>navigate to where ue4 build.bat file is using command cd> and enter
“D:\Program Files\Epic Games\UE_4.18\Engine\Build\BatchFiles\Build.bat” MyProjectEditor Win64 Development “$(SolutionDir)$(ProjectName).uproject” -waitmutex
It will accept the command and complete without errors
Here’s the full visual studio output
Sry for the long post, I’m currently using Visual Studios 2017. Thank you in advanced, any help is appreciated