Provide the appropriate toolchain directory for the target architecture (x86, arm, mips etc.) based on the device you intend to run the resulting executables as the Base Directory
.
Next provide the relative path/filenames of the individual commands for C compiler
, C++ compiler
etc. These will be relative paths(including the filenames) to the appropriate binaries within the toolchain directory specified above.
How to verify the toolchain settings?
Using the IDE, compile a simple hello-world.c
program. Something like
/* hello-world.c */
int main()
{
return (42);
}
Give a Build
using the IDE and check the compilation output window. Understand the errors if any and modify the configuration options accordingly.
Once a build succeeds and it will result in a binary hello-world
within the project directory. Open a new terminal and run the file
command on newly generated binary to verify that it is indeed built for the target architecture. For example a binary built for x86-64 would show.
$ file hello-world
hello-world: ELF 64-bit LSB executable, x86-64, version 1 (GNU/Linux), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, not stripped
In your case i assume it would be a MIPS
executable if the mips toolchain and compiler are properly configured within the IDE settings.