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"

I cannot create a C++ Project

When I try to create a c++ project i get the message

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

Running C:/Program Files (x86)/Epic Games/4.10/Engine/Binaries/DotNET/UnrealBuildTool.exe cpp_4101 Development Win64 -project="C:/Users/Hayden/Documents/Unreal Projects/cpp_4101/cpp_4101.uproject" -rocket -editorrecompile -progress -noubtmakefiles -2015 @progress push 5% Parsing headers for cpp_4101Editor Running UnrealHeaderTool "C:/Users/Hayden/Documents/Unreal Projects/cpp_4101/cpp_4101.uproject" "C:\Users\Hayden\Documents\Unreal Projects\cpp_4101\Intermediate\Build\Win64\cpp_4101Editor\Development\UnrealHeaderTool.manifest" -LogCmds="loginit warning, logexit warning, logdatabase error" -rocket -installed Reflection code generated for cpp_4101Editor in 4.9577675 seconds @progress pop Performing 7 actions (4 in parallel) [3/7] Resource ModuleVersionResource.rc.inl [2/7] Resource PCLaunch.rc PCH.cpp_4101.h.cpp cpp_4101.cpp cpp_4101.generated.cpp cpp_4101GameMode.cpp C:\Users\Hayden\Documents\Unreal Projects\cpp_4101\Source\cpp_4101\cpp_4101.cpp: error C4599: '/IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE': command line argument number 228 does not match precompiled header C:\Users\Hayden\Documents\Unreal Projects\cpp_4101\Source\cpp_4101\cpp_4101GameMode.cpp: error C4599: '/IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE': command line argument number 228 does not match precompiled header C:\Users\Hayden\Documents\Unreal Projects\cpp_4101\Intermediate\Build\Win64\UE4Editor\Inc\cpp_4101\cpp_4101.generated.cpp: error C4599: '/IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE': command line argument number 228 does not match precompiled header -------- End Detailed Actions Stats ----------------------------------------------------------- ERROR: UBT ERROR: Failed to produce item: C:\Users\Hayden\Documents\Unreal Projects\cpp_4101\Binaries\Win64\UE4Editor-cpp_4101.dll Total build time: 57.75 seconds

I can create blueprint projects fine, and I have VS 15 with c++. Please help :/

Product Version: UE 4.12
Tags:
more ▼

asked Jul 04 '16 at 04:12 PM in C++ Programming

avatar image

boompipe
1 3 4 5

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

1 answer: sort voted first
more ▼

answered Jul 04 '16 at 04:33 PM

avatar image

Jamie Dale STAFF
7.4k 176 66 304

avatar image boompipe Jul 04 '16 at 06:45 PM

the github link in the accepted answer returns a 404 page

avatar image Jamie Dale STAFF Jul 04 '16 at 06:48 PM

You need to be signed into GitHub with an account that's been linked to your Epic Games account.

An alternative to building the engine from source is to downgrade back to Update 2. The comments on this question give you information about how to do that: https://answers.unrealengine.com/questions/435600/build-failed-with-vs-2015-update-3.html

avatar image boompipe Jul 05 '16 at 06:29 PM

I'm sorry to keep asking, but I'm inexperienced with this stuff. Now that I have the folder I downloaded from github, where do I put it? Thanks for all of this so far by the way!

avatar image Jamie Dale STAFF Jul 05 '16 at 06:37 PM

You can put it wherever you like. The following information is basically from our getting started section of the readme: https://github.com/EpicGames/UnrealEngine

You need to run Setup.bat to make sure you have all the third-party data, and then GenerateProjectFiles.bat to create the UE4.sln. One this is done you just open up and build the UE4 project in Development Editor, Win64.

You'll then need to go and run {yourpath}\Engine\Binaries\Win64\UnrealVersionSelector-Win64-Shipping.exe to make sure that your custom engine is registered, and then you can change your existing project to use it by right-clicking on your .uproject file, choosing "Switch Unreal Engine version..." and picking the correct entry for your custom engine.

avatar image boompipe Jul 06 '16 at 03:09 AM

the .bat files won't run for me, they just kind of indefinitely load :/ I looked around on google, and I have no idea what I'm doing wrong

avatar image TorQueMoD Aug 16 '17 at 09:09 AM

All of this setup should be covered in the Official Epic Tutorial on C++ "Batter Collector". I can't even get past the first step of compiling the code and it's supposed to be a beginner tutorial. Any chance you guys could update it?

Also for those who were confused, the "Downgrade to Update 2" comment is for Visual Studio not UE4. I was really confused by this.

Why is it that Update 3 is the version that installs when you choose to install from the Editor Menu?

(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