We need to configure CodeBlocks to use our toolchain and sysroot so do the following:
Start CodeBlocks
Open Settings->Compiler
Choose ‘GNU GCC for ARM’ from ‘Selected Compiler’ and click ‘Copy’
Give your new compiler a name e.g. YOCTO compiler for Opal-6
Now click the ‘Toolchain executables’ tab and browse to your sdk installation directory. You are looking for the parent to the compilers bin directory which in our case is: /opt/poky/2.0.1/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi
Now fill in the Program Files by prepending ‘arm-poky-linux-gnueabi-’ to each of gcc, g++ and ar. You should end up with the following:
Creating a Linux Application
Debugging
1
No labels
0 Comments
You are not logged in. Any changes you make will be marked as anonymous. You may want to Log In if you already have an account.
0 Comments