Compile failed... Failed to generate project files


When I’m trying make a new C++ project, then I get this error…
I using Visual Studio 2017. Windows 8.1 SDK and Game development with C++ are installed. I reinstalled Unreal Engine but it didn’t solve the problem…
I using Windows 8.1 Pro, 64 bit
What can I do?

Thank you for your reply!


The project could not be compiled. Would you like to open it in Visual Studio?

Running C:/Program Files/Epic Games/UE_4.16/Engine/Binaries/DotNET/UnrealBuildTool.exe MyProject3 Development Win64 -project=“C:/Users/Máté/Documents/Unreal Projects/MyProject3/MyProject3.uproject” -editorrecompile -progress -NoHotReloadFromIDE
Performing full C++ include scan (building a new target)
Creating makefile for MyProject3 (no existing makefile)
@progress push 5%
Parsing headers for MyProject3Editor
Running UnrealHeaderTool “C:\Users\M?t?\Documents\Unreal Projects\MyProject3\MyProject3.uproject” “C:\Users\M?t?\Documents\Unreal Projects\MyProject3\Intermediate\Build\Win64\MyProject3Editor\Development\MyProject3Editor.uhtmanifest” -LogCmds=“loginit warning, logexit warning, logdatabase error” -Unattended -WarningsAsErrors -installed
Reflection code generated for MyProject3Editor in 28,6698204 seconds
@progress pop
Performing 9 actions (2 in parallel)
[2/9] Resource ModuleVersionResource.rc.inl
[3/9] Resource PCLaunch.rc
c1xx: fatal error C1083: Cannot open source file: ‘C:\Users\M??t?c\Documents\Unreal Projects\MyProject3\Source\MyProject3\MyProject3Character.cpp’: No such file or directory
c1xx: fatal error C1083: Cannot open source file: ‘C:\Users\M??t?c\Documents\Unreal Projects\MyProject3\Source\MyProject3\MyProject3.cpp’: No such file or directory
c1xx: fatal error C1083: Cannot open source file: ‘C:\Users\M??t?c\Documents\Unreal Projects\MyProject3\Intermediate\Build\Win64\UE4Editor\Inc\MyProject3\MyProject3.generated.cpp’: No such file or directory
c1xx: fatal error C1083: Cannot open source file: ‘C:\Users\M??t?c\Documents\Unreal Projects\MyProject3\Source\MyProject3\MyProject3GameMode.cpp’: No such file or directory
ERROR: UBT ERROR: Failed to produce item: C:\Users\M?t?\Documents\Unreal Projects\MyProject3\Binaries\Win64\UE4Editor-MyProject3.dll
Total build time: 273,68 seconds (Local executor: 0,00 seconds)

i think there is a problem passing these characters á,é (that are in the name of your pc user name) to UBT (Unreal Build Tool) because they get passed this way M?t? as you can see in the log at this line:

 Running UnrealHeaderTool "C:\Users\M?t?\Documents\Unreal Projects\MyProject3\MyProject3.uproject" "C:\Users\M?t?\Documents\Unreal 

So a quick fix should be to move the project directory to another folder, for example C:\UE4Projects\MyProject\

Yes … Darkimage’s answer is working

Darkimage’s answer is working! Thanks for help

Im having the same problem did darkimage’s answer work?

glad to help and dont forget to set my answer as accepted !!