1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

UE4をCLIからビルドする(Mac向け)

Posted at

CLIからビルドしたい

https://api.unrealengine.com/JPN/Programming/Development/BuildingUnrealEngine/index.html
ドキュメントにはGUIでビルドする方法しか記載されてないが、
カスタムエディタのビルドの自動化とか考えるとCLIからビルドしたかった。

そもそもUE4をxcodeでビルドしている資料自体、あんまりないかも?

事前準備

GitHubからUE4のプロジェクトをcloneしてくるまでは済ませておく

手順

  1. git cloneしたUE4のプロジェクトまで移動する
    $ cd ${MyUE4Project}
  2. Setup.commandとGenerateProjectFiles.commandを実行する
    $ sh Setup.command
    $ sh GenerateProjectFiles.command
  3. UE4.xcworkspaceをビルドする
    $ xcodebuild -workspace UE4.xcworkspace -scheme ShaderCompileWorker -sdk macosx -configuration "Development Editor" build
    $ xcodebuild -workspace UE4.xcworkspace -scheme UE4 -sdk macosx -configuration "Development Editor" build
  4. ビルド後、Engine/Binaries/Mac/UE4Editor.appを開いて動作確認ができればOK

余談

configurationの指定がDevelopmentだとUE4Game.app(プロジェクト本体)がビルドされる。
Development Editor にすることでエディタのビルドが行われる。
(こんな単純なことに8h以上かけてしまった...)

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?