01-23-2019 12:36 AM
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.
01-27-2019 12:04 PM - edited 01-27-2019 12:05 PM
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
01-27-2019 10:14 PM - edited 01-27-2019 10:14 PM
emmmm, how to generate those libxxxx.so?
compile the lib source code with the arm-linux-gnueabihf-g++ ?
what's the differences between the arm-xilinx-linux-gnueabi-gcc and arm-linux-gnueabihf-gcc ?
01-28-2019 08:16 PM - edited 01-28-2019 08:35 PM
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