Hello Dan, you are right, the prebuilt library is missing SONAME. After building the library with -Wl,-soname,libmyLibrary.so option, it works fine. Thank you very much.
On Tuesday, 27 February 2018 01:26:31 UTC+5:30, Dan Willemsen wrote: > > I'm not sure, but I suspect your SONAME is incorrect in your shared > library. Make sure that you've specified -Wl,-soname,libmyLibrary.so (or > equivalent) when building your library. > > - Dan > > On Mon, Feb 26, 2018 at 10:50 AM, Vasishath Kaushal <[email protected] > <javascript:>> wrote: > >> I dont know if this relates to ur case but i have faced a similar problem >> with cmake in the past. This is a general behaviour of make in which the >> binaries generated in build tree will always have hardcoded absolute paths >> to shared libraries. But if one runs make install and then uses those >> binaries, they have relative paths. >> The binaries generated by make install are the ones meant to be finally >> used and run on the target system. >> >> Did u also copy the binaries from an intermediate directory ? >> >> Hope this helps. >> >> -- >> -- >> You received this message because you are subscribed to the "Android >> Building" mailing list. >> To post to this group, send email to [email protected] >> <javascript:> >> To unsubscribe from this group, send email to >> [email protected] <javascript:> >> For more options, visit this group at >> http://groups.google.com/group/android-building?hl=en >> >> --- >> You received this message because you are subscribed to the Google Groups >> "Android Building" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> For more options, visit https://groups.google.com/d/optout. >> > > -- -- You received this message because you are subscribed to the "Android Building" mailing list. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-building?hl=en --- You received this message because you are subscribed to the Google Groups "Android Building" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
