Build the library again before you rebuild the bindings. --- Dennis Guse On Wed, May 21, 2014 at 9:23 AM, Jason Chen ??? <Jason.Chen at tpv-tech.com>wrote: > Hi all? > > I developed on android?I want to add some function in pjsua2, I do it > like that: > > 1. add declarations in hpp file. e.g, add ? int testFunc();? in > pjsip/include/pjsua2/media.hpp > > 2. add function in cpp file. e.g,add ?int Media::testFunc(){return > 100;}? in pjsip/src/pjsua2/media.cpp > > > > then,I follow these steps to build pjsua2 sample application: > > > > $ cd /path/to/your/pjsip/dir > > $ cd pjsip-apps/src/swig > > $ make > > > > I get the libpjsua2.so, but when i running pjsua2 sample application,I get > a crash? > > 05-21 13:40:52.924: E/AndroidRuntime(9410): Caused by: > java.lang.UnsatisfiedLinkError: Cannot load library: > soinfo_relocate(linker.cpp:980): cannot locate symbol > "_ZNK2pj5Media11getTypeTestEv" referenced by "libpjsua2.so"... > > > > What steps do I miss?? > > > > Best Regards, > > jason.chen > > > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip at lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20140521/3a7d4272/attachment.html>