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

I’ve been having trouble opening the source with Unreal with any version. I seem to be getting this error message, any help would be greatly appreciated…

Running D:/Epic Games/4.10/Engine/Binaries/DotNET/UnrealBuildTool.exe ShooterArena Development Win64 -project=“D:/UnrealProjects/BMUD_Source_12-06-2016 4.10/ShooterArena.uproject” -rocket -editorrecompile -progress -noubtmakefiles -2015
@progress push 5%
Parsing headers for ShooterArenaEditor
Running UnrealHeaderTool “D:/UnrealProjects/BMUD_Source_12-06-2016 4.10/ShooterArena.uproject” “D:\UnrealProjects\BMUD_Source_12-06-2016 4.10\Intermediate\Build\Win64\ShooterArenaEditor\Development\UnrealHeaderTool.manifest” -LogCmds=“loginit warning, logexit warning, logdatabase error” -rocket -installed
Reflection code generated for ShooterArenaEditor in 6.9964961 seconds
@progress pop
Performing 7 actions (4 in parallel)
[2/7] Resource ModuleVersionResource.rc.inl
[3/7] Resource ShooterArena.rc
PCH.ShooterArena.h.cpp

D:\UnrealProjects\BMUD_Source_12-06-2016 4.10\Source\ShooterArena\Resources\Windows\ShooterArena.rc(68) : error RC2135 : file not found: …/…/…/…/Build/Windows/Application.ico
ShooterArena.generated.cpp
MyBlueprintFunctionLibrary.cpp
ShooterArena.cpp
D:\UnrealProjects\BMUD_Source_12-06-2016 4.10\Source\ShooterArena\ShooterArena.cpp: error C4599: ‘/ID:\Program Files (x86)\Microsoft Visual Studio 2015\VC\INCLUDE’: command line argument number 228 does not match precompiled header
D:\UnrealProjects\BMUD_Source_12-06-2016 4.10\Source\ShooterArena\MyBlueprintFunctionLibrary.cpp: error C4599: ‘/ID:\Program Files (x86)\Microsoft Visual Studio 2015\VC\INCLUDE’: command line argument number 228 does not match precompiled header
D:\UnrealProjects\BMUD_Source_12-06-2016 4.10\Intermediate\Build\Win64\UE4Editor\Inc\ShooterArena\ShooterArena.generated.cpp: error C4599: ‘/ID:\Program Files (x86)\Microsoft Visual Studio 2015\VC\INCLUDE’: command line argument number 228 does not match precompiled header

-------- End Detailed Actions Stats -----------------------------------------------------------
ERROR: UBT ERROR: Failed to produce item: D:\UnrealProjects\BMUD_Source_12-06-2016 4.10\Binaries\Win64\UE4Editor-ShooterArena.dll
Total build time: 35.93 seconds

Hey -

This error is caused by an compatibility conflict with Visual Studio Update 3. This specific issue was resolved with the 4.12.5 hotfix. Updating to this version should allow you to build your solution and continue work with your code.

Cheers

Hey ,

Really appreciate the help, I’ve followed your instructions but I’m still getting errors.

I’ve reinstalled Windows SDK and Visual Studios 2015 along with opening up the project with Unreal 4.12.5 but I still get the error below

Any ideas?

Thanks in advance :wink:

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

Running D:/Epic Games/4.12/Engine/Binaries/DotNET/UnrealBuildTool.exe ShooterArena Development Win64 -project=“D:/UnrealProjects/BMUD_Source_12-06-2016 4.12 - 4/ShooterArena.uproject” -editorrecompile -progress -noubtmakefiles -NoHotReloadFromIDE
@progress push 5%
Parsing headers for ShooterArenaEditor
Running UnrealHeaderTool “D:\UnrealProjects\BMUD_Source_12-06-2016 4.12 - 4\ShooterArena.uproject” “D:\UnrealProjects\BMUD_Source_12-06-2016 4.12 - 4\Intermediate\Build\Win64\ShooterArenaEditor\Development\ShooterArenaEditor.uhtmanifest” -LogCmds=“loginit warning, logexit warning, logdatabase error” -Unattended -WarningsAsErrors -installed
Reflection code generated for ShooterArenaEditor in 3.5262222 seconds
@progress pop
Performing 7 actions (4 in parallel)
[2/7] Resource ModuleVersionResource.rc.inl
[3/7] Resource ShooterArena.rc
PCH.ShooterArena.h.cpp

D:\UnrealProjects\BMUD_Source_12-06-2016 4.12 - 4\Source\ShooterArena\Resources\Windows\ShooterArena.rc(68) : error RC2135 : file not found: …/…/…/…/Build/Windows/Application.ico
MyBlueprintFunctionLibrary.cpp
ShooterArena.generated.cpp
ShooterArena.cpp
ERROR: UBT ERROR: Failed to produce item: D:\UnrealProjects\BMUD_Source_12-06-2016 4.12 - 4\Binaries\Win64\UE4Editor-ShooterArena.dll
Total build time: 38.25 seconds

