[FFmpeg-devel] [PATCH] Fix linking on OS/2

Måns Rullgård mans
Fri Jun 4 14:13:15 CEST 2010


Dave Yeo <daveryeo at telus.net> writes:

> libavformat now has a dependency on libavutil causing this error on a

libavformat has depended on libavutil for as long as libavutil has
existed.  Nothing has changed there.

> static build (similar error building a shared libavformat)
> [...]
> R:\tmp\ldconv_libavformat_s_a_74454c088fcb1ebd70.lib(utils.obj) :
> error LNK2029: "_ff_toupper4" : unresolved external
> R:\tmp\ldconv_libavformat_s_a_74454c088fcb1ebd70.lib(utils.obj) :
> error LNK2029: "_av_get_codec_tag_string" : unresolved external
>
> There were 2 errors detected
> make: *** [ffmpeg_g.exe] Error 1

What is the exact command that fails?  Run "make V=1" and paste the
last command along with the full output from it.

> Fix is to rearrange the build order and linking as in the attached
> patch or any other order where libavutil comes before libavformat. For
> shared builds we'd still need to pass something like LDFLAGS=-Lavutil
> -lavutil.
> Dave
>
> Index: common.mak
> ===================================================================
> --- common.mak	(revision 23463)
> +++ common.mak	(working copy)
> @@ -31,7 +31,7 @@
>  $(eval INSTALL = @$(call ECHO,INSTALL,$$(^:$(SRC_DIR)/%=%)); $(INSTALL))
>  endif
>  
> -ALLFFLIBS = avcodec avdevice avfilter avformat avutil postproc swscale
> +ALLFFLIBS = avutil avcodec avdevice avfilter avformat postproc swscale
>  
>  CPPFLAGS := -I$(BUILD_ROOT_REL) -I$(SRC_PATH) $(CPPFLAGS)
>  CFLAGS   += $(ECFLAGS)

That patch has no effect at all.  You must be confused.

-- 
M?ns Rullg?rd
mans at mansr.com



More information about the ffmpeg-devel mailing list