How to compile C code on imx6 platform

cancel
Showing results for 
Search instead for 
Did you mean: 

How to compile C code on imx6 platform

666 Views
ed_woeste
Contributor I

I have imx6 SABRE platform. I used this link to  create Linux image from CodeAurora that is now running on successfully on the imx6 platform. 

Task #1 - Download the source code 

I am building imx-image-multimedia.

Now I have custom test code I want use to test Wi-Fi modues.  I would like to compile this code on the imx6 platform itself.  However the Linux OS does not have and gnu compilers that I can find.  I would like to simply use g++ or arm-linux-androideabi-g++.    

Which compilers are present on the platform or how do you suggest I compile this code?  

regards

0 Kudos
1 Reply

538 Views
karangajjar
Senior Contributor II

Hi Edward Woeste,

You can add following line to get gcc,g++ in your board image:

File: local.conf

Add : IMAGE_INSTALL_append = " packagegroup-core-buildessential"

Or

You can use the toolchain to build localy on your system.

Yocto Toolchain installation - Variscite Wiki 

https://community.nxp.com/docs/DOC-95122 

Regards,

Karan Gajjar