

When you have suitable cross compilers available, you can cross compile your programs for processors and operating systems different from the system where KDevelop and the compiler is running. The GNU compiler collection gcc can be configured and compiled as a cross compiler if you compile it yourself. Consult the GCC info pages for more information. Some Linux® distributions also provide binary packages.
An automake based package can easily be
cross-compiled by specifying the --host option to the
configure script and setting the CC and CXX
environment variables to the respective cross compiler binaries. Often you
want to switch between a the cross-compiled version of your application and
one compiled for your development system. For this, it is advantageous to
use KDevelop capability of creating multiple build configurations, as
explained in the section called “Multiple Build Configurations”. Once you have created a
new build configuration for cross-compiling in the
-> dialog, add the option
--host=platform
to the configure options. The platform name
is a tuple of the form
cpu-vendor-os
or
cpu-vendor-kernel-os
For many combinations, you can use a short form, for instance i386-linux or arm-elf.