Hello,
I'm working on porting webRTC demo to Mediatec MIPS architecture using OpenWRT, I've write a new makefile and it compiles, but when I run the executable it has these errors.
root@OpenWrt:/# baresip-webrtc
Local network address: IPv4=wlan0|192.168.1.1
dtls_srtp: failed to enable SRTP profile (Function not implemented)
module dtls_srtp.so: Function not implemented
could not pre-load module 'dtls_srtp' (Function not implemented)
aucodec: opus/48000/2
aucodec: G722/16000/1
ausrc: aufile
vidsrc: fakevideo
vidisp: fakevideo
dl: mod: /usr/lib/baresip/modules/avformat.so (Error loading shared library /usr/lib/baresip/modules)
module avformat.so: No such file or directory
could not pre-load module 'avformat' (No such file or directory)
dl: mod: /usr/lib/baresip/modules/v4l2.so (Error loading shared library /usr/lib/baresip/modules/v4l)
module v4l2.so: No such file or directory
could not pre-load module 'v4l2' (No such file or directory)
ausrc: alsa
auplay: alsa
demo: medianat 'ice' not found
failed to init demo: No such file or directory
I'm struggle to understand why the demo cannot find the ice module?
I've updated baresip to the newer version 1.0.0 in the openwrt repository
My Makefile is simple as you can see.
TARGET:=baresip-webrtc
SOURCES:=\
src/demo.c \
src/session.c \
src/main.c \
src/util.c
OBJECTS:=\
demo.o \
session.o \
main.o \
util.o
#CFLAGS := -I$(TARGET_DIR)/usr/include/
#CFLAGS += -I$(TARGET_DIR)/usr/include/re/
#CFLAGS += -I$(TARGET_DIR)/usr/include/gpiohal/
#LDFLAGS += -L$(TOOLCHAIN_DIR)/usr/lib -L$(TOOLCHAIN_DIR)/lib
#LDFLAGS += -L$(TARGET_DIR)/usr/lib/ -L$(TARGET_DIR)/lib/
LDFLAGS += -lbaresip -lre -lrem
#LDFLAGS += -L.
all: build $(TARGET)
build:
$(CC) $(CFLAGS) $(LDFLAGS) -fPIC $(SOURCES) -c
$(TARGET):
$(CC) $(CFLAGS) $(LDFLAGS) $(OBJECTS) src/main.c -o $(TARGET)
clean:
rm *.o $(TARGET)
Best regards.