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

Dave Yeo daveryeo
Fri Jun 4 08:34:22 CEST 2010


libavformat now has a dependency on libavutil causing this error on a 
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

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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: linking_fix.diff
Type: text/x-patch
Size: 482 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100603/78ceacdd/attachment.bin>



More information about the ffmpeg-devel mailing list