Hello, I'm trying to compile a package that depends on a pre-compiled library. I have .o, .h and .so files of the library (though I'm pretty sure .so and .h would suffice). The library files are in package/libs/libname. When trying to compile the original package, it calls package/libs/libname/compile as the library is a dependency of the package. However, as I said before, the library is already compiled and the task fails (I don't have the C files). How do I approach this problem?
Topic: Compiling package that depends on a pre-compiled library
The content of this topic has been archived on 24 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.
The binaries that you have must have been compiled for your target system's CPU type or they cannot work.
OpenWrt assumes that everything will be open source. Since your application package will almost certainly be the only one using the library, the simplest solution would be to put it in with the application sources and statically link it.
(Last edited by mk24 on 7 Sep 2017, 15:53)
The thing is, I need a GPL compliant archive of my source code, and due to some licensing issues I'm forced to use pre-compiled libraries. Static linking is not a viable solution as I have around 5 libraries and 10 packages that depend on them.
The discussion might have continued from here.