Hi, Stephen,
Sorry for replying this mail late due to my loaded work recently..^^;;
Finally, I figured it out that patching msilbc-2.0.0/Makefile is the best
way
to solve this library linking problem. Here is an example:
0. I used "./configure --prefix=/usr/local" to compile "ilbc-rfc3951"
* Then I used "/usr/local/lib" and "/usr/local/include" for following
steps.
1. Add two variables "PLUGIN_CFLAGS" and "PLUGIN_LIBS" in
msilbc-2.0.0/Makefile :
----------Makefile BEGIN-----------
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.