ffmpeg dll compilation issue after adding a function.

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

ffmpeg dll compilation issue after adding a function.

Nidhisha K
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.

--
With regards,
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: ffmpeg dll compilation issue after adding a function.

Carl Eugen Hoyos-2
2019-01-04 11:07 GMT+01:00, Nidhisha K <[hidden email]>:

> 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
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".