I found that the problem is in .cdef, you cannot add
requires:
{
lib:
{
../third-party/lib/libsqlite3.so
}
}
Otherwise, it will have multiple definition problem during compilation in R16 package.
(not quite understand the root cause as no problem is found for compilation in R13 package)
As you mentioned above, you need to add “-L $(CURDIR)/…/third-party/lib/libsqlite3.so” in Makefile for mkapp.
However, for mksys, I don’t know where to add such “-L $(CURDIR)/…/third-party/lib/libsqlite3.so”…
But on my side, I can modify the .cdef file and .adef file to add the following:
.cdef:
requires:
{
lib:
{
sqlite3
}
}
.adef:
bundles:
{
file:
{
/home/owner/leaf/leaf-data/wp76/wp76-toolchain/sysroots/armv7a-neon-poky-linux-gnueabi/usr/lib/libsqlite3.so /lib/
/home/owner/leaf/leaf-data/wp76/wp76-toolchain/sysroots/armv7a-neon-poky-linux-gnueabi/usr/lib/libsqlite3.so.0 /lib/
}
}
It will use the libsqlite3.so in toolchain.
And it works for me to embed this testsql application in legato.cwe by adding the application in wifi.sdef.