Skip to content

Playfield Engine のビルド方法

Windows (Visual Studio)

前提

  • Visual Studio 2022 Community がインストールされていること (C++, CMake オプションが必須)

手順

  • Playfield Engine のソースコードをダウンロードして展開する
  • ソースコードフォルダをVisual Studioで開く
  • MSVC ターゲットを選択する
  • ビルドして実行する

Windows (WSL2)

前提

  • WSL2 環境がインストールされていること
  • UbuntuDebian の WSL2 環境であること

手順

WSL2 のターミナルを起動し、Playfield Engine ディレクトリに入り、次のコマンドをタイプする。

sudo apt-get install mingw-w64
git clone --recursive https://github.com/awemorris/PlayfieldEngine.git
cd PlayfieldEngine
cmake --preset windows-x86_64
cmake --build --preset windows-x86_64

Linux

前提

Debian, Ubuntu, および Raspberry Pi OS:

sudo apt-get install build-essential libx11-dev libxpm-dev mesa-common-dev libasound2-dev

RedHat, Rocky Linux, Fedora, その他:

sudo dnf install patch libX11-devel libXpm-devel alsa-lib-devel mesa-libGL-devel

手順

ターミナルを開いて次のコマンドをタイプする。

sudo apt-get install mingw-w64
git clone --recursive https://github.com/awemorris/PlayfieldEngine.git
cd PlayfieldEngine
cmake --preset linux
cmake --build --preset linux

macOS

前提

  • Intel および Apple Silicon の Mac
  • macOS 15 がインストールされていること
  • Xcode 16 がインストールされていること

手順

ターミナルを開いて次のコマンドをタイプする。

sudo apt-get install mingw-w64
git clone --recursive https://github.com/awemorris/PlayfieldEngine.git
cd PlayfieldEngine
cmake --preset macos
cmake --build --preset macos

iOS

Prerequisite

  • Intel および Apple Silicon の Mac
  • macOS 15 がインストールされていること
  • Xcode 16 がインストールされていること

手順

  • あらかじめアセットをassets.pak にまとめる
  • 配布バイナリの misc/ios/resources フォルダに assets.pak をコピーする
  • 配布バイナリの misc/ios フォルダを Xcode で開く

Android

前提

  • 以下のいずれかのマシン
    • Windows 11
    • macOS 15
    • Linux
  • Android Studio

手順

  • 配布バイナリの misc/android/app/src/main/assets フォルダにアセットファイルすべてをコピーする
  • 配布バイナリの misc/android フォルダを Android Studio で開く

FreeBSD

手順

ターミナルで次のコマンドをタイプする。

sudo apt-get install mingw-w64
git clone --recursive https://github.com/awemorris/PlayfieldEngine.git
cd PlayfieldEngine
cmake --preset freebsd
cmake --build --preset freebsd