cross compile toolchain

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

cross compile toolchain

2,978 Views
1990rahulreddy
Contributor IV

I have install toolchain, & in ubuntu terminal, I cross compile using "arm-poky-linux-gnueabi-gcc hello.c -o hello", hello.c is in that directory. but, it is showing

hello.c:1:19: fatal error: stdio.h: No such file or directory

#include <stdio.h>

                   ^

compilation terminated.

what could be the problem...

Labels (2)
0 Kudos
Reply
2 Replies

1,628 Views
igorpadykov
NXP Employee
NXP Employee

Hi Rahul

please look at yocto tutorial on

https://community.freescale.com/docs/DOC-95225

https://community.freescale.com/thread/304440

or sect.5.1  Yocto Project Application Developer's Guide

http://www.yoctoproject.org/docs/1.6/adt-manual/adt-manual.html

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply

1,628 Views
1990rahulreddy
Contributor IV

Here are step:

1. bitbake fsl-image-gui -c populate_sdk

2. Install script at, /opt/fsl-imx-x11/3.14.52-1.1.0/

3. Successfully cross compile "Hello Word" & run on i.MX6 SDP

4. source /opt/fsl-imx-x11/3.14.52-1.1.0/environment-setup-cortexa9hf-vfp-neon-poky-linux-gnueabi

5. Install eclipse & other things as given in Yocto Project Application Developer's Guide

6. But, toolchain option is not there, in "Target Architecture"

How to get it there????

0 Kudos
Reply