This repository uses LWJG from #431.
Thanks to their work!
with the build versions of er2off used here
You will now be able to run Minecraft 1.20.2 on FreeBSD.
And Minecraft will be able to recognize multiple cpu cores!(for me, only 1.20.2 now, you maybe want Check the link above)
We will mostly be following the OpenBSD build instructions at https://prismlauncher.org/wiki/development/build-instructions/#openbsd.
- Install Dependencies:
sudo pkg install qt5 qt6 cmake kf5-cmake-extra-modules openjdk8 openjdk17 lwjgl glfw git
- Clone the repo:
git clone --recursive https://github.com/PrismLauncher/PrismLauncher.git
andcd PrismLauncher
- Configure environment:
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="/usr/local" -DCMAKE_PREFIX_PATH=/usr/local/lib/qt5/cmake -DENABLE_LTO=ON
- Actually build Prism Launcher:
cd build
andsudo make -j$(nproc) install
For FreeBSD 13.2+ or other version:
Before we get started, you might want to check this.
-
Download lwjgl3.tar.gz and extract it somewhere.
-
Go to the folder you extracted,
make install clean
-
If the build succeeds, you should be able to find the built files in the following path:
/usr/local/lib/lwjgl3
/usr/local/share/java/classes/lwjgl3
This should be correct for FreeBSD 13.2, But if not, open
minecraft-runtime
in a text editor, modify it:LWJGL_JLP_OVRD
LWJGL_OVRD
LWJGL_OGL_OVRD
LWJGL_OAL_OVRD
LWJGL_GLFW_OVRD
LWJGL_STB_OVRD
LWJGL_JEM_OVRD
- Go to Settings (either Global or Instance), then go in the Java section.
- Set Java Runtime/Tick and set Java Installation to the location of the minecraft-runtime script.
- Click Test, if you did everything correctly, it should say that the Test succeeded.