Building FrameTrellis

FrameTrellis is a CMake project. It needs:

DependencyMinimumNotes
C++20 compilerGCC 11, Clang 14, MSVC is not supported yetMinGW-w64 GCC (MSYS2) on Windows
CMake3.25 (presets); 3.21 without presets
Ninjaany recentused by the presets
Qt6.5 (6.8 LTS recommended)Core, Gui, Qml, Quick, Quick Controls, Quick Dialogs, Svg, Concurrent, Test
MLT7.14with the avformat (FFmpeg), core, plus and normalize modules
FFmpegwhatever MLT was built againstmust include an H.264 encoder (libx264 preferred) for MP4 export
SDL 22.0.18 (optional)audio playback; without it the preview is silent

Development subtitles use Qt's font engine in the editor and render helper. Install fonts for each required script on rendering machines. Headless Linux runs need the Qt offscreen platform plugin and fonts (for example DejaVu and Noto Core). Windows uses installed system fonts; packaging includes both native and offscreen plugins.

Build options (-D<option>=ON|OFF):

OptionDefaultMeaning
FT_BUILD_APPONthe Qt Quick application (needs Qt Quick)
FT_BUILD_ENGINEONthe MLT engine, render helper and engine tests
FT_BUILD_TESTSONthe test suite
FT_WITH_SDL2ONuse SDL 2 for audio when found
FT_WARNINGS_AS_ERRORSOFFtreat compiler warnings as errors
FT_ENABLE_SANITIZERSOFFAddressSanitizer + UBSan (GCC/Clang)

On Linux, the executables are written to build/<preset>/bin/: frametrellis (the editor) and frametrellis-render (the export helper, which must remain next to the editor). On macOS, the GUI is in build/macos/bin/frametrellis.app/Contents/MacOS/frametrellis and the build copies frametrellis-render into that same Contents/MacOS folder, so exports can be launched from Finder as well as from the command line.

For automated packaging/GUI smoke tests, frametrellis --screenshot <file> returns 0 only if the screenshot was saved and essential MLT services initialized successfully. Exit 2 means the capture failed, while exit 3 means MLT initialization or required services failed even if the QML error view could be drawn. Run the renderer's --self-test separately to prove actual media import, encoding and preview service availability. Do not accept a nonempty screenshot alone as evidence of a working editor.

Windows 11 (MSYS2, UCRT64)

  1. Install MSYS2 and open the MSYS2 UCRT64 shell.
  2. Install the toolchain and libraries:
   pacman -Syu
   pacman -S --needed git mingw-w64-ucrt-x86_64-{cc,cmake,ninja,pkgconf,qt6-base,qt6-declarative,qt6-svg,qt6-imageformats,mlt,fftw,libebur128,ffmpeg,SDL2}

MSYS2's MLT lists its plug-in libraries only as optional dependencies, so install them explicitly: ffmpeg for the FFmpeg module, and fftw and libebur128 for the "plus" module, which provides the affine transition FrameTrellis uses to layer video tracks. Without them FrameTrellis reports that the installation is incomplete.

  1. Configure, build and test:
   git clone https://github.com/sanskarIN/frametrellis.git
   cd frametrellis
   cmake --preset windows-msys2
   cmake --build --preset windows-msys2
   ctest --preset windows-msys2
  1. Run it from the same shell (so the MSYS2 DLLs are found):
   ./build/windows-msys2/bin/frametrellis.exe

To produce a self-contained folder that runs outside MSYS2, see Packaging.

Linux

Ubuntu 24.04 LTS

Ubuntu 24.04 ships Qt 6.4, which is older than FrameTrellis needs, so install Qt 6.8 from the Qt online installer or with aqtinstall:

sudo apt install build-essential cmake ninja-build pkg-config git \
  libavformat-dev libavcodec-dev libavutil-dev libavfilter-dev libavdevice-dev \
  libswscale-dev libswresample-dev libsdl2-dev libgl1-mesa-dev libxkbcommon-x11-0 libxcb-cursor0 \
  fonts-dejavu-core fonts-noto-core
