Cross compiling

Moderator: nferre

punchingkan
Posts: 12
Joined: Thu Mar 01, 2018 11:59 am

Cross compiling

Mon Mar 19, 2018 12:09 pm

How do i cross compile a c program written for Sama5d27_som_ek?

Thank You
Punchingkan
punchingkan
Posts: 12
Joined: Thu Mar 01, 2018 11:59 am

Re: Cross compiling

Mon Mar 19, 2018 1:27 pm

I am so sorry, i did not give complete information. How do i cross compile a c program for sama5d27_som_ek that is running on linux. Is there anything that is similar to GCC in ubuntu to compile programs on board.

Thank You
Punchingkan
sirdan
Posts: 25
Joined: Thu Jun 25, 2009 4:19 pm

Re: Cross compiling

Mon Mar 19, 2018 6:23 pm

Hello,

What build environment are you using? Buildroot, Yocto, etc?

Regards,
Dan
punchingkan
Posts: 12
Joined: Thu Mar 01, 2018 11:59 am

Re: Cross compiling

Tue Mar 20, 2018 8:24 am

Its yocto
sirdan
Posts: 25
Joined: Thu Jun 25, 2009 4:19 pm

Re: Cross compiling

Tue Mar 20, 2018 9:09 am

thackerp
Posts: 6
Joined: Tue Jul 19, 2016 10:19 pm

Re: Cross compiling

Tue Mar 20, 2018 4:12 pm

punchingkan
Posts: 12
Joined: Thu Mar 01, 2018 11:59 am

Re: Cross compiling

Fri Mar 30, 2018 4:04 pm

Thanks thackerp

i have written a c program with just

#include<stdio.h>
void main()
{
printf("hello world");
}

i navigated to /sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi

and entered ./arm-poky-linux-gnueabi-gcc helloworld.c

but it says stdio.h not found
thackerp
Posts: 6
Joined: Tue Jul 19, 2016 10:19 pm

Re: Cross compiling

Mon Apr 02, 2018 4:34 pm

Read the paragraph title "Use Atmel Poky Qt-Embedded SDK:" in the link I sent. After you have sourced your environment, type $CC helloworld.c on the command line to build your program.

Return to “SAMA5-based”

Who is online

Users browsing this forum: No registered users and 2 guests