[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
LDFLAGS_libmslisgw.so = -shared -Wl,-soname,libmslisgw.so
LDLIBS_test = $(LDLIBS) -L. -lmslisgw
LIBS = libmslisgw.so
BINS =
all: $(LIBS) $(BINS)
libmslisgw.so: mslisgw.o
$(CC) $(CFLAGS) -o $@ $^ $(LDLIBS_$@) $(LDFLAGS_$@)
cp /home/billy/projects/linphonelis/libmslisgw.so
/usr/local/lib/mediastreamer/plugins/
clean:
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/libmslisgw.so :
/usr/local/lib/mediastreamer/plugins/libmslisgw.so: undefined symbol:
LisgwGLOBALS
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
Billy
<<winmail.dat>>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Linphone-developers] Plugin Makefile help,
M Walton <=