pjsipSample don't work

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

 



Hello Mr;
 First, I would like to thank you and all your team for the great job you
have done.
I downloaded the code source form this link The 2.x series:
http://svn.pjsip.org/repos/pjproject/trunk. And I succeeded to compile it
with VC2012  and produced all the .lib and exe that was contained in the
pjsip-apps folder.
Until there all things went ok  but when I tried this code using VC2012
console project(see attach file), I got these errors:



>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> *1>------ D?but de la g?n?ration : Projet : Win32Project1, Configuration :
> Debug Win32 ------1>  stdafx.cpp1>  Win32Project1.cpp1>Win32Project1.obj :
> error LNK2019: symbole externe non r?solu _pj_log_get_level r?f?renc? dans
> la fonction "void __cdecl on_call_state(int,struct pjsip_event *)"
> (?on_call_state@@YAXHPAUpjsip_event@@@Z) 1>Win32Project1.obj : error
> LNK2019: symbole externe non r?solu _pj_log_3 r?f?renc? dans la fonction
> "void __cdecl on_call_state(int,struct pjsip_event *)"
> (?on_call_state@@YAXHPAUpjsip_event@@@Z)1>Win32Project1.obj : error
> LNK2019: symbole externe non r?solu _pj_strltrim r?f?renc? dans la fonction
> _pj_strtrim 1>Win32Project1.obj : error LNK2019: symbole externe non r?solu
> _pj_strrtrim r?f?renc? dans la fonction _pj_strtrim1>Win32Project1.obj :
> error LNK2019: symbole externe non r?solu _pj_pool_alloc r?f?renc? dans la
> fonction _pj_strdup 1>Win32Project1.obj : error LNK2019: symbole externe
> non r?solu _pjsua_logging_config_default r?f?renc? dans la fonction
> _main1>Win32Project1.obj : error LNK2019: symbole externe non r?solu
> _pjsua_config_default r?f?renc? dans la fonction _main 1>Win32Project1.obj
> : error LNK2019: symbole externe non r?solu _pjsua_create r?f?renc? dans la
> fonction _main1>Win32Project1.obj : error LNK2019: symbole externe non
> r?solu _pjsua_init r?f?renc? dans la fonction _main 1>Win32Project1.obj :
> error LNK2019: symbole externe non r?solu _pjsua_start r?f?renc? dans la
> fonction _main1>Win32Project1.obj : error LNK2019: symbole externe non
> r?solu _pjsua_destroy r?f?renc? dans la fonction "void __cdecl
> error_exit(char const *,int)" (?error_exit@@YAXPBDH at Z) 1>Win32Project1.obj
> : error LNK2019: symbole externe non r?solu _pjsua_verify_url r?f?renc?
> dans la fonction _main1>Win32Project1.obj : error LNK2019: symbole externe
> non r?solu _pjsua_perror r?f?renc? dans la fonction "void __cdecl
> error_exit(char const *,int)" (?error_exit@@YAXPBDH at Z) 1>Win32Project1.obj
> : error LNK2019: symbole externe non r?solu _pjsua_transport_config_default
> r?f?renc? dans la fonction _main1>Win32Project1.obj : error LNK2019:
> symbole externe non r?solu _pjsua_transport_create r?f?renc? dans la
> fonction _main 1>Win32Project1.obj : error LNK2019: symbole externe non
> r?solu _pjsua_acc_config_default r?f?renc? dans la fonction
> _main1>Win32Project1.obj : error LNK2019: symbole externe non r?solu
> _pjsua_acc_add r?f?renc? dans la fonction _main 1>Win32Project1.obj : error
> LNK2019: symbole externe non r?solu _pjsua_call_make_call r?f?renc? dans la
> fonction _main1>Win32Project1.obj : error LNK2019: symbole externe non
> r?solu _pjsua_call_get_info r?f?renc? dans la fonction "void __cdecl
> on_call_media_state(int)" (?on_call_media_state@@YAXH at Z)
> 1>Win32Project1.obj : error LNK2019: symbole externe non r?solu
> _pjsua_call_answer r?f?renc? dans la fonction "void __cdecl
> on_incoming_call(int,int,struct pjsip_rx_data *)"
> (?on_incoming_call@@YAXHHPAUpjsip_rx_data@@@Z) 1>Win32Project1.obj : error
> LNK2019: symbole externe non r?solu _pjsua_call_hangup_all r?f?renc? dans
> la fonction _main1>Win32Project1.obj : error LNK2019: symbole externe non
> r?solu _pjsua_conf_connect r?f?renc? dans la fonction "void __cdecl
> on_call_media_state(int)" (?on_call_media_state@@YAXH at Z)
> 1>C:\Users\5635acer\Documents\Visual Studio
> 2012\Projects\Win32Project1\Debug\Win32Project1.exe : fatal error LNK1120:
> 22 externes non r?solus========== G?n?ration : 0 a r?ussi, 1 a ?chou?, 0
> mis ? jour, 0 a ?t? ignor? ========== *


PS:
 I found an erro in pjsip_auth.h, I found it like this in both  SVN source
code link and .zip file link


















*#ifndef __PJSIP_AUTH_H__#define __PJSIP_AUTH_H__ /** * @defgroup
PJSIP_AUTH SIP Authorization module *//** * @file pjsip_auth.h * @brief SIP
Authorization Module. */#include <pjsip_auth/sip_auth.h> #include
<pjsip_auth/sip_auth_msg.h>#include <pjsip_auth/sip_auth_parser.h>#endif
/* __PJSIP_AUTH_H__ */*

But there is not such folder under PJSipCodeSourceHomeFolder\pjsip\include
so I changed to





*#include <pjsip/sip_auth.h>    #include <pjsip/sip_auth_msg.h>    #include
<pjsip/sip_auth_parser.h>*
*** I put all generated .lib from the pjsua code source project in .lib
folder of VC2012 and for include file in include folder of VC2012
* You can find those lib and include file in this link
http://speedy.sh/hzCGP/pjsipLib.zip
*I sent many e-mail to pjsip at lists.pjsip.org but no response


Thank you
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20140208/b2c35fc2/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pjsipSample.c
Type: text/x-csrc
Size: 6511 bytes
Desc: not available
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20140208/b2c35fc2/attachment-0001.c>


[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