linphone-developers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Linphone-developers] compile [libmediastreamer.so.0] problem


From: Francois-Xavier KOWALSKI
Subject: Re: [Linphone-developers] compile [libmediastreamer.so.0] problem
Date: Mon, 03 Sep 2007 08:57:17 +0200
User-agent: Thunderbird 2.0.0.5 (X11/20070716)

Modify Makefile.am instead of Makefile. "make" will then re-run auto-tools as needed & regenerate a Makefile that includes your code.

Matt wrote:
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

--
Francois-Xavier "FiX" KOWALSKI     /_ __        Tel:+33 (0)4 76 14 63 27
HP OpenCall Software  - EMTS      / //_/        Fax:+33 (0)4 76 14 51 62
Media-Processing Engineering        /      http://www.hp.com/go/opencall
                              i n v e n t





reply via email to

[Prev in Thread] Current Thread [Next in Thread]