cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
jrceokura
Adventurer
Adventurer
457 Views
Registered: ‎07-17-2018

Where is C library header files (e.g.stdio.h) that Petalinux-build use?

Jump to solution

Hi all.

I am porting application from RTOS to petalinux.

In this work, I should compare C library header files.

Because in RTOS has characteristic C library. It may be diffrent to petalinux's.

This diffrencies probably cause bugs.

Therefore I want to read header files.

But I strictly don't know where are. I want to accurate infomation.

Best regard.

0 Kudos
1 Solution

Accepted Solutions
jrceokura
Adventurer
Adventurer
59 Views
Registered: ‎07-17-2018

I solved this question.

The header file path is "build/tmp/sysroots/plnx_arm".

Best regards.

 

View solution in original post

0 Kudos
3 Replies
aravindb
Moderator
Moderator
390 Views
Registered: ‎02-07-2018

Hi @jrceokura 

Please follow the stpes mentioned in ug1144 guide for creating applications in petalinux:https://www.xilinx.com/support/documentation/sw_manuals/xilinx2019_2/ug1144-petalinux-tools-reference-guide.pdf (Section :Creating and Adding Custom Applications) 

petalinux-create -t apps --template c --name myapp --enable  -- >This will create an application source code in <plnx-proj-root>/project-spec/
meta-user/recipes-apps/myapp directory , you just need to replace with your own code & build it.

 

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.
----------------------------------------------------------------------------------------------

 

 

 

 

 

jrceokura
Adventurer
Adventurer
368 Views
Registered: ‎07-17-2018

Hi @aravindb 

Thank you for replying, but it's not things I want to know.

I want to know C library header file path. (e.g. stdio.h string.h)

Is it "/usr/include"?

My development machine is ubuntu 16.04 LTS.

My petalinux version is 2017.4.

Best regards.

0 Kudos
jrceokura
Adventurer
Adventurer
60 Views
Registered: ‎07-17-2018

I solved this question.

The header file path is "build/tmp/sysroots/plnx_arm".

Best regards.

 

View solution in original post

0 Kudos