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"

Can't install UE4 on linux

After running ./Setup.sh it seemed at first that installation ran smoothly but in the last line it said:

 If you don't see SUCCESS message in the end, then building did not finish properly.
 In that case, take a look into /home/tom/UnrealEngine/Engine/Build/BatchFiles/Linux/BuildThirdParty.log for details.

And it didn't have that SUCCESS message in the end. Though I did still try to run ./GenerateProjectFiles.sh after this but it didn't go far before it cut off. So i looked what was said in BuildThirdParty.log :

 building hlslcc
 + cd Source/ThirdParty/hlslcc
 + P4Open hlslcc/lib/Linux/x86_64-unknown-linux-gnu/libhlslcc.a
 + for file in '$@'
 + '[' '!' -e hlslcc/lib/Linux/x86_64-unknown-linux-gnu/libhlslcc.a ']'
 + '[' -w hlslcc/lib/Linux/x86_64-unknown-linux-gnu/libhlslcc.a ']'
 + return
 + cd hlslcc/projects/Linux
 + set +e
 ++ which clang
 + CLANG_TO_USE=
 + set -e
 + '[' '!' -f '' ']'
 + CLANG_TO_USE=clang-3.5
 + set +e
 ++ which clang++
 + CLANGXX_TO_USE=
 + set -e
 + '[' '!' -f '' ']'
 + CLANGXX_TO_USE=clang++-3.5
 + make -j4 CC=clang-3.5 CXX=clang++-3.5 clean
 rm -f ../../src/hlslcc_lib/ir_basic_block.o ../../src/hlslcc_lib/ir_expression_flattening.o ../../src/hlslcc_lib/opt_copy_propagation_elements.o ../../src/hlslcc_lib/opt_dead_code.o ../../src/hlslcc_lib/ir_constant_expression.o ../../src/hlslcc_lib/loop_analysis.o ../../src/hlslcc_lib/opt_constant_propagation.o ../../src/hlslcc_lib/strtod.o ../../src/hlslcc_lib/loop_unroll.o ../../src/hlslcc_lib/ir_function_detect_recursion.o ../../src/hlslcc_lib/lower_variable_index_to_cond_assign.o ../../src/hlslcc_lib/opt_noop_swizzle.o ../../src/hlslcc_lib/ir_print_visitor.o ../../src/hlslcc_lib/lower_noise.o ../../src/hlslcc_lib/glsl_types.o ../../src/hlslcc_lib/lower_instructions.o ../../src/hlslcc_lib/lower_mat_op_to_vec.o ../../src/hlslcc_lib/lower_vec_index_to_swizzle.o ../../src/hlslcc_lib/lower_if_to_cond_assign.o ../../src/hlslcc_lib/ast_to_hir.o ../../src/hlslcc_lib/hlslcc.o ../../src/hlslcc_lib/ir_clone.o ../../src/hlslcc_lib/hlsl_lexer.o ../../src/hlslcc_lib/lower_jumps.o ../../src/hlslcc_lib/glcpp-parse.o ../../src/hlslcc_lib/ir_function.o ../../src/hlslcc_lib/glsl_parser_extras.o ../../src/hlslcc_lib/lower_vec_index_to_cond_assign.o ../../src/hlslcc_lib/ShaderCompilerCommon.o ../../src/hlslcc_lib/hash_table.o ../../src/hlslcc_lib/glcpp-lex.o ../../src/hlslcc_lib/ir_hierarchical_visitor.o ../../src/hlslcc_lib/opt_redundant_jumps.o ../../src/hlslcc_lib/opt_tree_grafting.o ../../src/hlslcc_lib/hlsl_parser.o ../../src/hlslcc_lib/opt_discard_simplification.o ../../src/hlslcc_lib/ir.o ../../src/hlslcc_lib/opt_copy_propagation.o ../../src/hlslcc_lib/ast_type.o ../../src/hlslcc_lib/lower_output_reads.o ../../src/hlslcc_lib/PackUniformBuffers.o ../../src/hlslcc_lib/opt_array_splitting.o ../../src/hlslcc_lib/ir_variable_refcount.o ../../src/hlslcc_lib/ir_rvalue_visitor.o ../../src/hlslcc_lib/symbol_table.o ../../src/hlslcc_lib/opt_function_inlining.o ../../src/hlslcc_lib/ir_import_prototypes.o ../../src/hlslcc_lib/builtin_stubs.o ../../src/hlslcc_lib/ir_track_image_access.o ../../src/hlslcc_lib/glsl_symbol_table.o ../../src/hlslcc_lib/loop_controls.o ../../src/hlslcc_lib/lower_clip_distance.o ../../src/hlslcc_lib/hir_field_selection.o ../../src/hlslcc_lib/opt_if_simplification.o ../../src/hlslcc_lib/pp.o ../../src/hlslcc_lib/opt_constant_variable.o ../../src/hlslcc_lib/opt_swizzle_swizzle.o ../../src/hlslcc_lib/opt_dead_code_local.o ../../src/hlslcc_lib/ralloc.o ../../src/hlslcc_lib/ast_function.o ../../src/hlslcc_lib/opt_algebraic.o ../../src/hlslcc_lib/ast_expr.o ../../src/hlslcc_lib/opt_constant_folding.o ../../src/hlslcc_lib/opt_structure_splitting.o ../../src/hlslcc_lib/ir_unused_structs.o ../../src/hlslcc_lib/opt_dead_functions.o ../../src/hlslcc_lib/ir_hv_accept.o ../../src/hlslcc_lib/lower_vector.o ../../src/hlslcc_lib/ir_function_can_inline.o ../../src/hlslcc_lib/OptValueNumbering.o ../../src/hlslcc_lib/ir_validate.o ../../src/hlslcc_lib/IRDump.o ../../src/hlslcc_lib/lower_texture_projection.o ../../src/hlslcc_lib/lower_discard.o ../../src/hlslcc_exe/main.o ../../lib/Linux/x86_64-unknown-linux-gnu/libhlslcc.a ../../bin/Linux/hlslcc_64
 + make -j4 CC=clang-3.5 CXX=clang++-3.5
 clang++-3.5 -fPIC -Wno-switch -Wno-unused-value -I../../src/hlslcc_lib -fvisibility=hidden -DNDEBUG -g -O2 -std=c++11 -o ../../src/hlslcc_lib/ir_basic_block.o -c ../../src/hlslcc_lib/ir_basic_block.cpp
 clang++-3.5 -fPIC -Wno-switch -Wno-unused-value -I../../src/hlslcc_lib -fvisibility=hidden -DNDEBUG -g -O2 -std=c++11 -o ../../src/hlslcc_lib/ir_expression_flattening.o -c ../../src/hlslcc_lib/ir_expression_flattening.cpp
 make: clang++-3.5: Command not found
 clang++-3.5 -fPIC -Wno-switch -Wno-unused-value -I../../src/hlslcc_lib -fvisibility=hidden -DNDEBUG -g -O2 -std=c++11 -o ../../src/hlslcc_lib/opt_copy_propagation_elements.o -c ../../src/hlslcc_lib/opt_copy_propagation_elements.cpp
 make: clang++-3.5: Command not found
 Makefile:43: recipe for target '../../src/hlslcc_lib/ir_basic_block.o' failed
 make: clang++-3.5: Command not found
 make: *** [../../src/hlslcc_lib/ir_basic_block.o] Error 127
 make: *** Waiting for unfinished jobs....
 Makefile:43: recipe for target '../../src/hlslcc_lib/ir_expression_flattening.o' failed
 make: *** [../../src/hlslcc_lib/ir_expression_flattening.o] Error 127
 Makefile:43: recipe for target '../../src/hlslcc_lib/opt_copy_propagation_elements.o' failed
 make: *** [../../src/hlslcc_lib/opt_copy_propagation_elements.o] Error 127
 

