I’m having an issue with Unreal Engine packaging a project with RunUAT.sh
on Linux with docker. When I run the following command it seems to still try and cook the project as LinuxEditor
profile when we want just Linux
(runtime game no editor). This causes the cook to fail. The entire log is attatched.
logs.txt (79.8 KB)
/home/ue4/UnrealEngine/Engine/Build/BatchFiles/RunUAT.sh \
-ScriptsForProject="/tmp/project/$PROJECT_NAME.uproject" \
BuildCookRun -nocompileeditor -skipbuildeditor -installed -nop4 \
-project=/tmp/project/$PROJECT_NAME.uproject -cook \
-stage -archive -archivedirectory="/tmp/project/dist" -clean -package \
-unrealexe="/home/ue4/UnrealEngine/Engine/Binaries/Linux/UnrealEditor" \
-compressed -ddc=InstalledDerivedDataBackendGraph -pak -prereqs \
-nodebuginfo -targetplatform=Linux -build \
-target=$PROJECT_NAME -clientconfig=Shipping -utf8output
Here are the logs from compiling
#11 0.529
#11 0.529 Running AutomationTool...
#11 0.529
#11 0.762 Fixing inconsistent case in filenames.
#11 0.763 Setting up Mono
#11 0.765 Setting up bundled DotNet SDK
#11 0.765 Start UAT Interactively: ./AutomationTool -ScriptsForProject=/tmp/project/Stageglass.uproject BuildCookRun -nocompileeditor -skipbuildeditor -installed -nop4 -project=/tmp/project/Stageglass.uproject -cook -stage -archive -archivedirectory=/tmp/project/dist -clean -package -unrealexe=/home/ue4/UnrealEngine/Engine/Binaries/Linux/UnrealEditor -compressed -ddc=InstalledDerivedDataBackendGraph -pak -prereqs -nodebuginfo -targetplatform=Linux -build -target=Stageglass -clientconfig=Shipping -utf8output
#11 1.018 Parsing command line: -ScriptsForProject=/tmp/project/Stageglass.uproject BuildCookRun -nocompileeditor -skipbuildeditor -installed -nop4 -project=/tmp/project/Stageglass.uproject -cook -stage -archive -archivedirectory=/tmp/project/dist -clean -package -unrealexe=/home/ue4/UnrealEngine/Engine/Binaries/Linux/UnrealEditor -compressed -ddc=InstalledDerivedDataBackendGraph -pak -prereqs -nodebuginfo -targetplatform=Linux -build -target=Stageglass -clientconfig=Shipping -utf8output
#11 1.228 Log location: /home/ue4/Library/Logs/Unreal Engine/LocalBuildLogs/Log.txt
#11 1.360 Setting up ProjectParams for /tmp/project/Stageglass.uproject
#11 2.722 ********** BUILD COMMAND STARTED **********
#11 2.733 Running: /home/ue4/UnrealEngine/Engine/Binaries/DotNET/UnrealBuildTool/UnrealBuildTool Stageglass Linux Shipping -Project=/tmp/project/Stageglass.uproject -Clean -NoHotReload /tmp/project/Stageglass.uproject -NoUBTMakefiles -remoteini="/tmp/project" -skipdeploy -nobuilduht -log="/home/ue4/Library/Logs/Unreal Engine/LocalBuildLogs/UBT-Stageglass-Linux-Shipping.txt"
#11 2.986 Log file: /home/ue4/Library/Logs/Unreal Engine/LocalBuildLogs/UBT-Stageglass-Linux-Shipping.txt
#11 3.031 Cleaning Stageglass binaries...
#11 4.476 Took 1.7433664000000002s to run UnrealBuildTool, ExitCode=0
#11 4.478 Running: /home/ue4/UnrealEngine/Engine/Binaries/DotNET/UnrealBuildTool/UnrealBuildTool Stageglass Linux Shipping -Project=/tmp/project/Stageglass.uproject /tmp/project/Stageglass.uproject -NoUBTMakefiles -remoteini="/tmp/project" -skipdeploy -Manifest=/tmp/project/Intermediate/Build/Manifest.xml -NoHotReload -log="/home/ue4/Library/Logs/Unreal Engine/LocalBuildLogs/UBT-Stageglass-Linux-Shipping_2.txt"
#11 4.708 Log file: /home/ue4/Library/Logs/Unreal Engine/LocalBuildLogs/UBT-Stageglass-Linux-Shipping_2.txt
#11 5.875 Parsing headers for Stageglass
#11 5.894 Running UnrealHeaderTool "/tmp/project/Stageglass.uproject" "/tmp/project/Intermediate/Build/Linux/B4D820EA/Stageglass/Shipping/Stageglass.uhtmanifest" -LogCmds="loginit warning, logexit warning, logdatabase error" -Unattended -WarningsAsErrors -abslog="/home/ue4/Library/Logs/Unreal Engine/LocalBuildLogs/UHT-Stageglass-Linux-Shipping_2.txt" -installed
#11 7.066 Reflection code generated for Stageglass in 1.1713256 seconds
#11 7.215 Writing manifest to /tmp/project/Intermediate/Build/Manifest.xml
#11 7.258 Building Stageglass...
#11 7.260 Determining max actions to execute in parallel (16 physical cores, 16 logical cores)
#11 7.261 Executing up to 16 processes, one per physical core
#11 7.262 Requested 1.5 GB free memory per action, 6.04 GB available: limiting max parallel actions to 4
#11 7.265 Building 6 actions with 4 processes...
#11 25.91 [1/6] Compile SharedPCH.Engine.ShadowErrors.h
#11 32.17 [2/6] Compile Stageglass.cpp
#11 33.48 [3/6] Compile Module.StageglassArchvizGameplay.gen.cpp
#11 39.97 [4/6] Compile Module.StageglassArchvizGameplay.cpp
#11 47.16 [5/6] Link (lld) Stageglass-Linux-Shipping
#11 47.42 [6/6] WriteMetadata Stageglass-Linux-Shipping.target
#11 47.42 Total time in Parallel executor: 40.16 seconds
#11 47.44 Total execution time: 42.88 seconds
#11 47.46 Took 42.9791392s to run UnrealBuildTool, ExitCode=0
#11 47.48 ********** BUILD COMMAND COMPLETED **********
#11 47.49 ********** COOK COMMAND STARTED **********
#11 47.49 Cleaning cooked data.
#11 47.50 Running UnrealEditor Cook for project /tmp/project/Stageglass.uproject
#11 47.50 Commandlet log file is /home/ue4/UnrealEngine/Engine/Programs/AutomationTool/Saved/Cook-2022.09.23-16.58.18.txt
#11 47.50 Running: /home/ue4/UnrealEngine/Engine/Binaries/Linux/UnrealEditor /tmp/project/Stageglass.uproject -run=Cook -TargetPlatform=Linux -fileopenlog -ddc=InstalledDerivedDataBackendGraph -unversioned -abslog=/home/ue4/UnrealEngine/Engine/Programs/AutomationTool/Saved/Cook-2022.09.23-16.58.18.txt -stdout -CrashForUAT -unattended -NoLogTimes -UTF8Output
#11 48.68 - Existing per-process limit (soft=1048576, hard=1048576) is enough for us (need only 1048576)
#11 48.68 Increasing per-process limit of core file size to infinity.
#11 48.68 LogConsoleResponse: Display: Failed to find resolution value strings in scalability ini. Falling back to default.
#11 48.68 LogConsoleResponse: Display: Failed to find resolution value strings in scalability ini. Falling back to default.
#11 48.68 LogInit: Display: Running engine for game: Stageglass
#11 48.69 LogCsvProfiler: Display: Metadata set : platform="Linux"
#11 48.69 LogCsvProfiler: Display: Metadata set : config="Development"
#11 48.69 LogCsvProfiler: Display: Metadata set : buildversion="++UE5+Release-5.0-CL-19505902"
#11 48.69 LogCsvProfiler: Display: Metadata set : engineversion="5.0.3-19505902+++UE5+Release-5.0"
#11 48.69 LogCsvProfiler: Display: Metadata set : commandline="" /tmp/project/Stageglass.uproject -run=Cook -TargetPlatform=Linux -fileopenlog -ddc=InstalledDerivedDataBackendGraph -unversioned -abslog=/home/ue4/UnrealEngine/Engine/Programs/AutomationTool/Saved/Cook-2022.09.23-16.58.18.txt -stdout -CrashForUAT -unattended -NoLogTimes -UTF8Output""
#11 48.69 LogCsvProfiler: Display: Metadata set : os="Ubuntu 18.04.6 LTS 5.10.16.3-microsoft-standard-WSL2"
#11 48.69 LogCsvProfiler: Display: Metadata set : cpu="GenuineIntel|11th Gen Intel(R) Core(TM) i7-11800H @ 2.30GHz"
#11 48.69 LogCsvProfiler: Display: Metadata set : pgoenabled="0"
#11 48.69 LogCsvProfiler: Display: Metadata set : loginid="-000003e8"
#11 48.69 LogCsvProfiler: Display: Metadata set : llm="0"
Here are the logs from cooking where it fails
#11 55.05 LogCsvProfiler: Display: Metadata set : deviceprofile="LinuxEditor"
#11 56.99 LogCsvProfiler: Display: Metadata set : deviceprofile="LinuxEditor"
#11 56.99 LogMeshReduction: Using QuadricMeshReduction for automatic static mesh reduction
#11 56.99 LogMeshReduction: Using SimplygonMeshReduction for automatic skeletal mesh reduction
#11 56.99 LogMeshReduction: No automatic mesh merging module available
#11 56.99 LogMeshReduction: No distributed automatic mesh merging module available
#11 56.99 LogMeshMerging: No automatic mesh merging module available
#11 56.99 LogMeshMerging: No distributed automatic mesh merging module available
#11 56.99 LogNetVersion: Stageglass 1.0.0, NetCL: 19505902, EngineNetVer: 23, GameNetVer: 0 (Checksum: 1477529408)
#11 56.99 LogSlate: Border
#11 56.99 LogSlate: BreadcrumbButton
#11 56.99 LogSlate: Default
#11 56.99 LogSlate: Icons.Save
#11 56.99 LogSlate: Icons.Toolbar.Settings
#11 56.99 LogSlate: ListView
#11 56.99 LogSlate: SoftwareCursor_CardinalCross
#11 56.99 LogSlate: SoftwareCursor_Grab
#11 56.99 LogSlate: TableView.DarkRow
#11 56.99 LogSlate: TableView.Row
#11 56.99 LogSlate: TreeView
#11 56.99 SourceControl: Source control is disabled
#11 56.99 SourceControl: Source control is disabled
#11 56.99 SourceControl: Source control is disabled
#11 56.99 LogHAL: Linux SourceCodeAccessSettings: VisualStudioCode
#11 56.99 LogNiagaraDebuggerClient: Niagara Debugger Client Initialized | Session: 7F3EEE2914954BF68EF58BA8DF4C689C | Instance: 46429B91011A47798B966659012F4759 (buildkitsandbox-484).
#11 56.99 LogPython: Using Python 3.9.7
#11 56.99 Message dialog closed, result: Ok, title: Message, text: Plugin 'StageglassArchvizGameplay' failed to load because module 'StageglassArchvizGameplay' could not be found. Please ensure the plugin is properly installed, otherwise consider disabling the plugin for this project.
#11 56.99 LogCore: Engine exit requested (reason: EngineExit() was called)