Search code examples
unreal-engine4

Compile Unreal Lightmass. Error with Unreal 4.24 build from source on Linux


I get the following error when I am trying to build a project in Unreal, that I have included some lightning. "Lighting Build Failed. Swarm failed to Kick off. Compile Unreal Lightmass".

I have build Unreal Engine 4.24.1 from source on Linux with the setup instructions from the documentations.

Any ideas how to proceed. How would I go and compile Unreal Lightmass for the Engine?


Solution

  • After some sparse search here and there, I was able to solve this. To compile the UnrealLightmass there is a build shell script in the directory

    UnrealEngine_Repo_dir/Engine/Build/BatchFiles/Linux
    

    You need to run the ./Build.sh with the following input

    ./UnrealEngine_Repo_dir/Engine/Build/BatchFiles/Linux/Build.sh UnrealLightmass Linux Development -verbose
    

    This should start compilation and build the UnrealLightmass. This probably is the way to build the remaining programs that the Unreal Engine would complain that you haven't build. Any program that is under the directory

    /UnrealEngine_Repo_dir/Engine/Source/Programs
    

    can be build with the above command. One example would be the ShaderCompileWorker.

    Hope this helps.