ubports / ubuntu-touch

Ubuntu Touch's issue inbox is now migrated to GitLab.
https://gitlab.com/ubports/ubuntu-touch
1.29k stars 109 forks source link

How to use crosstool-ng for building toolchain on Ubuntu Touch? #2143

Closed GermanAizek closed 1 year ago

GermanAizek commented 1 year ago

More info here: https://crosstool-ng.github.io/

The application allows you to compile toolchain and create cmake toolchain file for cross compilation cmake projects for UT.

-D CMAKE_TOOLCHAIN_FILE - parameter in CMake documentation https://cmake.org/cmake/help/latest/variable/CMAKE_TOOLCHAIN_FILE.html

GermanAizek commented 1 year ago

It's decided, I foolishly did not understand. Toolchain is builded on a machine where build using Clickable for UT phone. It is enough to specify path to directory builded toolchain in cmake arguments clickable file.