Install the build prerequisites

Set up Rust, a C++ toolchain, and your platform SDK before compiling the dotLottie native runtime, and clone the repository with its ThorVG submodule.

The native runtime is compiled from source, so you need a working Rust toolchain and a C++ compiler before you can build anything. The renderer, ThorVG, is vendored as a Git submodule and compiled from source by the build script — that is why a C++ compiler is required even though the runtime itself is Rust.

Common requirements

Every platform needs all of the following.

RequirementMinimum versionWhy it's needed
Rust1.85Builds the runtime. Install with rustup↗
A C++ compilerclang or MSVCCompiles the vendored ThorVG renderer
libclangany recentbindgen reads ThorVG's C headers with it
GNU Makeany recentRuns the per-architecture build targets
Gitany recentFetches the ThorVG submodule

Clone with submodules

ThorVG lives in a submodule, and the build fails without it. Clone recursively:

git clone --recurse-submodules https://github.com/LottieFiles/dotlottie-rs.git
cd dotlottie-rs

If you already cloned the repository without submodules, fetch them now:

git submodule update --init --recursive
A missing submodule looks like a compiler error

Without dotlottie-rs/deps/thorvg, the build script fails while trying to compile renderer sources or run bindgen, which reads as a C++ toolchain problem rather than a missing checkout. Verify the submodule first with git submodule status — it should print a commit hash for dotlottie-rs/deps/thorvg.

Platform toolchains

Install the toolchain for each platform you intend to target.

To build for the machine you are sitting at, the common requirements are enough. On Debian and Ubuntu:

sudo apt-get install build-essential clang libclang-dev make git

On macOS, install the Xcode command line tools:

xcode-select --install

Confirm your setup

Check that the toolchain resolves and the submodule is present:

rustc --version          # must report 1.85.0 or newer
git submodule status     # must list dotlottie-rs/deps/thorvg
make list-platforms      # prints the platforms this checkout can build

Next steps

Last updated: August 13, 2026 at 9:17 AMEdit this page