> For the complete documentation index, see [llms.txt](https://trillbit.gitbook.io/trillbit-sdk/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://trillbit.gitbook.io/trillbit-sdk/embedded-linux/trill-sdk-for-embedded-linux/setup-guide/compiling-example-binaries.md).

# Compiling example binaries

1. Clone the github repository: [https://github.com/Trillbit-Inc/TrillbitSDK-linux ](https://github.com/Trillbit-Inc/TrillbitSDK-linux)
2. Navigate to the root of the repository and execute the following:&#x20;

{% code overflow="wrap" %}

```
First create the build directory

mkdir build && cd build
Next invoke the cmake command. The cmake command expects a -DPLATFORM_OPTION=<x86_64/aarch64> tag , if nothing is given x86_64 is assumed.

To cross compile for aarch64 from a x86_64, an additional -DCMAKE_TOOLCHAIN_FILE="../toolchains/aarch64_gcc_linux.cmake" must be provided.

To have a local install path -DCMAKE_INSTALL_PREFIX="../install" can be given

Normal build:

cmake .. -DPLATFORM_OPTION=<x86_64/aarch64> -DCMAKE_INSTALL_PREFIX="../install"

Cross-compiling:

cmake .. -DPLATFORM_OPTION=<x86_64/aarch64> -DCMAKE_INSTALL_PREFIX="../install" -DCMAKE_TOOLCHAIN_FILE="../toolchains/aarch64_gcc_linux.cmake"
```

{% endcode %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://trillbit.gitbook.io/trillbit-sdk/embedded-linux/trill-sdk-for-embedded-linux/setup-guide/compiling-example-binaries.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
