LWJGL / lwjgl3

LWJGL is a Java library that enables cross-platform access to popular native APIs useful in the development of graphics (OpenGL, Vulkan, bgfx), audio (OpenAL, Opus), parallel computing (OpenCL, CUDA) and XR (OpenVR, LibOVR, OpenXR) applications.
https://www.lwjgl.org
BSD 3-Clause "New" or "Revised" License
4.67k stars 628 forks source link

Cross Compile Help #862

Closed tlf30 closed 1 year ago

tlf30 commented 1 year ago

Question

Hello @Spasi I am working on getting cross compilation working on my ubuntu machine, and I am running into an issue (some step that I am missing).

I setup my packages the same as the lwjgl-ci does, and am attempting to compile in the same way:

 set LWJGL_BUILD_TYPE=nightly
 set LWJGL_BUILD_ARCH=arm64
 ant -emacs hydrate-kotlinc clean-generated generate
 ant -emacs compile
 ant -emacs compile-native -Dgcc.libpath.opengl=/usr/lib/aarch64-linux-gnu/mesa

But it still produces x64 binaries. Can you please tell me what I am doing wrong?

Thank you, Trevor

tlf30 commented 1 year ago

I found my mistake. After spending hours running builds to troubleshoot this, I remembered there is a difference between set and export! I guess I have spent too much time doing Windows development lately.