Lambda has not been compiled on macOS at the time of writing. If you have a macOS system and you want to give some information, please get in touch.
Compiling Lambda on *NIX systems consists of installing the required dependencies, cloning the repository and building Lambda.
Dependencies
You need a Go compiler, at the time of writing 1.25.5. Depending on your platform Go may be able to fetch and compile a newer version even if you are using a version below 1.25.5.
Almost all *NIX distributions have Go in their repositories. If for whatever reason you cannot use those then you can get Go from the official website.
A C compiler is also required because Lambda uses GTK4.
The following dependencies are required to be installed before compilation and for running Lambda:
- glib-2.0
- gobject-2.0
- cairo
- cairo-gobject
- gio-2.0
- gobject-introspection
- gdk-pixbuf-2.0
- graphene-gobject-1.0
- graphene-1.0
- gtk4
Some of these packages may be listed under different names on different distributions.
If you are running a modern X11/Wayland system with GTK apps, then all of these packages should already be installed, and simply installing gtk4 will suffice. If not, you can install them with your local package manager.
Other than the GTK4-related dependencies, no other dependencies are required.
Cloning
Building
If you are not compiling Lambda in order to test a code change, or are doing so for regular usage, you should strip debug information by using the -s -w flags:
Otherwise, simply run go build.