library problem

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

 




Benny Prijono schrieb:
> Klaus Darilion wrote:

>> But again strange is that grep finds it in the library (at least the 
>> string):
>> $ grep -r pj_crc32_calc lib
>> Binary file lib/libpjlib-util-i686-pc-mingw32.a matches
>>
> 
> Yeah it's strange, it looks like the build was missing all stuffs in 
> pjlib-util altogether, not just the CRC stuff. Are you not using the 

No. Currently I have 10 linker errors. If I remove 
-lpjlib-util-i686-pc-mingw32 I get 114 errors. Thus, most symbols are 
found, but only some of them are not found.

> stock Makefiles? 

I try to inlcude pjsip in a qt project using eclipse as IDE. Therefore, 
I added the libraries to the .pro file (which will be converted to 
Makefile by qt's qmake).


Maybe it's the order of the "-lpjlib-util" in the
> gcc command? Maybe this could help: 
> http://www.pjsip.org/trac/wiki/Getting_Started_Using

You are right. I changed to order to add libpjnath before pjlib-util and 
now it works. Very strange - I always thought the order of the libraries 
is irrelevant. Thus, you should add libpjnath to the Getting_started 
document. Here is my order of the libraries (in qt's .pro file):

INCLUDEPATH += ..\pjproject-0.8.0\pjlib\include \
     ..\pjproject-0.8.0\pjlib-util\include \
     ..\pjproject-0.8.0\pjnath\include \
     ..\pjproject-0.8.0\pjmedia\include \
     ..\pjproject-0.8.0\pjsip\include
LIBS += -L..\pjproject-0.8.0\pjlib\lib \
     -L..\pjproject-0.8.0\pjlib-util\lib \
     -L..\pjproject-0.8.0\pjnath\lib \
     -L..\pjproject-0.8.0\pjmedia\lib \
     -L..\pjproject-0.8.0\pjsip\lib \
     -L..\pjproject-0.8.0\third_party\lib \
     -lpjsua-i686-pc-mingw32 \
     -lpjsip-ua-i686-pc-mingw32 \
     -lpjsip-simple-i686-pc-mingw32 \
     -lpjsip-i686-pc-mingw32 \
     -lpjmedia-codec-i686-pc-mingw32 \
     -lpjmedia-i686-pc-mingw32 \
     -lpjnath-i686-pc-mingw32 \
     -lpjlib-util-i686-pc-mingw32 \
     -lpj-i686-pc-mingw32 \
     -lportaudio-i686-pc-mingw32 \
     -lgsmcodec-i686-pc-mingw32 \
     -lilbccodec-i686-pc-mingw32 \
     -lspeex-i686-pc-mingw32 \
     -lresample-i686-pc-mingw32 \
     -lmilenage-i686-pc-mingw32 \
     -lm -lwinmm -lole32 -lws2_32 -lwsock32


Although it now builds fine I still have a question :-)

Why is libpjsdp not needed? I thought by using pjsua (which is a 
complete VoIP stack) I thought that SDP functions will be needed too?

thanks
klaus


> 
> cheers,
>   -benny
> 
> 
>> Does somebody know what could be the cause of this problem?
>>
>> thanks
>> klaus
>>
>> _______________________________________________
>> 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
> 
> 



[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