[Ubuntu] How to specify clang version due to cannot get UE4.19 compiled with clang 6.0.0
Generated Unreal Project by UE4.19 under Ubuntu. However, the project (not the editor) cannot be compiled with clang 6.0.0 under CodeLite. Here, as a new in UE4 under Linux, I'd like to get your shares about working it out. Thanks in advanced
$ clang --version clang version 6.0.0-1ubuntu2 (tags/RELEASE_600/final) Target: x86_64-pc-linux-gnu Thread model: posix InstalledDir: /usr/bin
Distributor ID: Ubuntu Description: Ubuntu 18.04 LTS Release: 18.04 Codename: bionic
asked Jul 02 '18 at 03:20 PM in Linux
First remove all clang versions.
Now its time to figure out which version of clang do you need.
But according to Building on Linux:Clang documentation by Unreal, you have to know what version of clang you need to install, apparently dependent on your OS distribution.
For example if you have Ubuntu 16.04 or newer, use clang-3.8. Else using 4.0.1 should be ok imo
Now time to install and configure clang. For this post, I am assuming that you use 16.04+. So I'll focus on clang-3.8 Change your version accordingly
This will install clang-3.8 on your system. If you want any other versions, depending on your distro,
So if you installed clang-3.8, we still need to configure it as the default clang provider.
Replace 3.8 with your version of clang, if required. Also if you installed 4.0.1 instead of 4.0, I mean 3 digits instead of 2, then make sure to use
First comes clang++
Now do the same thing with clang
Now check which version of clang is installed
This should fix the problem for clang and now you should be able to compile UE4.
answered Sep 03 '18 at 12:07 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here