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: Simon Morlat
Subject: Re: [Linphone-developers] compile [libmediastreamer.so.0] problem
Date: Mon, 24 Sep 2007 16:29:32 +0200
User-agent: KMail/1.9.7

Hello,

Before everything, you should read a tutorial about automake/autoconf.
You'll learn that you should never edit a Makefile, but a Makefile.am, and 
you'll learn how to add files into library and add custom flags.

Simon

Le Wednesday 22 August 2007 16:26:00 Matt, vous avez écrit :
> Hello :)
>
> (How to rewrite mediastreamer2/Makefile to compile
> libmediastreamer.so.0with 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






reply via email to

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