How to cross compile external libraries for an iMX6 device?
-
Hi, I am new to the cross-compiling world and I am struggling to understand how to cross-compile external libraries (such as crypto++, libtar, zlib, etc...) using QT Creator.
I have a custom Yocto distribution running on an iMX6 based board. I have generated the SDK toolchain and I am able to deploy simple C++ projects which don't use any external library. Now I need to use the libraries that I have listed before, what is the general procedure to do this task? Have I to edit my Yocto distribution in order to already include such libraries? What happens if there is no recipe for a certain library? There is a way in order to cross-compile them just while I am compiling the project? Thank you for any reply. -
Hi,
If you are using standard libraries, you are likely already covered by yocto. If you are using something more exotic, the best would likely to be creating the missing recipe for yocto so it can be treated as any other library on your system.
-
@sgaist So basically I am going to recreate the Yocto distribution with the new libraries (the ones that I can find from repositories such as OpenEmbedded, etc..) and then I am going to recreate the SDK with the updated rootfs of the target device, right ?
-
No need to re-create anything.
What exactly are you going build ?
-
@sgaist I am building a QT application which needs to be launched on an embedded board (based on a iMX6 processor). I have already created a custom Yocto distribution which includes the QT libraries, but I had not added any further library.
PS: I am really new to this kind of development process, so maybe I am missing something. -
I think this guide from wolfssl might be a good starting point.