VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
rentorbuy at yahoo.com Guest
|
Posted: Sun Apr 13, 2008 12:40 pm Post subject: [asterisk-users] compilation of asterisk 1.4.19 with ilbc al |
|
|
I already have ilbc installed on my system. The files
are:
/usr/include/ilbc/iLBC_decode.h
/usr/include/ilbc/iLBC_define.h
/usr/include/ilbc/iLBC_encode.h
/usr/lib/libilbc.a
/usr/lib/libilbc.la
/usr/lib/libilbc.so -> libilbc.so.0.0.0
/usr/lib/libilbc.so.0 -> libilbc.so.0.0.0
/usr/lib/libilbc.so.0.0.0
However, if I do a "make" in asterisk-1.4.19, it will
not detect that libilbc.a is already on the system. If
I manually remove "codec_ilbc" from MENUSELECT_CODECS
in menuselect.makeopts then codecs/codec_ilbc.c will
compile to codec_ilbc.o because it finds the header
files (/usr/include/ilbc/iLBC_{en,de}code.h) but it
will fail to compile to codec_ilbc.so because it will
try to make the ilbc subdir which I haven't downloaded
the ilbc source code to.
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?
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com |
|
Back to top |
|
|
kpfleming at digium.com Guest
|
Posted: Tue Apr 15, 2008 6:51 pm Post subject: [asterisk-users] compilation of asterisk 1.4.19 with ilbc al |
|
|
Vieri wrote:
Quote: | 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. - "The Genuine Asterisk Experience" (TM) |
|
Back to top |
|
|
rentorbuy at yahoo.com Guest
|
Posted: Wed Apr 16, 2008 1:10 pm Post subject: [asterisk-users] compilation of asterisk 1.4.19 with ilbc al |
|
|
--- "Kevin P. Fleming" <kpfleming at digium.com> wrote:
Quote: | Vieri wrote:
Quote: | How can I tell the make system in 1.4.19 that ilbc
| is
Quote: | 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 |
|
Back to top |
|
|
rentorbuy at yahoo.com Guest
|
Posted: Thu Apr 17, 2008 2:19 am Post subject: [asterisk-users] compilation of asterisk 1.4.19 with ilbc al |
|
|
--- "Kevin P. Fleming" <kpfleming at digium.com> wrote:
Quote: | Vieri wrote:
Quote: | So basically I'm wondering if the Asterisk
make/configure process could do steps 1 and 2
automagically for me.
|
I can't find any other Linux distribution that
provides libilbc, so this
would be a very Gentoo-specific change if we did it.
Also, we'll have
the iLBC source code back in the main distribution
in the near future
when the licensing issues are worked out, so for
everyone else this will
become a non-issue.
|
I didn't know that. If that's the case then never mind
my request.
Quote: | Do you see any particular advantage to using the
system-provided
libilbc, given that we use it in static (not shared
object) form and it
would have to be relinked into Asterisk if it got
upgraded anyway?
|
No real advantage but I had to patch Gentoo's Asterisk
1.4.19 ebuild (ie "package") to avoid losing
/usr/lib/asterisk/modules/codec_ilbc.so and I took
advantage of the fact that there already exists an
ilbc ebuild for Gentoo.
If I want Gentoo users to upgrade seamlessly via the
package management system I can think of only two
choices:
1) change the 1.4.19 ebuild so that it runs the
contrib/scripts/getilbcsource.sh before compiling (but
I would still need to patch that script to remove the
"read")
2) change the * 1.4.19 ebuild so that it can take
advantage of ilbc provided by another ebuild (via
dependency).
I proposed option 2 for Gentoo users and it's working
fine for my system.
However, if you plan to get the iLBC source code back
in the main distribution soon then that's even better
and as I wrote before, you can ignore my request.
Thanks,
Vieri
____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ |
|
Back to top |
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|