Skip to content

Build from Source

This guide walks you through the supported maintainer build flow for the SDK.

You will need Qt, Conan 2, CMake, Ninja, and a Go toolchain.

Terminal window
python3 -m pip install --user conan
conan profile detect --force
  1. Clone the repository:

    Terminal window
    git clone https://gitlab.com/mrs-electronics/sdk/qt.git mrs-sdk-qt
    cd mrs-sdk-qt
  2. Install third-party dependencies with Conan:

    Terminal window
    conan install . --build=missing -s build_type=Release -s compiler.cppstd=11
  3. Configure the native preset with your local Qt installation:

    Terminal window
    cmake --preset native-conan -DCMAKE_PREFIX_PATH=/path/to/Qt/6.8.0/gcc_64
  4. Build the SDK:

    Terminal window
    cmake --build --preset native-conan
  5. Package the split SDK archives:

    Terminal window
    cpack --config build/native-conan/CPackConfig.cmake

The repository also includes helper CLIs for target-specific packaging:

Terminal window
go run ./target-support/cmd/mrsqt-setup config set --target mconn-buildroot-qt5.9 --product-sdk-root /opt/product-sdks/mconn-buildroot
go run ./cmd/mrsqt-builder release-targets mconn-buildroot-qt5.9

For routine packaging, you can also use:

Terminal window
scripts/release-targets.sh --all