# genie-t2t-run Sample Code Tutorial

## Prerequisite

**Linux**: Building *genie-t2t-run* is independent of *libGenie.so* and these targets can be built in any order. However, *libGenie.so* will be required for the successful execution of *genie-t2t-run*

**Windows**: Building *genie-t2t-run.exe* is dependent on *Genie.lib*. Prior to building *genie-t2t-run.exe*, we must first copy *Genie.lib* to the build app’s directory to ensure the linker is able to locate this dependency.

## Building genie-t2t-run

**x86**

cd ${SDK_ROOT}/examples/Genie/genie-t2t-run
    make x86
    Copy to clipboard

After executing make as shown above, you should be able to see **genie-t2t-run** in `bin/x86_64-linux-clang`

**Android**

cd ${SDK_ROOT}/examples/Genie/genie-t2t-run
    make android
    Copy to clipboard

After executing make as shown above, you should be able to see **genie-t2t-run** in `bin/aarch64-android`

**Windows**

Open the **Developer Command Prompt for Visual Studio** and run the following commands:

cd ${SDK_ROOT}/examples/Genie/genie-t2t-run
    mkdir build & cd build
    cmake ../ -A <x64, ARM64>
    cmake --build ./ --config Release
    Copy to clipboard

After executing CMake as shown above, you should be able to see **genie-t2t-run.exe** in `bin/Release`

## Executing genie-t2t-run

You can follow **QNN GenAITransformer backend workflow** and **QNN HTP backend workflow** for the instructions to run on CPU and HTP respectively.

Last Published: Jun 04, 2026

[Previous Topic
libGenie.so and Genie.dll](https://docs.qualcomm.com/bundle/publicresource/80-63442-10/topics/source_code_examples_library.md) [Next Topic
genie-t2e-run](https://docs.qualcomm.com/bundle/publicresource/80-63442-10/topics/source_code_examples_genie-t2e-run.md)