I've just recently installed Ubuntu 16.04 and I'm not too familiar with the command line, so this doesn't make any sense to me at all.

And I have tried to run ./Setup.sh again, remove all files, redownload them and run ./Setup.sh again without any succession.

Specs: CPU: AMD A10-5800K GPU: Nvidia GeForce GTX 660 8gb ram

I didn't find anyone having this same problem on the forums, but I sincerely apologise if this question has already been answered before.

Product Version: UE 4.12
Tags:
more ▼

asked Jun 23 '16 at 11:20 PM in Installation & Setup

avatar image

TomOskar
6 1 2 4

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

1 answer: sort voted first

Hey TomOskar-

Based on the error message it appears you're missing clang. You should be able to do a $ sudo apt-get install clang and then run ./Setup.sh again. You can find more information and steps for building the engine on Linux here: https://wiki.unrealengine.com/Building_On_Linux

Cheers

Doug Wilson

more ▼

answered Jun 24 '16 at 01:54 PM

avatar image TomOskar Jun 24 '16 at 03:09 PM

Yep, that was it. Thank you very much!

avatar image Ethergeist Oct 31 '16 at 12:24 AM

Thanks much - Just downloaded 4.13 source via git and had the same issue - it is odd, because Setup.sh installed some clang packages for ubuntu, but I still had the error until I installed clang with apt.

In case anyone else has the same issue, I am using Ubuntu 16.04 LTS

(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