[Top][All Lists]

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

[Linphone-developers] compile [] problem

From: Matt
Subject: [Linphone-developers] compile [] problem
Date: Wed, 22 Aug 2007 22:26:00 +0800

Hello :)
(How to rewrite mediastreamer2/Makefile to compile 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 ...
But I found some problems when I type "make install" in linphone main directory:
/usr/local/lib/ undefined reference to 'xxxxx...'
I know 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/ -lasound -lspeex -lpthread -lrt -ldl  -pthread -pthread -Wl,-soname -Wl, -o .libs/
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 :)

reply via email to

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