Closed nxjosephofficial closed 6 months ago
I've applied a patch to the glfw
port and now i am able to launch Minecraft 1.20.x with lwjgl3
from main
branch of ports
tree.
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=278014
you need to add ALLOW_NETWORKING_PACKAGES="lwjgl3" into poudriere.conf
@VVD is working (in https://github.com/LWJGL/lwjgl3/issues/421) to allow build without network
Already in ports: https://www.freshports.org/games/lwjgl3. For Minecraft it need https://www.freshports.org/graphics/glfw with patch from https://reviews.freebsd.org/D44490.
Already in ports: https://www.freshports.org/games/lwjgl3
Oh, nice! Can I now remove games/lwjgl3 from my ports overlay?
As you wish…
@VVD ~~pkg-static: lwjgl-2.9.4.20161208 conflicts with lwjgl3-3.3.4.20231218 (installs files into the same place). Problematic file: /usr/local/share/java/classes/lwjgl/lwjgl.jar games/prism-launcher requires both lwjgl2 and lwjgl3 In my games/lwjgl3 I install java classes into /usr/local/share/java/classes/lwjgl3~~ nvm, it was somehow fixed by rebuild
This was fixed in lwjgl3-3.3.4.20231218_1: https://cgit.freebsd.org/ports/commit/games/lwjgl3?id=72a8d5c199fccc5ffb049393c5e8d30b4611681f
Also minecraft throws java.lang.NoSuchMethodError: 'int org.lwjgl.stb.STBImageResize.nstbir_resize_uint8(long, int, int, int, long, int, int, int, int)' so stb is missing or not full (it's not fatal error but can be critical for some games)
I don't see this error. I have only this:
[LWJGL] Loading JNI library: lwjgl_stb
Module: org.lwjgl.stb
Using SharedLibraryLoader...
Found at: /tmp/lwjgl_vvd/3.3.4-snapshot/x64/liblwjgl_stb.so
Loaded from org.lwjgl.librarypath: /tmp/lwjgl_vvd/3.3.4-snapshot/x64/liblwjgl_stb.so
[LWJGL] Loading library: openal
Module: org.lwjgl.openal
libopenal.so not found in org.lwjgl.librarypath=/tmp/lwjgl_vvd/3.3.4-snapshot/x64
libopenal.so not found in java.library.path=/usr/local/lib/lwjgl3
Loaded from system paths: /usr/local/lib/libopenal.so
<log4j:Event logger="com.mojang.text2speech.Narrator" timestamp="1711809903634" level="ERROR" thread="Render thread">
<log4j:Message><![CDATA[Error while loading the narrator]]></log4j:Message>
<log4j:Throwable><![CDATA[com.mojang.text2speech.Narrator$InitializeException: Unsupported platform FreeBSD
at com.mojang.text2speech.Narrator.getNarrator(Narrator.java:44)
at net.minecraft.class_333.<init>(class_333.java:19)
at net.minecraft.class_310.<init>(class_310.java:684)
at net.minecraft.client.main.Main.main(Main.java:223)
at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:470)
at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74)
at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)
]]></log4j:Throwable>
</log4j:Event>
I think this issue can be closed. I decided to restore lwjgl3 port in 52b30f3b7e0681a3d5244dd8a44737741fa874bf until glfw will be fixed in ports tree.
IMHO, better to have glfw with custom patches instead: https://reviews.freebsd.org/D44490
better to have glfw with custom patches instead
Better but I will wait until glfw will be updated or patches will be merged because people may not know about how to apply somewhat patch to somewhat port in /usr/ports
lwjgl3
was building successfully when i was using14.0-RELEASE
, now i am using14.0-STABLE
with poudriere and it fails to build now. There is a lwjgl3 port on main ports branch but I couldn't launch minecraft with it, it threw errors on prism launcher.Click me to see the build log
``` =>> Building games/lwjgl3 build started at Thu Mar 28 20:08:31 +03 2024 port directory: /usr/ports/games/lwjgl3 package name: lwjgl3-3.3.4_snapshot+2 building for: FreeBSD 140x64-default-job-01 14.0-STABLE FreeBSD 14.0-STABLE amd64 maintained by: er2@dismail.de Makefile datestamp: -rw-r--r-- 1 root wheel 1863 Mar 28 16:49 /usr/ports/games/lwjgl3/Makefile Ports top last git commit: 7c384331c Ports top unclean checkout: no Port dir last git commit: 7c384331c Port dir unclean checkout: no Poudriere version: poudriere-git-3.4.1_1 Host OSVERSION: 1400509 Jail OSVERSION: 1400509 Job Id: 01 ---Begin Environment--- SHELL=/bin/sh OSVERSION=1400509 UNAME_v=FreeBSD 14.0-STABLE UNAME_r=14.0-STABLE BLOCKSIZE=K MAIL=/var/mail/root MM_CHARSET=UTF-8 LANG=C.UTF-8 STATUS=1 HOME=/root PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin MAKE_OBJDIR_CHECK_WRITABLE=0 LOCALBASE=/usr/local USER=root POUDRIERE_NAME=poudriere-git LIBEXECPREFIX=/usr/local/libexec/poudriere POUDRIERE_VERSION=3.4.1_1 MASTERMNT=/poudriere/data/.m/140x64-default/ref LC_COLLATE=C POUDRIERE_BUILD_TYPE=bulk PACKAGE_BUILDING=yes SAVED_TERM=st-256color OUTPUT_REDIRECTED_STDERR=4 OUTPUT_REDIRECTED=1 PWD=/poudriere/data/.m/140x64-default/01/.p OUTPUT_REDIRECTED_STDOUT=3 P_PORTS_FEATURES=FLAVORS SUBPACKAGES SELECTED_OPTIONS MASTERNAME=140x64-default SCRIPTPREFIX=/usr/local/share/poudriere SCRIPTNAME=bulk.sh OLDPWD=/poudriere/data/.m/140x64-default/ref/.p/pool POUDRIERE_PKGNAME=poudriere-git-3.4.1_1 SCRIPTPATH=/usr/local/share/poudriere/bulk.sh POUDRIEREPATH=/usr/local/bin/poudriere ---End Environment--- ---Begin Poudriere Port Flags/Env--- PORT_FLAGS= PKGENV= FLAVOR= MAKE_ARGS= ---End Poudriere Port Flags/Env--- ---Begin OPTIONS List--- ===> The following configuration options are available for lwjgl3-3.3.4_snapshot+2: DOCS=on: Build and/or install documentation ===> Use 'make config' to modify these settings ---End OPTIONS List--- --MAINTAINER-- er2@dismail.de --End MAINTAINER-- --CONFIGURE_ARGS-- --End CONFIGURE_ARGS-- --CONFIGURE_ENV-- PKG_CONFIG=pkgconf XDG_DATA_HOME=/wrkdirs/usr/ports/games/lwjgl3/work XDG_CONFIG_HOME=/wrkdirs/usr/ports/games/lwjgl3/work XDG_CACHE_HOME=/wrkdirs/usr/ports/games/lwjgl3/work/.cache HOME=/wrkdirs/usr/ports/games/lwjgl3/work TMPDIR="/tmp" PATH=/wrkdirs/usr/ports/games/lwjgl3/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/games/lwjgl3/work/.pkgconfig:/usr/local/libdata/pkgconfig:/usr/local/share/pkgconfig:/usr/libdata/pkgconfig SHELL=/bin/sh CONFIG_SHELL=/bin/sh --End CONFIGURE_ENV-- --MAKE_ENV-- JAVA8_HOME=/usr/local/openjdk8 JAVA_HOME=/usr/local/openjdk17 XDG_DATA_HOME=/wrkdirs/usr/ports/games/lwjgl3/work XDG_CONFIG_HOME=/wrkdirs/usr/ports/games/lwjgl3/work XDG_CACHE_HOME=/wrkdirs/usr/ports/games/lwjgl3/work/.cache HOME=/wrkdirs/usr/ports/games/lwjgl3/work TMPDIR="/tmp" PATH=/wrkdirs/usr/ports/games/lwjgl3/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/games/lwjgl3/work/.pkgconfig:/usr/local/libdata/pkgconfig:/usr/local/share/pkgconfig:/usr/libdata/pkgconfig MK_DEBUG_FILES=no MK_KERNEL_SYMBOLS=no SHELL=/bin/sh NO_LINT=YES PREFIX=/usr/local LOCALBASE=/usr/local CC="cc" CFLAGS="-O2 -pipe -fstack-protector-strong -fno-strict-aliasing " CPP="cpp" CPPFLAGS="" LDFLAGS=" -fstack-protector-strong " LIBS="" CXX="c++" CXXFLAGS="-O2 -pipe -fstack-protector-strong -fno-strict-aliasing " BSD_INSTALL_PROGRAM="install -s -m 555" BSD_INSTALL_LIB="install -s -m 0644" BSD_INSTALL_SCRIPT="install -m 555" BSD_INSTALL_DATA="install -m 0644" BSD_INSTALL_MAN="install -m 444" --End MAKE_ENV-- --PLIST_SUB-- PORTDOCS="" DOCS="" NO_DOCS="@comment " JAVASHAREDIR="share/java" JAVAJARDIR="share/java/classes" GTK2_VERSION="2.10.0" GTK3_VERSION="3.0.0" GTK4_VERSION="4.0.0" OSREL=14.0 PREFIX=%D LOCALBASE=/usr/local RESETPREFIX=/usr/local LIB32DIR=lib DOCSDIR="share/doc/lwjgl3" EXAMPLESDIR="share/examples/lwjgl3" DATADIR="share/lwjgl3" WWWDIR="www/lwjgl3" ETCDIR="etc/lwjgl3" --End PLIST_SUB-- --SUB_LIST-- DOCS="" NO_DOCS="@comment " JAVASHAREDIR="/usr/local/share/java" JAVAJARDIR="/usr/local/share/java/classes" JAVALIBDIR="/usr/local/share/java/classes" JAVA_VERSION="17+" PREFIX=/usr/local LOCALBASE=/usr/local DATADIR=/usr/local/share/lwjgl3 DOCSDIR=/usr/local/share/doc/lwjgl3 EXAMPLESDIR=/usr/local/share/examples/lwjgl3 WWWDIR=/usr/local/www/lwjgl3 ETCDIR=/usr/local/etc/lwjgl3 --End SUB_LIST-- ---Begin make.conf--- USE_PACKAGE_DEPENDS=yes BATCH=yes WRKDIRPREFIX=/wrkdirs PORTSDIR=/usr/ports PACKAGES=/packages DISTDIR=/distfiles FORCE_PACKAGE=yes PACKAGE_BUILDING=yes PACKAGE_BUILDING_FLAVORS=yes #### Misc Poudriere #### .include "/etc/make.conf.ports_env" GID=0 UID=0 ---End make.conf--- --Resource limits-- cpu time (seconds, -t) unlimited file size (512-blocks, -f) unlimited data seg size (kbytes, -d) 33554432 stack size (kbytes, -s) 524288 core file size (512-blocks, -c) unlimited max memory size (kbytes, -m) unlimited locked memory (kbytes, -l) unlimited max user processes (-u) 18910 open files (-n) 8192 virtual mem size (kbytes, -v) unlimited swap limit (kbytes, -w) unlimited socket buffer size (bytes, -b) unlimited pseudo-terminals (-p) unlimited kqueues (-k) unlimited umtx shared locks (-o) unlimited --End resource limits-- =======================