Toolchain Installation for Out of B2Qt Builds¶
Prerequisites¶
A full B2Qt build environment is required for the toolchain generation. To setup a B2Qt build environment follow steps 1 & 3 of the Build B2Qt from source code guide and then proceed to either the toolchain or complete SDK steps below:
Build a toolchain¶
Setup the environment:
Build the toolchain:
Build a complete SDK¶
To compile applications that require libraries other than glibc you should build an SDK which contains development versions of all libraries in the rootfs image, and not just the basic toolchain.
E.g. when using the B2Qt image:
The SDK should match the rootfs image on the target, otherwise you may experience difficulties when trying to debug application failures.
Install the Toolchain/SDK¶
Install the tools by running the resulted script in tmp/deploy/sdk/.
E.g.
Note: The toolchain/script name depends on your build machine and the bitbaked image/recipe, and may change.
Accept all the default options, and at the end of the installation you should see the following:
Use the Toolchain/SDK¶
Each time you wish to use the toolchain in a new shell session, you need to source the environment setup script: