Build and Install
Goal
Create a Release build without GPU or real-time privilege requirements, then compile the tutorial examples.
Build from source
Run these commands from the repository root:
cmake -B build -DCMAKE_BUILD_TYPE=Release -DEXECUTOR_BUILD_EXAMPLES=ON -DEXECUTOR_ENABLE_GPU=OFF
cmake --build buildLinux requires CMake 3.16+ and a C++20 compiler. On Windows, use Visual Studio 2019+ with MSVC. Android uses NDK r26c/r28b and is CPU-only in this stage:
export ANDROID_NDK_HOME=/path/to/android-ndk-r26c
scripts/build_android.sh --abi arm64-v8a --api 21For Android packaging, AGP integration, and c++_shared, see PACKAGE_ANDROID.md. CUDA, OpenCL, and real-time privileges are not needed for this first path.
Use it from your project
Before installation, add the repository as a subdirectory:
set(EXECUTOR_BUILD_TESTS OFF CACHE BOOL "" FORCE)
set(EXECUTOR_BUILD_EXAMPLES OFF CACHE BOOL "" FORCE)
add_subdirectory(path/to/executor)
target_link_libraries(myapp PRIVATE executor::executor)After installation, pass the installation prefix to CMake:
cmake --install build --prefix /opt/executor
cmake -B build-consumer -DCMAKE_PREFIX_PATH=/opt/executorThen use:
find_package(executor REQUIRED)
target_link_libraries(myapp PRIVATE executor::executor)For packaging and installation details, read docs/BUILD.md.
Verify the tutorial example
./build/examples/tutorial/tutorial_01_first_taskOn Windows, run the corresponding .exe from the build directory. The first line is answer=42, followed by a deliberately caught exception. This confirms that both results and task failures return to the caller.
To run all tutorial smoke tests:
cmake --build build
ctest --test-dir build -L tutorial --output-on-failureFor a Linux, Windows, or Android production deployment, use the platform deployment checklist before tuning permissions or affinity.
Next, run your first task.