[asterisk-users] compilation of asterisk 1.4.19 with ilbc already on system
Vieri
rentorbuy at yahoo.com
Wed Apr 16 13:10:35 CDT 2008
--- "Kevin P. Fleming" <kpfleming at digium.com> wrote:
> Vieri wrote:
>
> > How can I tell the make system in 1.4.19 that ilbc
> is
> > already on the system and that it should link to
> > /usr/lib/libilbc.a?
> >
> > Shouldn't the configure script do that?
>
> No; the Asterisk build system has never had support
> for using a
> system-provided version of the iLBC library.
>
> Whoever provided you that library could easily run
> afoul of the same
> licensing issues that caused us to remove the code
> from our Asterisk
> distribution, and using that library does not
> obviate you from the need
> to register your intent to use the codec if you are
> using it for
> commercial purposes.
>
> --
> Kevin P. Fleming
> Director of Software Technologies
> Digium, Inc.
Thanks but I'm curious.
I'm using Gentoo Linux and there's an "ebuild" (ie.
"package") to install the iLBC development library.
Gentoo "ebuilds" are scripts that automatically
download upstream source code, compile and install (no
"binary packages").
As far as licensing is concerned, all ebuilds are
required to specify the type of license. So in case of
iLBC, the "LICENSE" keyword points to
http://www.ilbcfreeware.org/documentation/gips_iLBClicense.pdf.
Thus, when iLBC is installed via this ebuild the user
knows the license its under (and therefore accepts it
whether for commercial or personal use).
I don't see the legal problem with installing iLBC
this way.
So I had to slightly change the asterisk build
process:
1) modify the codecs Makefile:
--- codecs/Makefile.orig 2008-04-14 12:48:09.000000000
+0200
+++ codecs/Makefile 2008-04-14 12:49:46.000000000
+0200
@@ -29,7 +29,7 @@
LOADABLE_MODS:=
endif
-LIBILBC:=ilbc/libilbc.a
+LIBILBC:=/usr/lib/libilbc.a
LIBLPC10:=lpc10/liblpc10.a
all: _all
@@ -56,6 +56,6 @@
$(if $(filter
codec_lpc10,$(EMBEDDED_MODS)),modules.link,codec_lpc10.so):
$(LIBLPC10)
$(LIBILBC):
- @$(MAKE) -C ilbc all ASTCFLAGS="$(filter-out
-Wmissing-prototypes
-Wmissing-declarations,$(ASTCFLAGS))
$(AST_NO_STRICT_OVERFLOW)"
+ @echo "Using /usr/lib/libilbc.a"
$(if $(filter
codec_ilbc,$(EMBEDDED_MODS)),modules.link,codec_ilbc.so):
$(LIBILBC)
2) remove codec_ilbc from MENUSELECT_CODECS in
menuselect.makeopts so that codec_ilbc gets built by
asterisk:
make menuselect.makeopts
sed -i -e "s:codec_ilbc::" menuselect.makeopts
3) make asterisk as usual
So basically I'm wondering if the Asterisk
make/configure process could do steps 1 and 2
automagically for me.
Vieri
____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
More information about the asterisk-users
mailing list