The error you’re receiving now is different from the original error message. It appears there are a number of files it’s unable to locate (MyBlueprintFunctionLibrary.cpp ShooterArena.generated.cpp ShooterArena.cpp). To be sure that the files are being associated properly with the project, right-click on the .uproject file and select Generate Visual Studio project files. Once that completes you should be able to open the .sln and build the project code and then open the project.

Hey ,

I tried manually building the project in VS, however I am getting the following errors.

Any ideas? Thanks buddy

link text

Based on the error it appears to be looking for an “Application.ico” file that it can’t find. Please try opening the engine directory and navigate to Engine\Source\Runtime\Launch\Resources\Windows. In this folder there is a UE4.ico file. You should be able to copy this file and place it inside your project directory in the Build/Windows folder (you may need to manually create the folder) After pasting the file here, rename it to Application.ico and then run Generate Visual Studio project files again and then build.

I had a look through the entire project and couldn’t find the UE4.ico file or any .ico file at all.

Rather than searching through the project directory, if you open the engine directory (where the engine version is installed) you should be able to find the folder path described.

Hey ,

It’s still giving me the the same error after adding the ico file to the directory.

100555-capture.png

Rather than ProjectName/Resources/Build/Windows please put the .ico file in the ProjectName/Build/Windows folder

Hey ,

I see my bad, I’ve made the corrections and Generated the projects again. However, I’m still receiving the same error after building and rebuilding the project.

101120-capture1.png

Is BMUDSource the name of the proejct? If so then the .ico file is still not in the correct folder. The Build/ and Windows/ folder as well as the .ico file need to be in the root ProjectName folder rather than inside the source folder. In the case of your folder structure, the path to the .ico should be UnrealProjects/BMUDSource/Build/Windows/Application.ico.

Yeah the project name is BMUDSource, I’ve put the Build/Windows folder inside the project name folder, but I’m still receiving the .ico error. I also tried to put it into several other folders but no luck!

Hello ,

I just took a look over everything that you and have conversed so far and noticed that this entire time we’ve been working with a singular project. What happens if you try to create a fresh, blank C++ project in this same version of the engine? Does it work correctly?

Also, can you take a screenshot of the contents of your BMUDSource/Build/Windows/ folder?

Hey , thanks for getting in touch, do you think it would be possible to have a chat over Skype at your convenience about the issue?

Many Thanks,

That is not an option. We’ll need to keep our chat here on Answerhub. Have you given a new project a try to see if that is able to package correctly?

OK fair enough, not yet, I’m currently reinstalling Visual Studios 2015 as the license expired.

We haven’t heard from you in a while, . Are you still experiencing this issue? If so, have you been able to try packaging a new project? In the meantime, I’ll be marking this issue as resolved for tracking purposes.

Hi, . I perhaps have same problems with bmud. And I just want to new a new project in C++ tabs. And no matter with StarterContent or not, it can’t compile it correctly. I used Unreal Engine 4.12.5 and Visual Studio 2013 Ultimate. And following is the error information:

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

Running C:/Program Files (x86)/Epic Games/4.12/Engine/Binaries/DotNET/UnrealBuildTool.exe MyProject3 Development Win64 -

“There are too many characters, so I have to leave something out.”

E:\LevelDesign\MyProject3\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor-MyProject3.lib ?Ͷ??? E:\LevelDesign\MyProject3\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor-MyProject3.exp
MyProject3.cpp.obj : error LNK2019: ?޷???ⲿ??? “__declspec(dllimport) public: static class TBaseDelegate & __cdecl FCoreDelegates::GetObjectArrayForDebugVisualizersDelegate(void)” (_imp?GetObjectArrayForDebugVisualizersDelegate@FCoreDelegates@@SAAEAV?$TBaseDelegate@PEAVFFixedUObjectArray@■■■$V@@XZ)???÷???ں??? “void __cdecl `dynamic initializer for ‘GObjectArrayForDebugVisualizers’'(void)” (??__EGObjectArrayForDebugVisualizers@@YAXXZ) ?б???
MyProject3GameMode.cpp.obj : error LNK2001: ?޷???ⲿ??? “public: virtual bool __cdecl AGameMode::SetPause(class APlayerController *,class TBaseDelegate)” (?SetPause@AGameMode@@UEAA_NPEAVAPlayerController@@anonymous_user_e71e0d8a?$TBaseDelegate@_N$$$V@@@Z)
MyProject3.generated.cpp.obj : error LNK2001: ?޷???ⲿ??? “public: virtual bool __cdecl AGameMode::SetPause(class APlayerController *,class TBaseDelegate)” (?SetPause@AGameMode@@UEAA_NPEAVAPlayerController@@anonymous_user_e71e0d8a?$TBaseDelegate@_N$$$V@@@Z)
E:\LevelDesign\MyProject3\Binaries\Win64\UE4Editor-MyProject3.dll : fatal error LNK1120: 2 ???޷???ⲿ???
ERROR: UBT ERROR: Failed to produce item: E:\LevelDesign\MyProject3\Binaries\Win64\UE4Editor-MyProject3.dll
Total build time: 47.14 seconds