MinecraftForge / ForgeGradle

Minecraft mod development framework used by Forge and FML for the gradle build system
GNU Lesser General Public License v2.1
526 stars 446 forks source link

Can't run "runClient" by gradle on macos #956

Closed hhoao closed 1 month ago

hhoao commented 1 month ago

net.minecraftforge.gradle version [6.0.16,6.2) Java version: 17 os: Apple M3 arch: arm64 forge version: 39.1.2 minecraft version: 1.18.1

clash: [16:10:06] [pool-3-thread-1/DEBUG] [ne.mi.co.tr.CoreModBaseTransformer/COREMOD]: Transforming net/minecraft/world/level/block/LiquidBlock [16:10:06] [pool-3-thread-1/DEBUG] [ne.mi.co.tr.CoreModBaseTransformer/COREMOD]: Transforming net/minecraft/world/level/block/StairBlock [16:10:06] [pool-3-thread-1/DEBUG] [ne.mi.co.tr.CoreModBaseTransformer/COREMOD]: Transforming net/minecraft/world/level/block/FlowerPotBlock [16:10:06] [pool-3-thread-1/DEBUG] [ne.mi.co.tr.CoreModBaseTransformer/COREMOD]: Transforming net/minecraft/world/item/ItemStack [16:10:07] [pool-3-thread-1/DEBUG] [ne.mi.co.tr.CoreModBaseTransformer/COREMOD]: Transforming net/minecraft/world/item/BucketItem [16:10:07] [pool-3-thread-1/DEBUG] [ne.mi.co.tr.CoreModBaseTransformer/COREMOD]: Transforming net/minecraft/world/effect/MobEffectInstance [LWJGL] Failed to load a library. Possible solutions: a) Add the directory that contains the shared library to -Djava.library.path or -Dorg.lwjgl.librarypath. b) Add the JAR that contains the shared library to the classpath. [LWJGL] Enable debug mode with -Dorg.lwjgl.util.Debug=true for better diagnostics. [LWJGL] Enable the SharedLibraryLoader debug mode with -Dorg.lwjgl.util.DebugLoader=true for better diagnostics. Exception in thread "Render thread" java.lang.RuntimeException: java.lang.reflect.InvocationTargetException at MC-BOOTSTRAP/cpw.mods.modlauncher@9.1.3/cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:39) at MC-BOOTSTRAP/cpw.mods.modlauncher@9.1.3/cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:53) at MC-BOOTSTRAP/cpw.mods.modlauncher@9.1.3/cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:71) at MC-BOOTSTRAP/cpw.mods.modlauncher@9.1.3/cpw.mods.modlauncher.Launcher.run(Launcher.java:106) at MC-BOOTSTRAP/cpw.mods.modlauncher@9.1.3/cpw.mods.modlauncher.Launcher.main(Launcher.java:77) at MC-BOOTSTRAP/cpw.mods.modlauncher@9.1.3/cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:26) at MC-BOOTSTRAP/cpw.mods.modlauncher@9.1.3/cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:23) at cpw.mods.bootstraplauncher@1.0.0/cpw.mods.bootstraplauncher.BootstrapLauncher.main(BootstrapLauncher.java:149) Caused by: java.lang.reflect.InvocationTargetException at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:569) at MC-BOOTSTRAP/fmlloader@1.18.1-39.1.2/net.minecraftforge.fml.loading.targets.ForgeClientUserdevLaunchHandler.lambda$launchService$0(ForgeClientUserdevLaunchHandler.java:38) at MC-BOOTSTRAP/cpw.mods.modlauncher@9.1.3/cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) ... 7 more Caused by: java.lang.NoClassDefFoundError: Could not initialize class com.mojang.blaze3d.systems.RenderSystem at TRANSFORMER/minecraft@1.18.1/net.minecraft.SystemReport.setDetail(SystemReport.java:62) at TRANSFORMER/minecraft@1.18.1/net.minecraft.client.Minecraft.fillSystemReport(Minecraft.java:2269) at TRANSFORMER/minecraft@1.18.1/net.minecraft.client.Minecraft.fillReport(Minecraft.java:2262) at TRANSFORMER/minecraft@1.18.1/net.minecraft.client.main.Main.main(Main.java:178) ... 13 more Caused by: java.lang.ExceptionInInitializerError: Exception java.lang.UnsatisfiedLinkError: Failed to locate library: liblwjgl.dylib [in thread "Render thread"] at MC-BOOTSTRAP/org.lwjgl/org.lwjgl.system.Library.loadSystem(Library.java:162) at MC-BOOTSTRAP/org.lwjgl/org.lwjgl.system.Library.loadSystem(Library.java:62) at MC-BOOTSTRAP/org.lwjgl/org.lwjgl.system.Library.(Library.java:50) at MC-BOOTSTRAP/org.lwjgl/org.lwjgl.system.MemoryUtil.(MemoryUtil.java:97) at TRANSFORMER/minecraft@1.18.1/com.mojang.blaze3d.platform.MemoryTracker.(MemoryTracker.java:11) at TRANSFORMER/minecraft@1.18.1/com.mojang.blaze3d.vertex.BufferBuilder.(BufferBuilder.java:48) at TRANSFORMER/minecraft@1.18.1/com.mojang.blaze3d.vertex.Tesselator.(Tesselator.java:20) at TRANSFORMER/minecraft@1.18.1/com.mojang.blaze3d.vertex.Tesselator.(Tesselator.java:24) at TRANSFORMER/minecraft@1.18.1/com.mojang.blaze3d.vertex.Tesselator.(Tesselator.java:12) at TRANSFORMER/minecraft@1.18.1/com.mojang.blaze3d.systems.RenderSystem.(RenderSystem.java:45) at TRANSFORMER/minecraft@1.18.1/net.minecraft.client.main.Main.main(Main.java:167) ... 13 more

I guess I need "org.lwjgl:lwjgl:3.2.3:natives-macos"、"org.lwjgl:lwjgl-opengl:3.2.3:natives-macos"、"org.lwjgl:lwjgl-glfw:3.2.3:natives-macos" dependencies, buy I don't know how to dependency them.

github-actions[bot] commented 1 month ago

:wave: We use the issue tracker exclusively for final bug reports and feature requests. However, this issue appears to be better suited for the Forge Support Forums or Forge Discord. Please create a new topic on the support forum with this issue or ask in the #tech-support channel in the Discord server, and the conversation can continue there.