Skip to content

Developing on macOS

This guide is for Mogan STEM. For other components, the steps are similar to this one.

Step 1: Install xmake and xrepo

For Homebrew:

brew install xmake qt
brew install pkg-config

Sometimes, we need the latest xrepo:

bash
xrepo update-repo

Step 2: Config

xmake config -vD --yes

If Qt is not found, you can specify manually, for example:

xmake config --qt=/opt/homebrew/share/qt

The Qt Dir might not be /opt/homebrew/share/qt, please adjust it if needed.

Step 3: Build

bash
xmake build stem

Step 4: Run tests

See How to test.

Step 5: Launch Mogan STEM

bash
xmake run stem

Enjoy exploring science and technology!