cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Observer
Observer
734 Views
Registered: ‎10-30-2018

How to link boost/gflags/glog library whth SDSoC

I want to migrate an application from VS2013 to SDsoc.

The application worked well in VS2013 windows 10 ,but  how to migrate it  to SDSoC.

When running in windows the application needs many compiled libraries ,the libraries were compiled to  .dll files.

Whether the sdsoc have  ability to read the .dll files for cross compilation.

if it can't read the .dll files, what should i do to migrate program . Copy the source code for each library and compile together?

Or some suggestion.

0 Kudos
3 Replies
Highlighted
Voyager
Voyager
683 Views
Registered: ‎10-21-2015

Hi 

You should build sysroot including those libraries using petalinux

Add the following to <your petalinux project>/project-spec/meta-user/recipes-core/images/petalinux-user-image.bbappend

 

IMAGE_INSTALL_append = " boost-dev gflags-dev glog-dev"

After petalinux-build, use <your petalinux project>/images/linux/rootfs.tar.gz as sysroot

 

Highlighted
Observer
Observer
660 Views
Registered: ‎10-30-2018

emmmm, how to generate those libxxxx.so?

compile the lib source code with the arm-linux-gnueabihf-g++ ?

and

what's the differences between the arm-xilinx-linux-gnueabi-gcc   and  arm-linux-gnueabihf-gcc ?

Thanks.

0 Kudos
Highlighted
Voyager
Voyager
643 Views
Registered: ‎10-21-2015

Use petalinux tool

It is not easy to use g++  or make to compile those libraries because they have complicated library dependencies and you should also install all dependent libraries

0 Kudos