pipx install aqtinstall
aqt install-qt linux desktop 6.8.3 linux_gcc_64 -O "$HOME/Qt"

# Ubuntu's MLT packages bring in their own Qt-based modules, so build the few MLT modules
# FrameTrellis needs against the system FFmpeg instead (takes about a minute):
scripts/build-mlt.sh v7.22.0 "$HOME/.local/mlt"

cmake --preset linux -DCMAKE_PREFIX_PATH="$HOME/Qt/6.8.3/gcc_64;$HOME/.local/mlt"
cmake --build --preset linux
ctest --preset linux
./build/linux/bin/frametrellis

Fedora, Arch Linux and other distributions with Qt ≥ 6.5

Install Qt 6 (base, declarative, svg), MLT 7 development files, FFmpeg and SDL 2 from your distribution, for example on Arch Linux:

sudo pacman -S --needed base-devel cmake ninja qt6-base qt6-declarative qt6-svg mlt ffmpeg sdl2
cmake --preset linux && cmake --build --preset linux && ctest --preset linux

If your distribution's MLT pulls in a Qt-based MLT module linked against a different Qt version than the one you build with, point FrameTrellis at a module folder without it (FRAMETRELLIS_MLT_REPOSITORY=/path/to/mlt-7) or use scripts/build-mlt.sh.

macOS (supported from source; Apple Silicon and Intel)

Source-build support is available on macOS 15 or newer, on both Apple Silicon (arm64) and Intel (x86_64). The native desktop CI builds, runs the editor/renderer, and tests both architectures. Install the native developer tools and Homebrew, then install Qt 6, MLT 7, SDL2 and their codecs. This is a source-build workflow, not a one-click standalone installation:

brew install cmake ninja pkg-config qt mlt ffmpeg sdl2
git clone https://github.com/sanskarIN/frametrellis.git
cd frametrellis
cmake --preset macos -DCMAKE_PREFIX_PATH="$(brew --prefix qt);$(brew --prefix mlt)"
cmake --build --preset macos
QT_QPA_PLATFORM=offscreen QT_QUICK_BACKEND=software SDL_AUDIODRIVER=dummy ctest --preset macos
./build/macos/bin/frametrellis-render --self-test "$HOME/Library/Caches/frametrellis-smoke"
open ./build/macos/bin/frametrellis.app

The helper is copied into the app's Contents/MacOS folder. Verify it is present before exporting. macOS is supported for source builds, but the app is not yet an officially distributed, self-contained notarized installer. Qt/MLT/FFmpeg/SDL2 libraries are supplied by Homebrew at runtime. A standalone ZIP or DMG is not ready for official stable distribution until those native runtime libraries, MLT data/services, Qt Quick plugins, bundled-component licenses, architecture, code signing, notarization, and clean-host tests pass on both Apple Silicon and Intel.

Running from the build tree

FrameTrellis finds MLT's modules in this order: the FRAMETRELLIS_MLT_REPOSITORY or MLT_REPOSITORY environment variables, a lib/mlt… folder next to (or one level above) the executable, the MLT used at build time, and finally MLT's built-in default. MLT_DATA is set to the matching share/mlt… folder automatically.

Useful environment variables while developing:

VariableEffect
QT_LOGGING_RULES="ft.*.debug=true"verbose FrameTrellis logs (ft.engine, ft.playback, …)
QT_QPA_PLATFORM=offscreenrun without a display (tests, screenshots)
QT_QUICK_BACKEND=softwaresoftware rendering for Qt Quick
SDL_AUDIODRIVER=dummysilent audio device

Logs are also written to frametrellis.log in the application data folder (Help → About → Open log folder).

Development tools

cmake --preset linux-debug     # Debug, warnings as errors
cmake --preset linux-asan      # AddressSanitizer + UBSan
git ls-files '*.cpp' '*.h' | xargs clang-format -i                  # format
git ls-files 'src/*.cpp' | xargs clang-tidy -p build/linux-debug    # static analysis

CI runs the same formatting, clang-tidy, sanitizer and test steps; see .github/workflows/ci.yml.

Packaging

