2ee5c6b2a1
Signed-off-by: Sergio <42090377+SSUPII@users.noreply.github.com>
1.7 KiB
1.7 KiB
Build Instructions
Full build instructions will be available on the website.
If you would like to contribute or fix an issue with the Build instructions you will be able to do so here.
Getting the source
Clone the source code using git, and grab all the submodules. This is generic for all platforms you want to build on.
git clone --recursive https://github.com/PlaceholderMC/PrismLauncher
cd PrismLauncher
Linux
This guide will mostly mention dependant packages by their Debian naming.
Dependencies
- A C++ compiler capable of building C++17 code.
- Qt Development tools 5.12 or newer (on Debian 11 or Debian-based distributions,
qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools libqt5core5a libqt5network5 libqt5gui5
). cmake
3.15 or newer.extra-cmake-modules
.- zlib (
zlib1g-dev
on Debian 11 or Debian-based distributions). - Java Development Kit (Java JDK) (
openjdk-17-jdk
on Debian 11 or Debian-based distributions). - Mesa GL headers (
libgl1-mesa-dev
on Debian 11 or Debian-based distributions). - (Optional)
scdoc
to generate man pages.
Compiling
Building and installing on the system
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="/usr" -DENABLE_LTO=ON
cmake --build build -j$(nproc)
sudo cmake --install build
Building a portable binary
cmake -S . -B build -DCMAKE_INSTALL_PREFIX=install
cmake --build build -j$(nproc)
cmake --install build
cmake --install build --component portable