cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Newbie
Newbie
718 Views
Registered: ‎04-14-2019

gcc for petalinux

Hello everyone,

i want to compile a cpp-application on petalinux. But there is no gcc or g++. And if i want to install it via apt-get install, there is no apt.

Is there a tutorial existing, how to compile the application code?

0 Kudos
1 Reply
Highlighted
Moderator
Moderator
696 Views
Registered: ‎02-07-2018

Hi @williamti 

Please export the toolchain & build. 

For reference plese follow below steps:

export PATH=$PATH:/proj/petalinux/petalinux-v2018.2_daily_latest/petalinux-v2018.2-final/tools/linux-i386/aarch64-linux-gnu/bin/
export ARCH=arm64
export CROSS_COMPILE=aarch64-linux-gnu-

aarch64-linux-gnu-gcc app.c

 

Thanks & Regards

Aravind

----------------------------------------------------------------------------------------------
Kindly note- Please mark the Answer as "Accept as solution" if information provided is helpful.
Give Kudos to a post which you think is helpful and reply oriented.
----------------------------------------------------------------------------------------------

 

 

0 Kudos