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"

Compilation error on El Capitan (missing 'override')

Hi,

Clang bundled with XCode 7 on El Capitan warns now on missing override keyword in some of engine headers. Unreal build tool compiles with warnings treated as errors so compilation fails. I think disabling that warning should fix compilation.

Is it possible to add a compiler flag to unreal build tool?

I was trying to build the example StrategyGame project.

The actual error is:

Runtime/Engine/Classes/Engine/StaticMesh.h:291:2: error: '_getUObject' overrides a member function but is not marked 'override' [-Werror,-Winconsistent-missing-override]

Thanks

Product Version: UE 4.8
Tags:
more ▼

asked Jul 26 '15 at 07:28 AM in C++ Programming

avatar image

fszczemton
291 16 19 248

avatar image GoNico Oct 30 '15 at 01:22 AM

Any solution yet? We are facing a similar problem...

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

2 answers: sort voted first

adding -Wno-inconsistent-missing-override and -Wno-unused-local-typedefs to MacToolChain.cs works for me

more ▼

answered Nov 25 '15 at 01:05 PM

avatar image

hszhsh
46 1 2 2

avatar image rohoon Jun 20 '16 at 07:10 AM

Is this only for source engine builds?

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

Hello, fszczemton

It is most likely that the error is caused by XCode upgrade.

Thus, you can use an older version for the compilation (If you like to learn more about getting an odler XCode version, please go here: https://developer.apple.com/support/xcode/).

Please note that in order to use an older XCode version, you need to adjust file paths in appropriate .cs files. Thus, please go to Engine->Programs->UnrealBuildTool->Mac->MacToolChain.cs and change the line 37 from

 public static string XcodeDeveloperDir = "/Applications/Xcode.app/Contents/Developer/";

to

 public static string XcodeDeveloperDir = "/Applications/Xcode_6.4.app/Contents/Developer/";

Please note that you may need to make the similar change in IOSToolChain.cs file (line 50) (can be found at Engine->Programs->UnrealBuildTool->IOS->IOSToolChain.cs).

Hope this helped!

Good luck!

more ▼

answered Nov 03 '15 at 01:21 PM

avatar image

Andrii Melnyk
1.9k 60 19 112

(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