Open justdie386 opened 11 months ago
Try disabling the warning-to-error conversion for that specific warning
Im rather unsure how to do that... I don't have much experience tweaking compilers
yeah i’ve been trying to figure out how to disable this goddamn error for the past 2 hours and at this point i think it’s probably faster to fix the code than to deal with cmake
No idea, but hit me up if you figure it out
Any fixes?
I think I found a fix, we need somebody to go onto a vm, compile it on 13.2 FreeBSD, and then upload a precompiled version of lwjgl3, and then we need put the libraries contents into the correct directories for Minecraft to load.
There used to be a precompiled version on this repo but recently the creator changed it all and it’s gone, the precompiled used to work perfectly for me
If we go into older versions of the repo we could find it but I’m not on FreeBSD for now so I’m not gonna bother
I fixed it, do you want a compilied version with the jars and libs that you can copy and paste into those paths, that the owner told us to check, when our build was completed? It works for me, FreeBSD 14.0. Let me know
I used this repo:
https://github.com/LWJGL/lwjgl3
And then I copied the cmake file from the current repo into that repo, I then used the cd command to the second repo, and used the following command:
/usr/local/bin/cmake -E env JAVACMD=/usr/local/openjdk17/bin/java JAVA8_HOME=/usr/local/openjdk8 ant all && /usr/local/bin/cmake -E env JAVACMD=/usr/local/openjdk17/bin/java JAVA8_HOME=/usr/local/openjdk8 ant release -Dbuild.offline=yes -Djavadoc.skip=yes
Then I made two files on my desktop:
Jars -- Inlcuding all the jars in the Release which was in the bin folder (in the repo I used to compile lwjgl3), then I did a search for .jars and copied and pasted all of them there
Libs -- I went into the repo I made my build, and typed .so and copied all of the files to the libs folder
Second Step:
For our jars I cd-ed to the directory and did this command:
sudo cp -r * /usr/local/share/java/classes/lwjgl3
For our libs I went into the directory and did this:
sudo cp -r * /usr/local/lib/lwjgl3
Then I used my Minecraft launcher, and it worked!
Hope this helps you out.
There used to be a precompiled version on this repo but recently the creator changed it all and it’s gone, the precompiled used to work perfectly for me
I added a link to a older commit of the repo to the README file, try using that one instead
I've just corrected this missing function realpath() compilation error on freebsd in tinyfiledialogs v3.17.4 Please update your version of LWJGL with latest tinyfiledialogs from https://sourceforge.net/projects/tinyfiledialogs
@Gamer100Dev's solution worked for me.
Yes, I'm on FreeBSD 14.0 RELEASE
To be clearer, git clone https://github.com/LWGJL/lwjgl3.
Download https://github.com/pog5/minecraft-freebsd/blob/main/lwjgl3.tar.gz
Extract the tar.gz file
Copy the "Makefile" from the extracted tar.gz file into where you cloned lwjgl3; overwriting the original
Run this command inside of the lwjgl3 dir that you cloned:
/usr/local/bin/cmake -E env JAVACMD=/usr/local/openjdk17/bin/java JAVA8_HOME=/usr/local/openjdk8 ant all && /usr/local/bin/cmake -E env JAVACMD=/usr/local/openjdk17/bin/java JAVA8_HOME=/usr/local/openjdk8 ant release -Dbuild.offline=yes -Djavadoc.skip=yes
Run: # mkdir /usr/local/share/java/classes/lwjgl3 /usr/local/lib/lwjgl3
Run: # find /PATH/TO/GIT/lwjgl3 -name "*.so" -exec cp {} /usr/local/lib/lwjgl3/ \;
Run: find /PATH/TO/GIT/lwjgl3 -name "*.jar" -exec cp {} /usr/local/share/java/classes/lwjgl3/ \;
Install minecraft-client & openjdk17-jre:
# pkg install minecraft-client openjdk17-jre
Overwrite the original minecraft-runtime file with the one from the extracted tar:
# cp /PATH/TO/EXTRACTED/TAR/lwjgl3/minecraft-runtime /usr/loca/share/minecraft-client/minecraft-runtime
In PrismLauncher, go to Settings
> Java
and set "Java Path" to:
/usr/local/share/minecraft-client/minecraft-runtime
Use games/lwjgl3 from ports.