[FFmpeg-soc] libavfilter/Makefile (undefined references)
Víctor Paesa
victorpaesa at googlemail.com
Sat Nov 10 18:42:32 CET 2007
Hi,
Cygwin (well, actually PE/COFF) does not support undefined references
and reported:
home/Inma/src/ffmpeg-svn/ffmpeg/libavfilter/avfilter.c:282: undefined
reference to `_avcodec_get_chroma_sub_sample'
defaults.o: In function `avfilter_default_get_video_buffer':
/home/Inma/src/ffmpeg-svn/ffmpeg/libavfilter/defaults.c:49: undefined
reference to `_avpicture_alloc'
defaults.o: In function `avfilter_default_free_video_buffer':
/home/Inma/src/ffmpeg-svn/ffmpeg/libavfilter/defaults.c:27: undefined
reference to `_avpicture_free'
vf_crop.o: In function `config_input':
/home/Inma/src/ffmpeg-svn/ffmpeg/libavfilter/vf_crop.c:104: undefined
reference to `_avcodec_get_chroma_sub_sample'
vf_negate.o: In function `config_props':
/home/Inma/src/ffmpeg-svn/ffmpeg/libavfilter/vf_negate.c:43: undefined
reference to `_avcodec_get_chroma_sub_sample'
vf_overlay.o: In function `config_input_main':
/home/Inma/src/ffmpeg-svn/ffmpeg/libavfilter/vf_overlay.c:109:
undefined reference to `_avcodec_get_chroma_sub_sample'
vf_overlay.o: In function `request_frame':
/home/Inma/src/ffmpeg-svn/ffmpeg/libavfilter/vf_overlay.c:164:
undefined reference to `_av_picture_copy'
/home/Inma/src/ffmpeg-svn/ffmpeg/libavfilter/vf_overlay.c:164:
undefined reference to `_av_picture_copy'
vf_scale.o: In function `config_props':
/home/Inma/src/ffmpeg-svn/ffmpeg/libavfilter/vf_scale.c:92: undefined
reference to `_sws_freeContext'
/home/Inma/src/ffmpeg-svn/ffmpeg/libavfilter/vf_scale.c:102: undefined
reference to `_sws_getContext'
vf_scale.o: In function `end_frame':
/home/Inma/src/ffmpeg-svn/ffmpeg/libavfilter/vf_scale.c:133: undefined
reference to `_sws_scale'
Would create any problem a patch like this one:
$ svn diff /home/Inma/src/ffmpeg-svn/ffmpeg/libavfilter/Makefile
Index: /home/Inma/src/ffmpeg-svn/ffmpeg/libavfilter/Makefile
===================================================================
--- /home/Inma/src/ffmpeg-svn/ffmpeg/libavfilter/Makefile (revision 1437)
+++ /home/Inma/src/ffmpeg-svn/ffmpeg/libavfilter/Makefile (working copy)
@@ -1,6 +1,6 @@
include ../config.mak
-CFLAGS+=-I$(SRC_PATH)/libavcodec -I$(SRC_PATH)/libswscale
+CFLAGS+=-I$(SRC_PATH)/libavcodec -I$(SRC_PATH)/libswscale
-I$(SRC_PATH)/libavcodec
OBJS = avfilter.o \
avfiltergraph.o \
@@ -21,7 +21,7 @@
HEADERS = avfilter.h
-EXTRALIBS := -L$(BUILD_ROOT)/libavutil -lavutil$(BUILDSUF) $(EXTRALIBS)
+EXTRALIBS := -L$(BUILD_ROOT)/libavutil -lavutil$(BUILDSUF)
-L$(BUILD_ROOT)/libswscale -lswscale$(BUILDSUF)
-L$(BUILD_ROOT)/libavcodec -lavcodec$(BUILDSUF) $(EXTRALIBS)
NAME=avfilter
LIBVERSION=$(LAVFILTERVERSION)
Regards,
Víctor
More information about the FFmpeg-soc
mailing list