TheBrokenRail
d0c2b98ca6
Some checks failed
minecraft-pi-reborn/pipeline/head There was a failure building this commit
1.3 KiB
1.3 KiB
Building
Build Options
MCPI_BUILD_MODE
arm
: Only Build ARM Componentsnative
: Only Build Native Componentsboth
(Default): Build Both ARM And Native Components For ARM
MCPI_SERVER_MODE
ON
: Enable Server ModeOFF
(Default): Disable Server Mode
MCPI_USE_MEDIA_LAYER_PROXY
ON
: Enable The Media Layer ProxyOFF
(Default): Disable The Media Layer Proxy
Build Dependencies
- Common
- ARM Compiler
- Host Compiler (Clang)
- CMake
- Host Architecture Dependencies
- Client Mode Only
- GLFW
- FreeImage
- Client Mode Only
Runtime Dependencies
- Non-ARM Host Architectures
- QEMU User-Mode Static
- Host Architecture Dependencies
- CLient Mode Only
- OpenGL ES 1.1
- GLFW
- FreeImage
- Zenity
- CLient Mode Only
Two-Step Build
Use this when the host architecture is not ARM.
# Create Build Directory
mkdir build && cd build
# Build ARM Components
mkdir arm && cd arm
cmake -DMCPI_BUILD_MODE=arm ../..
make -j$(nproc) && sudo make install
# Build Native Components
mkdir native && cd native
cmake -DMCPI_BUILD_MODE=native ../..
make -j$(nproc) && sudo make install
One-Step Build
Use this when the host architecture is ARM.
# Create Build Directory
mkdir build && cd build
# Build
cmake ..
make -j$(nproc) && sudo make install