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 Cant build my 4.9 project using xcode 6.4

When i tried to build my project using xcode. It gave me this error:


 ExternalBuildToolExecution BatteryGameEditor\ -\ Mac
     cd /Users/Shared/UnrealEngine/4.9
     export ACTION=
     /Users/Shared/UnrealEngine/4.9/Engine/Build/BatchFiles/Mac/RocketBuild.sh BatteryGameEditor macosx DebugGame /Users/stefanjakobsson/Documents/Unreal\ Projects/BatteryGame/BatteryGame.uproject
 Building BatteryGameEditor...
 Creating makefile for BatteryGameEditor (no existing makefile)
 Compiling with MacOSX SDK 10.10
 Parsing headers for BatteryGameEditor
   Running UnrealHeaderTool "/Users/stefanjakobsson/Documents/Unreal Projects/BatteryGame/BatteryGame.uproject" "/Users/stefanjakobsson/Documents/Unreal Projects/BatteryGame/Intermediate/Build/Mac/BatteryGameEditor/DebugGame/UnrealHeaderTool.manifest" -LogCmds="loginit warning, logexit warning, logdatabase error" -rocket -installed
 /Users/stefanjakobsson/Documents/Unreal Projects/BatteryGame/Source/BatteryGame/Battery.h(26) : Expected an include at the top of the header: '#include "Battery.generated.h"'
 Error: Failed to generate code for BatteryGameEditor - error code: OtherCompilationError (5)
 UnrealHeaderTool failed for target 'BatteryGameEditor' (platform: Mac, module info: /Users/stefanjakobsson/Documents/Unreal Projects/BatteryGame/Intermediate/Build/Mac/BatteryGameEditor/DebugGame/UnrealHeaderTool.manifest).
 Command /Users/Shared/UnrealEngine/4.9/Engine/Build/BatchFiles/Mac/RocketBuild.sh failed with exit code 5


Ive got no idea what to do. Hope that someone can help me.

Product Version: UE 4.9
Tags:
more ▼

asked Sep 10 '15 at 01:41 PM in Installation & Setup

avatar image

DrPelle
1 2 2

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

1 answer: sort voted first

Hey DrPelle-

The error message is saying that the compiler can't find the include statement for Battery.generated.h. This is most likely due to the include not being positioned properly. For any ".generated.h" include statement, the include has to be the last one listed. If you have other include statements below Battery.generated.h then you will need to put them before it.

Cheers

Doug Wilson

more ▼

answered Sep 10 '15 at 06:59 PM

avatar image DrPelle Sep 11 '15 at 01:23 PM

I checked all my code and saw that there was no statements like these. But the error is still coming.

avatar image Doug E ♦♦ STAFF Sep 11 '15 at 01:55 PM

Could you post the code for your project, specifically the Battery class files? It would probably be easiest to upload the project to dropbox and then send me a PM on the forums with a link to download it if possible.

(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