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?(very popular question with no answer )

Hi guys, I saw many many people ask this question and apparently there is no absolute answer to this question.

this happened for me when I uninstall my visual studio 2015 cause unreal 4.18 no matter I do use VS 2015 and I want to use 2017 and I saw some people solve this problem with uninstalling VS 2015.

when I uninstall VS 2015 receive this error when I want to create a new C++ project:

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

 Running f:/Program Files/Epic Games/UE_4.19/Engine/Binaries/DotNET/UnrealBuildTool.exe MyProject451 Development Win64 -project="F:/c++ New/New folder/MyProject451/MyProject451.uproject" -editorrecompile -progress -NoHotReloadFromIDE
 Performing full C++ include scan (building a new target)
 Creating makefile for MyProject451 (no existing makefile)
 @progress push 5%
 Parsing headers for MyProject451Editor
   Running UnrealHeaderTool "F:\c++ New\New folder\MyProject451\MyProject451.uproject" "F:\c++ New\New folder\MyProject451\Intermediate\Build\Win64\MyProject451Editor\Development\MyProject451Editor.uhtmanifest" -LogCmds="loginit warning, logexit warning, logdatabase error" -Unattended -WarningsAsErrors -installed
 Reflection code generated for MyProject451Editor in 7.2801937 seconds
 @progress pop
 Performing 9 actions (4 in parallel)
 [2/9] Resource ModuleVersionResource.rc.inl
 [3/9] Resource PCLaunch.rc
 SharedPCH.Engine.cpp
 MyProject451GameModeBase.cpp
 MyProject451.init.gen.cpp
 MyProject451.cpp
 MyProject451GameModeBase.gen.cpp
 [8/9] Link UE4Editor-MyProject451.dll
 [9/9] Link UE4Editor-MyProject451.lib
 LINK : fatal error LNK1181: cannot open input file 'ws2_32.lib'
    Creating library F:\c++ New\New folder\MyProject451\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor-MyProject451.lib and object F:\c++ New\New folder\MyProject451\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor-MyProject451.exp
 ERROR: UBT ERROR: Failed to produce item: F:\c++ New\New folder\MyProject451\Binaries\Win64\UE4Editor-MyProject451.dll
 Total build time: 34.18 seconds (Local executor: 0.00 seconds)

photo of error : alt text

many peoples mention its relate to Windows SDK and there is windows SDK in installing if I add more let me know. alt text I thought if I install unreal 4.19 its maybe get fixed but it didn't.

it seens ue4 genrate C++ files for VS 2015. alt text

I hope there is anyone known how to solve this problem and guide me how.

Product Version: UE 4.19
Tags:
sdhgsdh.jpg (119.1 kB)
sdfhdjdgj.jpg (300.0 kB)
6746484.jpg (100.3 kB)
more ▼

asked Jun 05 '18 at 04:30 PM in C++ Programming

avatar image

AAriyAA
77 5 9 15

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

1 answer: sort voted first

I fix it with downloading this cleaner form this link https://github.com/Microsoft/VisualStudioUninstaller/releases . after that UE4 when you want to create new project sends a message and it says you don't have VS2017 don't panic just download the installer and modify it after that it downloading about 350 mg and after that, everything will get fixed. for more info : https://answers.unrealengine.com/questions/597939/new-c-project-fails-to-compile-using-ue-415-and-vs.html

more ▼

answered Jun 05 '18 at 11:42 PM

avatar image

AAriyAA
77 5 9 15

(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