Private
Public Access
1
0
19
linux
syui edited this page 2026-01-13 10:51:28 +00:00

Linux

https://dev.epicgames.com/documentation/en-us/unreal-engine/linux-development-requirements-for-unreal-engine

手順

clangをwindows上でinstallします。

ue editorを開いてメニューのtool -> c++で何かを作ります。すると、.slnがproject rootにできます。できなければ、.uprojectを右クリックで.slnを作ります。

epic launcherでue installerのoption:linuxを再び有効にします。

.slnを開いてbuildにlinuxを選択し、右バーのMyProject(Airse)を右クリックでbuildします。pluginなどが対応していないときは.uprojectを開いてfalseに変更します。対応している場合もbuild errになることがあります。

false plugin

  • false: dragonik, worldscape

Airse.uproject

{
	"Name": "DragonIKPlugin",
	"Enabled": true,
	"PlatformAllowList": [
		"Win64",
		"IOS",
		"Mac"
	],
	"MarketplaceURL": "com.epicgames.launcher://ue/marketplace/content/3f3985e9eb40414aaabf645791fa4916"
}

dragonikが動きませんので、専用の設定をBP_Dragonに書きます。

https://blueprintue.com/blueprint/1iehm6_9/

次に、cookがなぜか./Config/Windows/を優先します。worldscapeを削除したLinux専用のmapを使うことができません。

  1. ./Config/Windows/WindowsEngine.iniにあるGameDefaultMapを削除
  2. ./Config/DefaultEngine.iniにあるGameDefaultMapを削除
[/Script/EngineSettings.GameMapsSettings]
; GameDefaultMap=/Game/Syui/Airse/World/LVL_Earth_Win

buildは、pwshから実行します。

$ ssh "$host" "& \"${ue_root}/Engine/Build/BatchFiles/RunUAT.bat\" BuildCookRun \
        -project=\"${project_dir}/Airse.uproject\" \
        -platform=Linux \
        -clientconfig=Shipping \
        -build \
        -cook \
        -stage \
        -pak \
        -unrealexe=\"${ue_root}/Engine/Binaries/Win64/UnrealEditor-Cmd.exe\" \
        -map=\"/Game/Syui/Airse/World/LVL_Earth_IOS.LVL_Earth_IOS\" "