sample code with Java

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

 



Hello folks

I want to write a sip client in Java and found your lib to be very
promising. Sadly I have some problems with it.

When I build the lib from normal "./configure" followed by "make dep"
and then "make" I get an error
"/usr/bin/ld:
/home/txt/Downloads/pjproject-2.2.1/pjsip/lib/libpjsua2-x86_64-unknown-linux-gnu.a(account.o):
relocation R_X86_64_32 against `.rodata.str1.1' can not be used when
making a shared object; recompile with -fPIC"
full log of make is in make.log

so I added "-fPIC" to the CFLAGS and did a new build. This time it run
through. Then I added the sample java code from the pjsip book to my
program and entered my credentials. But this did not work as expected.
All I got was a problem again. The program crashed after creating the
account. Full log attached (java.log)

Does someone have an idea what am I doing wrong or if it is a problem
with the lib.

thanks in advance
txt.file
-------------- next part --------------
A non-text attachment was scrubbed...
Name: java.log
Type: text/x-log
Size: 5396 bytes
Desc: not available
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20140428/a6a4a660/attachment.log>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: make.log
Type: text/x-log
Size: 3545 bytes
Desc: not available
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20140428/a6a4a660/attachment-0001.log>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: OpenPGP digital signature
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20140428/a6a4a660/attachment.asc>


[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