[FFmpeg-devel] Interlace-aware scaler
Eduardo P
eduardorp1
Sat Aug 22 06:54:58 CEST 2009
>
> I'm having a problem building ffmpeg with libavfilter.
>>
>> What I did:
>> - checkout libavfilter from svn://svn.mplayerhq.hu/soc/libavfilter;
>> - read the instructions in README;
>> - run checkout.sh; cd ffmpeg; ./configure --enable-avfilter, make.
>>
>> I have the following error:
>>
>> /home/eduardo/src/libavfilter/ffmpeg/libswscale/libswscale.a(swscale.o):
>> In function `yuv2yuvX16inC_template':
>> /home/eduardo/src/libavfilter/ffmpeg/libswscale/swscale.c:496:
>> undefined reference to `av_clip_uint16'
>> /home/eduardo/src/libavfilter/ffmpeg/libswscale/swscale.c:515:
>> undefined reference to `av_clip_uint16'
>> /home/eduardo/src/libavfilter/ffmpeg/libswscale/swscale.c:516:
>> undefined reference to `av_clip_uint16'
>> /home/eduardo/src/libavfilter/ffmpeg/libswscale/swscale.c:532:
>> undefined reference to `av_clip_uint16'
>> /home/eduardo/src/libavfilter/ffmpeg/libswscale/swscale.c:496:
>> undefined reference to `av_clip_uint16'
>>
>> /home/eduardo/src/libavfilter/ffmpeg/libswscale/libswscale.a(swscale.o):/home/eduardo/src/libavfilter/ffmpeg/libswscale/swscale.c:515:
>> more undefined references to `av_clip_uint16' follow
>> collect2: ld returned 1 exit status
>> make: *** [ffmpeg_g] Error 1
>>
>
> This does not sound much libavfilter-related. Does it compiles fine if you
> configure it without "--enable-avfilter"?
>
Same error without --enable-avfilter. I found the problem though.
libavutil/common.h doesn't have the function av_clip_uint16 in the revision
that is brought in by checkout.sh (this script syncs ffmpeg to revision
19346). I copied that function over from the head revision of common.h and
it compiles fine.
Three possible solutions:
- update checkout.sh to sync common.h to a higher revision that contains the
function
- update the patch functionality in checkout.sh to add the missing function
- update the README to instruct about the manual fix
Eduardo
More information about the ffmpeg-devel
mailing list