Tool chain for native compilation

I need to compile small programs natively on my Colibri IMX6. Can you give some guidance on what packages I need to download and install locally?

Version info below (cat /proc/version)

Linux version 4.1.35-v2.7b1+gc117783 ( (gcc version 5.2.1 20151005 (Linaro GCC 5.2-2015.11-2) ) #4 SMP Thu Jan 12 00:49:26 CET 2017


Have a look here.


Is it possible to natively compile a simple gtk app as mentioned in the link below?

Yes. If you install the relevant developer packages of whatever libraries you compile and link your code against.

Note that you are asking the guys who put a big fat disclaimer on top of the native compilation article that cross compiling is the preferred way to build for an embedded target.