CombustUI-Mojo Logo

Installation instructions for CombustUI-Mojo.

Light Dark

Installation Guide

This section will provide detailed instructions on how to install CombustUI-Mojo.

Prerequisites

Before installing CombustUI-Mojo, ensure you have the following:

Install Pixi

Pixi is a package manager and virtual environment manager for Mojo (as well as other languages). You can install Pixi on MacOS, Linux, or Windows Subsystem for Linux (WSL) by running the following command in your terminal:
curl -fsSL https://pixi.sh/install.sh | sh
Notes: Some instruction will be printed in your terminal. Read them carefully and run the source command or restart your terminal as instructed. Now, the pixi binary is installed in the directory ~/.pixi/bin.
Source

Install CombustUI Using create-app.py

To install CombustUI and its respective dependencies, you can utilise the create-app python script located here

To use the script, you can run the following command in your terminal:

python3 create-app.py
Before starting the installation, ensure that your OS is supported by create-app. Following are the supported OS/Distros

On MacOS, the app creation will be slightly faster since FLTK1.4 is downloaded from homebrew and is not compiled from source (something that is done on GNU/Linux systems, see buildfltk1.4.sh).

Make sure to run source ~/.zshrc or source ~/.bashrc before running pixi shell and starting your project.

Running Your First CombustUI App

After creating an app using create-app.py, you will see a directory named after your app. Once you enter this directory you will find a number of files. Amongst these files, the main file is app.mojo, containing the basic get started template.

Everything in app.mojo is the actual code of the app. Then, there is a ./build.sh script which must be executed to run the app. Keep in mind that you must enter the pixi/magic environment using pixi shell before running ./build.sh to execute the app.

Running CombustUI

Troubleshooting

Error: Homebrew not installed. Install Homebrew and try again

If you happen to get an error stating that homebrew is missing, you can install homebrew using:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Error: No such file or directory ~/.zshrc (OR ~/.bashrc)

This error suggests that the shell rc file doesn't exist on your computer. It can simply be resolved by creating the file:

MacOS:

touch ~/.zshrc
Linux:
touch ~/.bashrc

Error: build_fltk failed with error

build_fltk1.4.sh is a small script used for downloading, building and installing FLTK1.4 on linux systems. Should it fail, you can try one of the following solutions: