|
From: | Clement Chen |
Subject: | Re: [Linphone-users] Can Linphone use iLBC? |
Date: | Thu, 10 Apr 2008 09:49:11 +0800 |
ifndef LINPHONE_BUILD
LINPHONE_BUILD="../../"
endif
PLUGINS_MAKEFILE=$(LINPHONE_BUILD)/mediastreamer2/plugins/plugins.mk
all:
$(MAKE) -f $(PLUGINS_MAKEFILE) LINPHONE_BUILD=$(LINPHONE_BUILD)\
PLUGIN_LIBS="-L/usr/local/lib -ldl -lm -lilbc" \
PLUGIN_CFLAGS="-I/usr/local/include" \
PLUGIN_NAME=msilbc \
PLUGIN_OBJS=ilbc.o
dist:
$(MAKE) -f $(PLUGINS_MAKEFILE) LINPHONE_BUILD=$(LINPHONE_BUILD) \
PLUGIN_LIBS="-L/usr/local/lib -ldl -lm -lilbc" \
PLUGIN_CFLAGS="-I/usr/local/include" \
PLUGIN_NAME=msilbc \
PLUGIN_SOURCES="ilbc.c Makefile README ilbc-rfc3951.tar.gz" dist
install:
$(MAKE) -f $(PLUGINS_MAKEFILE) \
PLUGIN_LIBS="-L/usr/local/lib -ldl -lm -lilbc" \
PLUGIN_CFLAGS="-I/usr/local/include" \
PLUGIN_NAME=msilbc \
LINPHONE_BUILD=$(LINPHONE_BUILD) install
clean:
$(MAKE) -f $(PLUGINS_MAKEFILE) \
PLUGIN_LIBS="-L/usr/local/lib -ldl -lm -lilbc" \
PLUGIN_CFLAGS="-I/usr/local/include" \
LINPHONE_BUILD=$(LINPHONE_BUILD) clean
----------Makefile END-----------
2. Compile msilbc-2.0.0 and install
3. Start linphonec with '-d 6', and iLBC codec is successfully loaded.
BTW, I'm not sure what is missing in CentOS 5.1 on which I couldn't compile Linphone-2.1.1 Gtk interface. Fortunately, I could succeed compiling it on FedoraCore 8.
I'm currently studying how to write a Linphone plugin for a new Codec, such as G.729 or G.723. So I'd be very grateful if anyone who is experienced on that could provide me some guides... ^^;;
Hope this helps!
Clement.
Hi,
I'm still wondering if anyone has found a way around the ilbc plugin error with Linphone. I'm also curious about the advantages or disadvantages of ilbc over gsm? Living far out in the country, I'm on a slow dial-up connection, so bandwidth is the primary concern. GSM isn't bad, but from what I understand of ilbc, it would be a better solution.
In any event, no matter what I've tried, I still get the error below when running linphonec -d6 -l linphone.log. The libs build fine, as does the plugin itself. I had thought that perhaps the plugin wasn't finding the main header files, so as a test, I tried removing the 2 includes in ilbc.c. Doing that causes it to not compile at all, as would be expected.
Any help would be greatly appreciated. :)
Steve
-----
ortp-message-oRTP-0.14.2 initialized.
ortp-message-Registering all filters...
ortp-message-Registering all soundcard handlers
ortp-message-Card ALSA: default device added
ortp-message-Card ALSA: Intel 82801BA-ICH2 added
ortp-message-Card OSS: /dev/dsp added
ortp-message-Card OSS: /dev/dsp added
ortp-message-Card OSS: /dev/dsp0 added
ortp-message-Card OSS: /dev/dsp1 added
ortp-message-Card OSS: /dev/dsp2 added
ortp-message-Card OSS: /dev/dsp3 added
ortp-message-Loading plugins
ortp-message-Loading plugin
/usr/local/lib/mediastreamer/plugins/libmsilbc.so...
ortp-warning-Fail to load plugin
/usr/local/lib/mediastreamer/plugins/libmsilbc.so :
/usr/local/lib/mediastreamer/plugins/libmsilbc.so: undefined symbol:
iLBC_encode
ortp-message-ms_init() done
-----
_______________________________________________
Linphone-users mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/linphone-users
[Prev in Thread] | Current Thread | [Next in Thread] |