ubports / ubuntu-touch

A simple and beautiful mobile OS for everyone! This repository is for Ubuntu Touch issue tracking. It does not contain any code used to create Ubuntu Touch.
https://ubports.com
1.28k stars 109 forks source link

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

Closed GermanAizek closed 11 months ago

GermanAizek commented 11 months 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 11 months 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.