[FFmpeg-user] ffmpeg dll compilation issue after adding a function.

Carl Eugen Hoyos ceffmpeg at gmail.com
Sun Jan 6 14:37:03 EET 2019


2019-01-04 11:07 GMT+01:00, Nidhisha K <nidhisha.k at vvdntech.in>:
> Hi all.
>
> I have added a function in libavcodev/utils.c and called that function from
> libavformat/utils.c(where it is defined). I have declared function
> libavcode/avcodec.h also.
>
> But I am not able to compile the dlls. avcodec-57 dll is compling. but
> avformat-57.dll it is not compiling. it is showing error like :
>
> LD libavcodec/avcodec-57.dll
> sed -e "s/ @[^ ]*//" libavcodec/avcodec-57.orig.def >
> libavcodec/avcodec-57.def;
> /home/vkchlt0219/vvdn_dvdo/ffmpeg-windows-build-helpers-master/sandbox/cross_compilers/mingw-w64-i686/bin/i686-w64-mingw32-dlltool
> -m i386 -d libavcodec/avcodec-57.def -l libavcodec/avcodec.lib -D
> avcodec-57.dll
> LD libavformat/avformat-57.dll
> libavformat/utils.o:utils.c:(.text+0x138fb): undefined reference to
> `set_value_t'
> collect2: error: ld returned 1 exit status
> ffbuild/library.mak:102: recipe for target 'libavformat/avformat-57.dll'
> failed
> make: *** [libavformat/avformat-57.dll] Error
>
> So, could you please tell me how to compile avformat-57.dll and
> avcodec-57.dll after adding a custom function? I am cross
> compiling ffmpeg for windows.

What are you planning to do with the binaries you compile?

Rename your new functions to use "av_" as prefix.

Carl Eugen


More information about the ffmpeg-user mailing list