[asterisk-users] Hi reg. asterisk Compilation

Tzafrir Cohen tzafrir.cohen at xorcom.com
Thu Jan 4 11:24:16 MST 2007


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#16849755                    jabber:tzafrir at jabber.org
+972-50-7952406           mailto:tzafrir.cohen at xorcom.com       
http://www.xorcom.com  iax:guest at local.xorcom.com/tzafrir


More information about the asterisk-users mailing list