[Top][All Lists]

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

[Linphone-developers] Plugin Makefile help

From: M Walton
Subject: [Linphone-developers] Plugin Makefile help
Date: Thu, 6 Jan 2011 12:35:14 -0000

Hi all,

I am trying to compile a plugin on ubuntu which compiles and works fine on a 
blackfin, but am having a runtime issue

I have modified the console app to include a global variable which is exported, 
and the plugin gets access to this variable

my makefile for the plugin is

CC     = gcc
SRCP   = /home/billy/projects/linphone/linphone

CFLAGS += -g -O2 -fno-strict-aliasing -Wall -fPIC
CFLAGS += -I$(SRCP)/mediastreamer2/include -I$(SRCP)/oRTP/include  = -shared -Wl,-soname,
LDLIBS_test        = $(LDLIBS) -L. -lmslisgw


all: $(LIBS) $(BINS) mslisgw.o 
        $(CC) $(CFLAGS) -o $@ $^ $(LDLIBS_$@) $(LDFLAGS_$@)
        cp /home/billy/projects/linphonelis/ 

        rm -f *.o $(BINS) $(LIBS)

.PHONY: all clean 

I have to include the -fPIC flag as its a shared library, but after i have done 
this and i run linphonec, i get the following error

ortp-warning-Fail to load plugin 
/usr/local/lib/mediastreamer/plugins/ : 
/usr/local/lib/mediastreamer/plugins/ undefined symbol: 

so i think the -fPIC is changing the format incorrectly, when i compile 
linphone it uses the CC syntax - could someone tell me the correct flags for 
the CFLAGS variable in linphone so i can match it when i compile my plugin?

im using the trunk version of linphone

Many thanks



reply via email to

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