FW: : Error while calling PJSUA API

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

 



Dear All,

Can anyone please look into the issue and comment as well?

Thanks & Regards,
- Senthil

-----Original Message-----
From: pjsip-bounces@xxxxxxxxxxxxxxx [mailto:pjsip-bounces at lists.pjsip.org]
On Behalf Of senthil at gotouchpoint.com
Sent: Friday, May 08, 2009 3:27 PM
To: pjsip at lists.pjsip.org
Subject: Re: : Error while calling PJSUA API

Dear Rafael Donato,

As per your suggestion I downloaded fresh Pjproject 1.2 from pjsip website.
Then I extracted the package and ran ./configure, make dep, make clean,
make commands without any error. Once the build process is completed I
tested the sample application under the path ../pjproject-1.2/pjsip-apps
directory successfully. But while compiling my application (attached) the
same error
occurs. Any suggestions? 

Note:

To compile my application I'm using 'gcc', since I've faced lot of problem
with make file. I modified the sample make file mentioned in the website
with no success. Even I went through the "GNU Make" documentation and
created my own make file, but no success. So I go for g++ with -idirafter
option as mentioned below. Incase If you have a make file which is working
fine, please forward it to me.   

[root at hdesk4 myproject]# g++ -idirafter
/usr/src/linux/pjproject-1.2/pjlib/include -idirafter
/usr/src/linux/pjproject-1.2/pjlib-util/include -idirafter
/usr/src/linux/pjproject-1.2/pjmedia/include -idirafter
/usr/src/linux/pjproject-1.2/pjsip/include -idirafter
/usr/src/linux/pjproject-1.2/pjnath/include -o myapp2.cpp-v myapp2.cpp 

/tmp/ccaYaO7j.o: In function `error_exit(char const*, int)':
myapp2.cpp:(.text+0x8e): undefined reference to `pjsua_perror'
myapp2.cpp:(.text+0x93): undefined reference to `pjsua_destroy'
/tmp/ccaYaO7j.o: In function `main':
myapp2.cpp:(.text+0xc2): undefined reference to `pjsua_create'
myapp2.cpp:(.text+0xf9): undefined reference to `pjsua_destroy'
collect2: ld returned 1 exit status

Thanks & Regards,
- Senthil

From: pjsip-bounces@xxxxxxxxxxxxxxx [mailto:pjsip-bounces at lists.pjsip.org]
On Behalf Of Rafael Donato
Sent: Thursday, May 07, 2009 10:05 PM
To: pjsip list
Subject: Re: FW: Error while calling PJSUA API

This is quite strange. It must be something missing on your steps.
Try to run make clean, or redo the steps described in tutorial.
Perhaps it could be better to follow the detailed statements given by the
full tutorial, just bellow the Quick Info.
By the way, just a dumb question: Did you run ./configure ?


Rafael Donato
Engenheiro de Software 



Senthil wrote: 

Dear Rafael Donato,
 
Any update on this issue?
 
Thanks & Regards,
- Senthil
 
-----Original Message-----
From: senthil@xxxxxxxxxxxxxxxx [mailto:senthil at gotouchpoint.com] 
Sent: Thursday, May 07, 2009 7:49 PM
To: rloureiro at lightcomm.com.br
Subject: RE: Error while calling PJSUA API
 
Dear Rafael Donato,
 
First of all thanks for your note. Actually I've already build PJSUA as
mentioned in "Getting Started" tutorial (i.e.) by running "make dep" and
"make". Do I need to build pjsua-lib seperately? If yes please let me know
the steps to build PJSUA-LIB.
 
Anticipating your reply.
 
Thanks & Regards,
- Senthil
 
 
From: Rafael Donato [mailto:rloureiro@xxxxxxxxxxxxxxxx] 
Sent: Thursday, May 07, 2009 7:33 PM
To: senthil at gotouchpoint.com; pjsip list
Subject: Re: Error while calling PJSUA API
 
 
 
Hi,
pjsua_perror is defined in PJSIP/pjsip/src/pjsua-lib.
Have you already built pjsua-lib?
 
Best regards,
 
Rafael Donato
Engenheiro de Software 
 
 
 
senthil at gotouchpoint.com wrote: 
 
Dear All,
 
I'm trying to call PJSUA APIs to create and destroy a session, but while
compiling my application I'm receiving the following error. Code snippet
attached. Can anybody tell me whether I'm missing anything?
 
/tmp/ccltDfSK.o: In function `error_exit(char const*, int)':
myapp2.cpp:(.text+0x8e): undefined reference to `pjsua_perror'
myapp2.cpp:(.text+0x93): undefined reference to `pjsua_destroy'
/tmp/ccltDfSK.o: In function `main':
myapp2.cpp:(.text+0xc2): undefined reference to `pjsua_create'
myapp2.cpp:(.text+0xf9): undefined reference to `pjsua_destroy'
collect2: ld returned 1 exit status
 
Thanks & Regards,
- Senthil
 
--------------------------------------------------------------------
mail2web.com - What can On Demand Business Solutions do for you?
http://link.mail2web.com/Business/SharePoint
 
  
 
 
 
 
 
 
  _____  
 
 
 
 
_______________________________________________
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
  
 
 
--------------------------------------------------------------------
mail2web.com - What can On Demand Business Solutions do for you?
http://link.mail2web.com/Business/SharePoint
 
 
 
_______________________________________________
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
  


--------------------------------------------------------------------
mail2web.com - What can On Demand Business Solutions do for you?
http://link.mail2web.com/Business/SharePoint

-------------- next part --------------
A non-text attachment was scrubbed...
Name: myapp2.cpp
Type: application/octet-stream
Size: 908 bytes
Desc: not available
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20090511/b1e40768/attachment.cpp>


[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