Hello :)
(How to rewrite mediastreamer2/Makefile to compile
libmediastreamer.so.0 with my own library?)
I want to add my own library into mediastreamer2. (for example...ulaw.c)
I rewrite some configuration in mediastreamer2/src/Makefile and then
successed:
.c.o (and .c.obj & .c.lo)
if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR/$&.Tpo)" -c -o $@
$(MYFLAG) $< ...
which MYFLAG like this: myfile.o myfile2.o ...
(line:400~450)
But I found some problems when I type "make install" in linphone main
directory:
/usr/local/lib/libmediastreamer.so.0: undefined reference to 'xxxxx...'
I know libmediastreamer.so.0 is compiled by this command (when I
'make' in mediastreamer2/src/):
gcc -shared .libs/mscommon.o .libs/msfilter.o .libs/msqueue.o
.libs/msticker.o .libs/alaw.o .libs/ulaw.o .libs/mssndcard.o
.libs/msfileplayer.o .libs/msrtp.o .libs/dtmfgen.o .libs/msfilerec.o
.libs/ice.o .libs/tee.o .libs/msconf.o .libs/alsa.o .libs/oss.o
.libs/msspeex.o .libs/speexec.o .libs/gsm.o -Wl,--whole-archive
../../gsmlib/.libs/libgsm.a -Wl,--no-whole-archive -Wl,--rpath
-Wl,/root/linphone/linphone- 1.5.1/oRTP/src/.libs -Wl,--rpath
-Wl,/usr/local/lib ../../oRTP/src/.libs/libortp.so -lasound -lspeex
-lpthread -lrt -ldl -pthread -pthread -Wl,-soname
-Wl,libmediastreamer.so.0 -o .libs/libmediastreamer.so.0.0.0
...
I just want to add MFLAG after 'gcc -shared ...',
but I can't find this command in mediastreamer2/src/Makefile, where is it?
Could anyone help me?
Thanks :)
Chungyi
------------------------------------------------------------------------
_______________________________________________
Linphone-developers mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/linphone-developers