git clone https://github.com/crownengine/crown.git
Install Android NDK (>= r21e LTS):
Set NDK path and ABI version:
export ANDROID_NDK_ROOT=<android_ndk>
export ANDROID_NDK_ABI=23
Install LuaJIT dependencies:
sudo apt-get install libc6-dev-i386
Install emsdk:
Set emsdk path:
export EMSCRIPTEN=<emsdk>/upstream/emscripten
Install dependencies:
sudo apt install build-essential mesa-common-dev libgl1-mesa-dev \
libpulse-dev libxrandr-dev libdecor-0-dev libc6-dev-i386 libgtk-3-dev
sudo add-apt-repository ppa:vala-team
sudo apt install valac libgee-0.8-dev
# Optionally, to build docs:
sudo apt-get install python3-sphinx
Note
If you encounter any errors while adding the Vala PPA, please update
ca-certificates first:
sudo apt update
sudo apt install ca-certificates
Install MSYS2:
Add MSYS2 bin to your PATH; for a default install this would be:
C:\msys64\usr\bin
Open MSYS2 MINGW64 shell and install dependencies:
pacman -Sy make mingw-w64-x86_64-gcc mingw-w64-x86_64-pkgconf \
mingw-w64-x86_64-gtk3 mingw-w64-x86_64-sassc \
mingw-w64-x86_64-vala mingw-w64-x86_64-libgee
# Optionally, to build docs:
pacman -Sy mingw-w64-x86_64-python-sphinx
Install Visual Studio Code:
Install C/C++ extension for VS Code:
Install Visual Studio 2022:
If you want to build tools, install Windows (MSYS2).
make android-arm-release MAKE_JOBS=4
make wasm-release MAKE_JOBS=4
make tools-linux-release64 MAKE_JOBS=4
Open MSYS2 MINGW64 shell:
export MINGW=/mingw64
make tools-mingw-release64 MAKE_JOBS=4
Open Visual Studio Code Shell:
$env:MINGW = "C:\\msys64\\mingw64"
make tools-mingw-release64 MAKE_JOBS=4
Open Visual Studio 2022 Command Prompt:
make tools-windows-release64 MAKE_JOBS=4
To build tools, open a MSYS2 MINGW64 shell:
export MINGW=/mingw64
make tools-mingw-release64 MAKE_JOBS=4