-
Hi How to compile for an ARM machine on a Linux host ? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Hi @freetoair, In summary, you need to create a "toolchain file" for CMake and call cmake like this:
The bare minimum things a toolchain file needs is the paths for the compiler and potentially other basic tools. Here's an example from another project of mine:
You can download and pre-built cross toolchain for many architectures here: https://toolchains.bootlin.com/ Vlad |
Beta Was this translation helpful? Give feedback.
Hi @freetoair,
I converted this to a discussion, since it's not a bug.
tfblib
is a fairly simple C library and can be cross-compiled like any other CMake project.Check this out: https://cmake.org/cmake/help/book/mastering-cmake/chapter/Cross%20Compiling%20With%20CMake.html
In summary, you need to create a "toolchain file" for CMake and call cmake like this:
The bare minimum things a toolchain file needs is the paths for the compiler and potentially other basic tools. Here's an example from another project of mine: