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"

Changing BuildConfiguration(.xml) in 4.16

I'm trying to change the build configuration settings for our UE4 C++ Project in 4.16. Problem is that for my 4.16 install I have no default BuildConfiguration.xml (only one in /Saved/ which is pretty much empty) while 4.15 has one in \UnrealEngine\Engine\Programs\UnrealBuildTool as suggested in the first url below.

I've been using these as reference:

Trying to add the custom rules via BuildConfiguration.bUseIncrementalLinking = true; for example doesn't compile. And adding my own BuildConfiguration.xml in /Saved/ of the engine folder as suggested doesn't work either.

Has anyone used custom .xml or custom build.cs for 4.16? I'd love to try some of the custom build options to see if we can improve compile times.

Product Version: UE 4.16
Tags:
more ▼

asked Jun 29 '17 at 04:28 AM in C++ Programming

avatar image

Tom Looman
469 35 88 55

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

3 answers: sort voted first

Generally you should only need to modify things in the Build.cs file if you need them on a per-project or per-module basis. Otherwise use the following locations of BuildConfiguration.xml:

Engine/Saved/UnrealBuildTool - For a specific engine version.

Documents/Unreal Engine/UnrealBuildTool - For all installed engine versions.

I just have the following at the latter location, for example:

 <?xml version="1.0" encoding="utf-8" ?>
 <Configuration xmlns="https://www.unrealengine.com/BuildConfiguration">
     <BuildConfiguration>
         <bShadowVariableErrors>true</bShadowVariableErrors>
         <ProcessorCountMultiplier>2</ProcessorCountMultiplier>
     </BuildConfiguration>
 </Configuration>

The fact they seem to have removed the default one in 4.16 shouldn't matter, the defaults are still no doubt defined somewhere, so you can just add to the empty shell in Engine/Saved/UnrealBuildTool, or add a similar one in the documents folder if you want it to persist for future engine installs. Anything not specified will just be inherited.

more ▼

answered Jul 07 '17 at 01:31 PM

avatar image

kamrann
2.1k 83 37 121

avatar image Tom Looman Jul 10 '17 at 06:20 PM

Thanks! I'll try this out. I may have just messed up my syntax in the .xml file.

I tried setting the variables in the .build.cs file but the build system did not pick them up, I must be doing something wrong syntax wise. (eg. how would you enable incremental linking via the Build.cs file?)

avatar image kamrann Jul 10 '17 at 06:44 PM

I haven't tried adjusting that, but it would be a project level setting not module level, so I'd imagine it would be set in the Target.cs file. Here it is.

I suspect it's probably only relevant in non-editor builds.

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

alt text

It's really strange!!! It's look like you need to alternate between the options in the build.cs file and the xml file. This is my configuration and it's compiling (but I don't know if it's working???):

more ▼

answered Jul 06 '17 at 06:25 PM

avatar image

João Marcelo Brumano
1 1

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

The absolute new location of:

C:\Users\<user>\Documents\Unreal Engine\UnrealBuildTool\BuildConfiguration.xml

in 4.17 is at:

C:\Program Files\Epic Games\UE_4.17\Engine\Saved\UnrealBuildTool

Well atleast on my pc :p



Cheers,

RJ

more ▼

answered Nov 26 '17 at 08:24 AM

avatar image

rjrenegade33
6 1 2

avatar image DeadlyMidnight Jun 02 '18 at 11:12 PM

Bit of a necro but as of 4.19 the C:\Users\\Documents\Unreal Engine\UnrealBuildTool\BuildConfiguration.xml is still working.

(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