x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

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

Product Version: UE 4.10
Tags:
more ▼

asked Jul 10 '16 at 05:57 PM in Installation & Setup

avatar image

bmud_game
1 1 2 3

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

2 answers: sort voted first

We haven't heard from you in a while, bmud_game. 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.

more ▼

answered Aug 26 '16 at 06:31 PM

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

Hey bmud_game-

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

Doug Wilson

more ▼

answered Jul 11 '16 at 01:50 PM

avatar image bmud_game Jul 18 '16 at 09:39 PM

Hey Doug,

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 ;)

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

avatar image Doug E ♦♦ STAFF Jul 19 '16 at 02:05 PM

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.

avatar image bmud_game Jul 22 '16 at 07:01 AM

Hey Doug,

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

Any ideas? Thanks buddy

avatar image bmud_game Jul 22 '16 at 07:05 AM
errors.txt (2.2 kB)
avatar image Doug E ♦♦ STAFF Jul 22 '16 at 02:50 PM

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.

avatar image bmud_game Jul 25 '16 at 08:33 PM

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

capture.png (78.7 kB)
avatar image Doug E ♦♦ STAFF Jul 25 '16 at 08:41 PM

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.

avatar image bmud_game Jul 28 '16 at 07:21 PM

Hey Doug,

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

alt text

capture.png (53.1 kB)
avatar image Doug E ♦♦ STAFF Jul 29 '16 at 04:15 PM

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

avatar image bmud_game Aug 02 '16 at 08:13 PM

Hey Doug,

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.

alt text

alt text

alt text

capture1.png (54.7 kB)
capture2.png (17.8 kB)
capture4.png (26.6 kB)
avatar image Doug E ♦♦ STAFF Aug 03 '16 at 02:31 PM

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.

avatar image bmud_game Aug 07 '16 at 04:21 PM

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!

alt text

capture1.png (67.9 kB)
avatar image Matthew J Aug 08 '16 at 05:38 PM

Hello bmud_game,

I just took a look over everything that you and Doug 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?

avatar image bmud_game Aug 11 '16 at 06:51 PM

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

My Skype ID: tbensaria

Many Thanks, Tarik

alt text

capture.png (64.5 kB)
avatar image Matthew J Aug 11 '16 at 06:54 PM

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?

avatar image bmud_game Aug 11 '16 at 07:44 PM

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

avatar image EnochLeo Oct 17 '16 at 03:04 AM

Hi, Matthew. 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@@V?$TBaseDelegate@N$$$V@@@Z) MyProject3.generated.cpp.obj : error LNK2001: ?޷????????ⲿ???? "public: virtual bool _cdecl AGameMode::SetPause(class APlayerController ,class TBaseDelegate)" (?SetPause@AGameMode@@UEAA_NPEAVAPlayerController@@V?$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

avatar image Matthew J Oct 17 '16 at 02:43 PM

Hello EnochLeo,

Please be aware that as of version 4.10.0, we began requiring Visual Studio 2015 to compile C++ projects in the engine. This error is likely coming from using Visual Studio 2013. Can you try downloading Visual Studio 2015 and see if it'll work correctly with that?

Keep in mind that during the Visual Studio 2015 installation, you may need to select "Custom" installation so that you can ensure that the "Common Tools for Visual C++ 2015" (Not to be confused with "Common Tools") are installed, as these are required for compiling C++ with the engine.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question