LunarBasic for Linux
=====================

This folder is a self-contained LunarBasic IDE build. Run it with:

    ./LunarBasic

Runtime prerequisites
----------------------

The IDE itself does not depend on SDL3/FreeType/GStreamer, but compiling
and running a LunarBasic program from inside it does - the IDE shells out
to the host's own C toolchain to build a native executable, and that
executable dynamically links against the host's own SDL3/FreeType/
GStreamer libraries rather than bundling them.

To compile LunarBasic programs, install:
  - A C compiler: clang
  - An archiver/linker: llvm-ar (or GNU ar) and pkg-config
  - Development packages for SDL3, FreeType, and GStreamer
    (gstreamer-1.0 and gstreamer-video-1.0 specifically)

Debian / Ubuntu (apt):
  sudo apt install clang llvm pkg-config libfreetype-dev \
      libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev \
      gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-libav gstreamer1.0-x \
      libsdl3-dev

Arch Linux (pacman):
  sudo pacman -S clang llvm pkgconf freetype2 \
      gstreamer gst-plugins-base gst-plugins-good gst-plugins-bad gst-libav \
      sdl3

To run a compiled LunarBasic program (including previewing/running it from
inside the IDE), you additionally need the matching runtime shared
libraries and a working set of GStreamer decode/sink plugins - these are
normally pulled in automatically as dependencies of the packages above, so
most users won't need to install anything separately for this.

If `pkg-config sdl3 freetype2 gstreamer-1.0 gstreamer-video-1.0 --cflags`
(or `--libs`) fails, that names exactly which package is still missing.
