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: 
Visitor ganeshk
Visitor
7,086 Views
Registered: ‎10-20-2015

Adding Petalinux repository items to custom applications.

Greetings everyone,

I am adding custom application using Petalinux 2014.4 tools to a zedboard.

I need to access openssl-dev header files in the application.

I used ug1144 to add a custom application template and proceeded from it. Being a complete Linux novice,

I can't understand how to add libraries to my application.

I can see openssl headers and compiled library is present in 

<install_dir>/petalinux-v2014.4-final/components/packages-repo/plnx-rep/pool/main/o/openssl-dev

 

As a hack, i unarchived them and tried to hardcode path and library name in application makefile - LDFLAGS and LDLIBS.

But I get numerous undefined reference errors.

 

Similarly, I followed this article to build openssl from source and have same issues when I compile my app.

http://www.xilinx.com/support/answers/60384.htm

 

I understand this issue is due to my lack of understanding of makefiles and petalinux. What changes are required in my makefile to unarchive openssl and reference them in my application? I would appreciate if someone explains me this in context of Petalinux distro.

 

Xilinx UG1144 explains how to add custom user libraries, but I think my query is more how to reference libararies in applications correctly.

 

<Cross posted on stack overflow>

 

Thanks

 

0 Kudos