Re: [asterisk-users] Hi reg. asterisk Compilation

2007-01-04 Thread Tzafrir Cohen
On Thu, Jan 04, 2007 at 11:55:44AM -0500, Noah Miller wrote:
> Hi Thiru -
> 
> > Hi i need to done some  modify/changes in one of the asterisk c source 
> > code
> >,,eg: app_meetme.c
> > How can i compile and debug it without compile the whole module of
> >asterisk...
> 
> I would not recommend trying to compile only small pieces of asterisk.
> It is broken up into many sections, and many of these sections depend
> on other sections, and won't compile correctly when compiled alone.
> 
> Nonetheless, if you do want to try to compile just app_meetme.c, it is
> in the "apps" directory of the source code.  For example, that may be
> here:
> 
> /usr/local/src/asterisk-1.2.14/apps
> 
> You'll probably have to compile asterisk as a whole first, 

./configure
make

mind you, you need to have a recent (1.4) version of Zaptel availble.
Otherwise the configure script will consider zaptel not availble and not
build meetme.

> and then
> figure out a gcc statement that links with all the other asterisk
> components to compile just app_meetme.c.

make

Asterisk's build system does not support running make from a
subdirectory or for specific targets of subdirectories.

-- 
   Tzafrir Cohen   
icq#16849755jabber:[EMAIL PROTECTED]
+972-50-7952406   mailto:[EMAIL PROTECTED]   
http://www.xorcom.com  iax:[EMAIL PROTECTED]/tzafrir
___
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Hi reg. asterisk Compilation

2007-01-04 Thread Noah Miller

Hi Thiru -


 Hi i need to done some  modify/changes in one of the asterisk c source code
,,eg: app_meetme.c
 How can i compile and debug it without compile the whole module of
asterisk...


I would not recommend trying to compile only small pieces of asterisk.
It is broken up into many sections, and many of these sections depend
on other sections, and won't compile correctly when compiled alone.

Nonetheless, if you do want to try to compile just app_meetme.c, it is
in the "apps" directory of the source code.  For example, that may be
here:

/usr/local/src/asterisk-1.2.14/apps

You'll probably have to compile asterisk as a whole first, and then
figure out a gcc statement that links with all the other asterisk
components to compile just app_meetme.c.

Unless you're on a really slow machine, I think it would probably be
easier to just recompile all of asterisk.



 and also let me know which editor suitable it ,I'm using suse linux..
 Plz help me reg. this ..


That's a religious question.  Everybody has their favorite editor.  I
like gnu's nano, but there's lots of other popular editors: emacs, vi,
gedit, etc.


- Noah
___
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


[asterisk-users] Hi reg. asterisk Compilation

2007-01-04 Thread Thirumal Saminathan

Hi moises,
Hi i need to done some  modify/changes in one of the asterisk c source code
,,eg: app_meetme.c
How can i compile and debug it without compile the whole module of
asterisk...
and also let me know which editor suitable it ,I'm using suse linux..
Plz help me reg. this ..


-nsthi,
___
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users