To compile this demo follow the following steps (you can also run ./compile.sh
which does all the steps):
-1) Download modules from FRESCOR subversion repository:
-
- src/update-svn-revision
-
-2) Download/update git submodules
+1) Download/update git submodules
git submodule init
git submodule update
-3) Compile it
+2) Compile it
cd build
- ( cd ffmpeg && ./configure4omk )
+ ( cd ffmpeg && ./configure )
make default-config
echo CONFIG_AQUOSA=y >>config.omk
make
SUBDIRS=$(ALL_OMK_SUBDIRS)
+default_CONFIG=CONFIG_FFMPEG_WITH_FRSH=y
+
SUBDIRS += ffmpeg/libavcodec ffmpeg/libavdevice ffmpeg/libavfilter \
ffmpeg/libavformat ffmpeg/libavutil ffmpeg/libpostproc \
ffmpeg/libswscale
--- /dev/null
+lib_LIBRARIES:=$(NAME)
+$(NAME)_SOURCES:=$(OBJS:%.o=%.c) $(OBJS-y:%.o=%.c) $(OBJS-yes:%.o=%.c)
+renamed_include_HEADERS:=$(foreach h,$(HEADERS),$(h)->lib$(NAME)/$(h) )
+INCLUDES += -I $(dir $(srcdir:%/=%)) # this should point to ffmpeg sources
+
+ifeq ($(FFMPEG_SUBDIR),libavcodec)
+SUBDIRS=x86
+endif
+
+ifeq ($(FFMPEG_SUBDIR),libavformat)
+ifeq ($(CONFIG_FFMPEG_WITH_FRSH),y)
+$(NAME)_SOURCES := $(filter-out udp.c,$(NAME)_SOURCES) frsh.c
+endif
+endif
ifeq ($(RELATIVE_DIR:ffmpeg%=ffmpeg),ffmpeg)
# Allow building ffmpeg by OMK
-
define FFMPEG_OMKIZE
lib_LIBRARIES:=$(NAME)
$(NAME)_SOURCES:=$(OBJS:%.o=%.c) $(OBJS-y:%.o=%.c) $(OBJS-yes:%.o=%.c)
$(Q)make DEPS="" -C $(SOURCES_DIR) -qp -f $< |sed -ne '/# Pattern-specific Variable Values/,$$ d' -e '/# makefile/,+1 p'|\
sed -e /^define/d -e "/^#/d" -e "/^MAKE/d" > $@
# echo '$(value FFMPEG_OMKIZE)' >> $@ # There is a bug in make
-ifeq ($(SOURCES_DIR:%/libavcodec=YES),YES)
- $(Q)echo 'SUBDIRS=x86' >> $@
-endif
+ $(Q)echo "FFMPEG_SUBDIR=$(RELATIVE_DIR:ffmpeg/%=%)" >> $@
$(Q)cat $(MAKERULES_DIR)/Makefile.omk.ffmpeg >> $@
$(Q)echo 'CFLAGS := $(CFLAGS) $$(CFLAGS)' >> $@
# Instead, we call normal gcc with parameters which mgcc adds
-CFLAGS=$(ARCH_GCC_OPTS) -Wall -Wuninitialized -g -O1 -D_REENTRANT -D$(PLATFORM) -D_XOPEN_SOURCE=600 -D_BSD_SOURCE
+CFLAGS=$(ARCH_GCC_OPTS) -Wall -Wuninitialized -g -O1 $(CFLAGS-y) -D_REENTRANT -D$(PLATFORM) -D_XOPEN_SOURCE=600 -D_BSD_SOURCE
+CFLAGS-$(CONFIG_FFMPEG_WITH_FRSH) = -DCONFIG_FFMPEG_WITH_FRSH=y
+
LDFLAGS=$(ARCH_LD_OPTS) $(LIBS_PATH) $(LIBS)
LDFLAGS += '-Wl,-rpath,$$ORIGIN/../lib' -z origin --enable-new-dtags
-Subproject commit 74b7334ba3042282d93e60c1c152c461a703c494
+Subproject commit a9550dce057995d4a5374217640ea8c0fba661f6
-Subproject commit 539f0126e80a67deb6905f6da73dd4e18d0d6386
+Subproject commit c70b54d49bd2c66becd708f22d210244b13c7a94