I am trying to use an external library for a CPP project in Legato. I can create a C++ project and it compiles fine but I am not sure how to integrate and cross-compile an external library. I am able to use “headers only” libraries as they only contain templates but I am still unsure how to generate a .so to include it in the project.
I am trying to get up and running the PAHO project, more specifically the CPP version. The CPP version requires the C version to be installed first to compile. I can do it no problem on desktop but for sure the binaries won’t be working on legato.
They provide a CMakeList but I can’t find a way to use it with legato. Any help would really be appreciated. Thank you!