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"

Engine Rebuild Everytime

Hi, I got the engine working quite well on my linux (fedora 26 kernel 4.13.15-200). But rebuild my C++ project or a recently added the C++ class, the engine tries to rebuild it self.

After what seams like an eternity trying to debug this problem, because every attempt triggers the entire engine compilation (strange enough first compilation took 1h now takes 2h), I'm pretty sure that if I do not run the editor or the UBT from the same folder the compilation starts to kick in.

Well trying to make sure every thing runs from the same folder is a nightmare, and can't be right. This is a huge pitfall for newcomers, and makes the engine impossible to use.

Any ideas? thoughts?

Product Version: UE 4.18
more ▼

asked Dec 07 '17 at 12:32 PM in Linux

avatar image

3 1 3

avatar image lassade Dec 08 '17 at 03:37 PM

For the record:

  1. The running commands from different folders does not causes the engine to be rebuild;

  2. Qtcreator wasn't using the right environment PATH thus changing the clang path this causes the engine to be rebuild (even if you run the engine from the terminal for instance, and not from the Qtcreator) so watch-out for that;

  3. ccache was the thing slowing down the compile time, go figure; (I will keep testing to see if any thing changes)

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

1 answer: sort voted first

You probably have a file with the timestamp in future. Try passing -verbose to UBT (e.g. when doing make MyProjectEditor do make MyProjectEditor ARGS=-verbose instead) and look for explanation for Outdated actions.

more ▼

answered Dec 07 '17 at 05:29 PM

avatar image

2.5k 59 6 87

avatar image lassade Dec 08 '17 at 12:58 AM

I re-downloaded the engine from git and rebuild all, change a couple of paths and added "-verbose" tag to my builds cmd when/if this happens again I will post the logs here. But for now everything is fine. Right now I'm not very anxious to try replicate this error.

"You probably have a file with the timestamp in future" any ideas how did this happen?

avatar image lassade Dec 08 '17 at 02:11 PM

The outdated actions changed the clang path from "/usr/lib64/ccache/clang++" when I compiled from the terminal to "/usr/bin/clang++" in qtcreator, thus triggering the compilation I guess.

Edit: Both programs are the same clang 4.0.1, they are actually symbolic links.

Granted my PATH in qtcreator and system are different, "/usr/lib64/ccache/" comes first in my system path. But they still the same clang version.

(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