[FFmpeg-devel] archive ffmpeg all objs into one lib, feasible?

Lynn Yu yuqilin1228 at gmail.com
Thu Sep 18 04:58:34 CEST 2014


I think you misunderstand what I mean. Of course I know how each lib works.
I want to know, if I 'ar' the libavformat.a libavcodec.a into one
libffmpeg.a, how can I retain their function symbols in the new libffmpeg.a.


2014-09-18 4:21 GMT+08:00 Marcus Johnson <bumblebritches57 at gmail.com>:

> No, it won't work because the libraries are for different purposes.
>
> as per your example, 4xm in the libavcodec directory is for decoding the
> file, it implements the actual algorithm. 4xm in the libavformat directory
> is for demuxing the codec from the 4xm container, you need both for it to
> work.
>
> On Wed, Sep 17, 2014 at 10:37 AM, Lynn Yu <yuqilin1228 at gmail.com> wrote:
>
> > I've build ffmpeg static libraries,  and all necessary objs (*.o)
> generated
> > in their source directory.
> >
> > I use 'ar' to archive all these objs into one libffmpeg.a.
> >
> > command: *ar rc libffmpeg.a *.o*
> >
> > I notice that, there are some objs have same name in different dirs, for
> > example *libavformat/4xm.o and libavcodec/4xm.o*.
> >
> > by 'nm libffmpeg.a', it seems both objs are there?
> >
> > 'man ar' I find that, if obj with same name and Exactly with same
> function
> > symbols, latter one will be replaced ,right?
> >
> > by this 'ar' way, will libffmpeg.a work correctly? because there so many
> > symbols I can't test every one.
> >
> > thanks for help!
> > _______________________________________________
> > ffmpeg-devel mailing list
> > ffmpeg-devel at ffmpeg.org
> > http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
> >
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>


More information about the ffmpeg-devel mailing list