minecraft-ia64-20261102
================================================================

Minecraft: Java Edition on Linux/IA-64 (Itanium), on the IA-64 port of
OpenJDK 25: any release from 1.13 on. This package holds the launcher, a
setup script that downloads the game, and the native libraries LWJGL needs,
built for IA-64. It does not contain Minecraft itself: setup.py downloads it
from Mojang, checking every file's SHA-1.

You need a Minecraft: Java Edition licence. The launcher starts the game in
offline mode, without logging in, so nothing checks that licence for you.

Installing
----------

  tar xJf minecraft-ia64-20261102.tar.xz
  cd minecraft-ia64-20261102
  ./install.sh                  # into /opt/minecraft/ia64 (--prefix DIR)
  ./install.sh --link /usr/local/bin    # ...plus a "minecraft" command

Then, as the user who will play:

  /opt/minecraft/ia64/setup.py 1.20.1          # or no version: the latest
  /opt/minecraft/ia64/launch_minecraft.sh 1.20.1

setup.py can be run for several versions; the launcher starts the version
given, else $MC_VERSION, else the one set up last. Each version's game
directory (saves, options, logs/latest.log) is ~/.minecraft-<version>.
Libraries and assets are shared under ~/.minecraft. The launcher's settings
are environment variables: JDK25_HOME, MC_GFX (opengl or vulkan, 26.2+),
MC_USER (player name), MC_HEAP, MC_SERVER=1 or MC_SERVER=host:port (join a
server) and MC_DEBUG=1. They are described at the top of launch_minecraft.sh.

To remove the package, delete /opt/minecraft/ia64, plus ~/.minecraft and
~/.minecraft-<version> if the game data should go too.

Versions and LWJGL
------------------

Minecraft has shipped eight LWJGL 3 versions. setup.py runs each game
version on one of two, from Maven Central, so only two sets of natives are
needed:

  Minecraft 1.13 - 1.21.x   LWJGL 3.3.3   (natives/lwjgl-3.3.3)
  Minecraft 26.1 and newer  LWJGL 3.4.3   (natives/lwjgl-3.4.3)

Every LWJGL class, field and method those versions use exists in their LWJGL
(checked against the client jars). 1.12.2 and older use LWJGL 2 and are not
supported.

Requirements
------------

  - Linux on IA-64 with glibc 2.34 or newer, X11 and a GPU with OpenGL
    (Mesa; tested with radeonsi). Vulkan (MC_GFX=vulkan) is untested.
  - OpenJDK 25 for IA-64: the openjdk-25-linux-ia64-server tarball, which
    installs to /opt/java/openjdk-25-ia64. Otherwise set JDK25_HOME.
  - System libraries, at T2's paths: libffi (libffi.so.8), mesa, OpenAL for
    sound; /usr/lib/libfreetype.so.6 for 1.20.5+; libshaderc_shared.so.1
    for 26.2+; libSDL3.so.0 for 26.3+.
  - python3 for setup.py.

install.sh checks these. The launcher puts /usr/X11R7/bin on PATH for
xrandr, as T2 installs X11 there.

Tested on T2/Linux: an HP Integrity rx2800 i2 (Itanium 9340, RX 550) and an
SGI Altix 350 (Itanium 2 Madison, R7 240).

What is in natives/
-------------------

  lwjgl-3.3.3/, lwjgl-3.4.3/
      liblwjgl.so liblwjgl_opengl.so liblwjgl_stb.so liblwjgl_tinyfd.so
      liblwjgl_vma.so: LWJGL's JNI libraries, built for IA-64 against the
      system libffi.
  libglfw.so
      GLFW 3.4, X11 only: the window system of 1.13 - 26.2.
  libspirv-cross.so
      SPIRV-Cross (vulkan-sdk-1.4.357.0) as a shared library. 26.2 and newer
      translate every shader through it, even with OpenGL.

build-natives.sh rebuilds them on the IA-64 machine. It uses the LWJGL C
sources in src/ (made by LWJGL's generator, which does not run on IA-64) and
downloads GLFW, SPIRV-Cross and OpenAL Soft. With "openal" as its argument it
builds only OpenAL Soft, for systems that don't have it.

Known limitations
-----------------

  - No JNA native library for IA-64: system information in crash reports and
    F3, and the narrator, are off.
  - netty uses NIO instead of epoll, and jemalloc is not used.
  - The garbage collector is Parallel GC: ZGC is not available on IA-64.
  - With LWJGL 3.3.3 (1.13 - 1.21.x), LWJGL prints "Unsupported JNI version
    detected" at start. It is harmless: 3.3.3 does not know JDK 25's JNI
    version, and its fallback (232 JNI functions) is the right count.

Licences
--------

LWJGL: BSD 3-clause. VMA and liburing (inside the LWJGL libraries): MIT.
tinyfiledialogs: zlib. GLFW: zlib. SPIRV-Cross: Apache 2.0. See LICENSES/.
stb is public domain (MIT alternative), as stated in its sources.