Windows

Build the windows-msys2-release preset in the MSYS2 UCRT64 shell (with the python package installed as well), then assemble the portable folder and ZIP:

pacman -S --needed mingw-w64-ucrt-x86_64-python
cmake --preset windows-msys2-release
cmake --build --preset windows-msys2-release
ctest --preset windows-msys2-release
python packaging/windows/package.py --build-dir build/windows-msys2-release --output dist

packaging/windows/package.py copies the executables, deploys Qt (libraries, plug-ins and QML modules) with windeployqt, adds the MLT modules and data, and copies every DLL the binaries depend on, found by reading their import tables. It stops if a dependency can be found neither in MSYS2 nor in Windows. Every bundled file is attributed to the MSYS2 package that installed it; the script copies those packages' license files and writes BUNDLED_COMPONENTS.txt, SOURCES.txt and an SPDX 2.3 software bill of materials (dist/FrameTrellis-<version>-windows-x64.spdx.json).

Some MSYS2 packages (FFmpeg, x264, x265, ICU and about twenty others) install no license file. For those, the script downloads the package's MSYS2 source package and copies the license and notice files (COPYING*, LICENSE*, NOTICE* and similar) from the upstream source, reading Git sources at the revision that was built. This needs curl, zstd and git in the MSYS2 shell (pacman -S --needed curl git zstd); downloads are cached in <build-dir>/msys2-sources. Packaging stops if any bundled component is left without a license text. The script's unit tests run on any platform:

python3 -m unittest discover -s packaging/tests -v

The installer is built from that folder with Inno Setup 6:

ISCC.exe /DAppVersion=<version> /DStageDir=dist\FrameTrellis-<version>-windows-x64 `
  /DOutputDir=dist /DRepoDir=. packaging\windows\frametrellis.iss

packaging/windows/verify.ps1 checks both packages with nothing but Windows on the PATH. It runs the engine self-test (frametrellis-render --self-test <folder>), starts the editor, checks that every loaded library comes from the package or from Windows, then installs, tests and uninstalls the installer.

The MLT modules live in lib/mlt, but their dependencies (FFmpeg and the other libraries) sit next to the executables. MLT loads modules with an altered DLL search path that skips the application folder, so the engine adds that folder with SetDllDirectory before it starts MLT. Development builds do not notice this because MSYS2 is on their PATH; the clean-machine check is what catches it.

Linux

cmake --install build/linux --prefix <dir> installs the binaries, the desktop entry, the icon, and the shared MIME registration for .ftproj. When installing to a system prefix using a distro package, refresh its MIME cache using the distribution's normal package hooks. No changes to the host MIME database are made by the CI staging step. The new Linux/macOS desktop workflow also runs Linux GUI smoke tests and stages a development .tar.gz using this install layout. Its executables still require compatible Linux Qt 6.8+, MLT 7 and FFmpeg system libraries. It is not a self-contained AppImage/Flatpak and must not be offered as a verified stable Linux package. A self-contained Linux package will be published only after it passes independent clean-machine and real media playback/export validation.

macOS

Native Apple Silicon and Intel macOS CI compile the frametrellis.app bundle, run tests and check the adjacent render helper. The staged development tarballs require Homebrew Qt, MLT and SDL2 at runtime. Do not describe the tarball as an installer/DMG; the stable macOS distribution requires all dynamic dependencies inside the app plus signing and notarization.

Automation

The Windows packages workflow builds the packages on every pull request and verifies them on clean Windows Server 2022, Windows Server 2025 and Windows 11 (ARM64, x64 emulation) runners. The release workflow runs when a version tag is pushed or a release is published in the GitHub web interface. It builds and verifies the packages again, collects the source of every bundled component, and only when all of that has passed attaches the installer, the portable ZIP, the SBOM, the third-party source archive and SHA256SUMS.txt to the release. Started by hand, it rehearses all of this without publishing anything. The website is checked in pull requests by the website workflow and published from main by the Pages workflow.

Which other channels (WinGet, Flathub, Homebrew) are planned, and what each one needs, is described in Distribution channels.