UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Newbie williamti
Newbie
439 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
Moderator
Moderator
417 Views
Registered: ‎02-07-2018

Re: gcc for petalinux

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