how can i add function in pjsua2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20140521/e222f87e/attachment.html>


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux