Installation
Stitcher uses CMake for building and includes a helper script (build.sh) to streamline the build process across different platforms.
Prerequisites
Before building Stitcher, ensure you have the following installed:C Compiler
A C compiler with pthread support:
- macOS: Xcode Command Line Tools
- Linux: GCC or Clang
- Android: Android NDK
Building from Source
Using the Build Script
The easiest way to build Stitcher is using the providedbuild.sh script:
- Build libjpeg-turbo for the target platform
- Build Stitcher as a static library
- Install headers and libraries to
installs/native-stitcher/<platform>/<arch>/
Manual CMake Build
For more control over the build process, you can use CMake directly:Compiler Options
Stitcher is compiled with optimization flags for maximum performance:-O3: Aggressive optimization-pthread: Multi-threading supportSIMDE_ENABLE_NATIVE_ALIASES: Enable SIMD optimizations
Installation Layout
After building, the installation directory contains:Cleaning Build Files
To clean build files for a specific platform:macos, ios, ios-sim, android
Verifying the Installation
To verify your build works correctly, compile and run the test example:Next Steps
Quick Start Guide
Learn how to use Stitcher in your project with a complete working example