Build, Run, Code & Debug Unreal Engine 4.19 under Ubuntu 18.04

About Building UE4 on Linux
https://wiki.unrealengine.com/Building_On_Linux

About Running UE4 on Linux

  1. Run with UE4 Editor:
  2. Open compiled project with UE4 Editor.
    ///Terminal commands - To open the project with the editor:
~$  //UnrealEngine-4.19/Engine/Binaries/Linux/UE4Editor //CrossPlatformProj/CrossPlatformProj.uproject -run

Note: UE4 Editor and UE4 project could be stored in NTFS (usually used in Win 10), and Ubuntu can mount NTFS easily.

About Coding UE4 on Linux
///Terminal commands - Checking clang status

~$ sudo update-alternatives --config c++ 
checking clang++ version

///Terminal commands - Promotion of Clang 5.0

~$  update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-5.0 100
~$  update-alternatives --install /usr/bin/clang clang /usr/bin/clang-5.0 100

///Terminal commands - Uninstall just clang-6.0

~$ sudo apt-get remove clang-6.0

///Terminal commands - Uninstall clang-6.0 and its dependencies

~$ sudo apt-get remove --auto-remove clang-6.0

///Terminal commands - Purging config /data after the deletion

~$ sudo apt-get purge clang-6.0
~$ sudo apt-get purge --auto-remove clang-6.0

About Compiling & Building UE4 on Linux with CodeLite

  1. Opening the workplace, which almost equals to .sln of Visual Studio, noticing that it may encounter that the recent workplace is not able to open due to unmounted disks. So pls don't forget.
  2. Firstly build the editor, then build the project under Development


    Project: CrossPlatfromProj
Specify clang 501, Settings -> Code Completion -> CTags -> Search Paths -> Suggest

你可能感兴趣的:(Build, Run, Code & Debug Unreal Engine 4.19 under Ubuntu 18.04)