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"

Make command failing for UE4.18

Hi, I am trying to install UE4.18 in ubuntu 16.04. My clang is 5.0.2 I am following the instructions from the https://wiki.unrealengine.com/Building_On_Linux

I made the git clone and then the git checkout, then I ran the ./Setup.sh and the ./GenerateProjectFiles.sh and finally the make command and this is the result. Please let me know what you see that I am doing wrong, or should change.

bash "/home/cscarbone/UnrealEngine/Engine/Build/BatchFiles/Linux/Build.sh" CrashReportClient Linux Shipping
Building CrashReportClient... Using 'git status' to determine working set for adaptive non-unity build. Creating makefile for CrashReportClient (no existing makefile) Performing full C++ include scan (no include cache file) Using clang version '5.0.2' (string), 5 (major), 0 (minor), 2 (patch) Building UnrealHeaderTool... Using 'git status' to determine working set for adaptive non-unity build. Creating makefile for UnrealHeaderTool (no existing makefile) Using clang version '5.0.2' (string), 5 (major), 0 (minor), 2 (patch) Using bundled libc++ standard C++ library. Using fast way to relink circularly dependent libraries (no FixDeps). Performing 2 actions (8 in parallel) [1/2] Compile Module.UnrealHeaderTool.cpp In file included from /home/cscarbone/UnrealEngine/Engine/Intermediate/Build/Linux/B4D820EA/UnrealHeaderTool/Development/UnrealHeaderTool/Module.UnrealHeaderTool.cpp:2: In file included from /home/cscarbone/UnrealEngine/Engine/Source/Programs/UnrealHeaderTool/Private/BaseParser.cpp:3: In file included from Programs/UnrealHeaderTool/Private/BaseParser.h:5: In file included from Runtime/Core/Public/CoreMinimal.h:117: In file included from Runtime/Core/Public/Internationalization/TextLocalizationManager.h:14: Runtime/Core/Public/Internationalization/LocTesting.h:9:19: error: use of logical '||' with constant operand [-Werror,-Wconstant-logical-operand] static_assert(!(0 || 1 || 0) || !0, "ENABLE_LOC_TESTING can never be enabled in shipping builds"); ^ ~ Runtime/Core/Public/Internationalization/LocTesting.h:9:19: note: use '|' for a bitwise operation static_assert(!(0 || 1 || 0) || !0, "ENABLE_LOC_TESTING can never be enabled in shipping builds"); ^~ | 1 error generated. ERROR: UBT ERROR: Failed to produce item: /home/cscarbone/UnrealEngine/Engine/Binaries/Linux/UnrealHeaderTool Total build time: 5.06 seconds (Local executor: 0.00 seconds) Error: UnrealHeaderTool failed for target 'CrashReportClient' (platform: Linux, module info: /home/cscarbone/UnrealEngine/Engine/Intermediate/Build/Linux/B4D820EA/CrashReportClient/Shipping/CrashReportClient.uhtmanifest, exit code: OtherCompilationError (5)). Makefile:247: recipe for target 'CrashReportClient-Linux-Shipping' failed make: *** [CrashReportClient-Linux-Shipping] Error 5

Product Version: UE 4.18
Tags:
more ▼

asked Nov 25 '18 at 10:00 PM in Linux

avatar image

CSCarbone07
1 1 1

avatar image Acheta Games Nov 26 '18 at 03:05 PM

Are you sure you are building 4.18? Did you checkout the 4.18 branch? Also why not 4.21? it has the clang bundled with it and makes things just easier.

avatar image CSCarbone07 Nov 29 '18 at 02:29 AM

I need 4.18 for the usage of Airsim. I am sure it was 4.18. Thanks

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

1 answer: sort voted first

I solved the problem, by switching the || for | in the Runtime/Core/Public/Internationalization/LocTesting.h as the log suggest.

more ▼

answered Nov 29 '18 at 02:30 AM

avatar image

CSCarbone07
1 1 1

(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