Skip to content
R077A6r1an edited this page Jul 14, 2023 · 2 revisions

Welcome to the cross-compiler-collection wiki!

Every time you need the toolchain, you enable it by running the follwing command:

$ cd (toolchain root dir) $ ./config

By running this script, the PATH variable will be modified, so that the compilers you need will be in the environment variable you need. If you may see, there may be two same named compilers, that's because with this SDK, you get a toolchain for x86_64 and arm64 host arch. So the script search automaticly, which compilers are available for your arch, and settes so the PATH variable.

Every time you open a new shell session, you must execute this step. For automate this step, you can just create a script like this above, set it executable and move it in /bin:

#/bin/bash -e

export WDIR=$(pwd) export TOOLCHAIN_DIR=/home/user/toolchain/cross-compiler-collection

replace the path to the directory this repository is stored

cd $TOOLCHAIN_DIR ./config cd $WDIR

But note that the scipt MUST be executed in the repository directory, else it will not find the compilers!

Clone this wiki locally