[Top][All Lists]

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

Re: [Linphone-developers] compile [] problem

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

Modify 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 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 :)

Linphone-developers mailing list

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        /
                              i n v e n t

reply via email to

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