Reputation: 31
I have to plugin my static library(abc.a) to ffmpeg project, So how to place my library in configuration/makefile of ffmpeg to build with my library. Please help me out.
Upvotes: 0
Views: 3618
Reputation: 66741
It's normal configure stuff. Either LDFLAGS environment variable, or a configure option (--extra-ldflags=-labc
) (though your static file should be named libabc.a, FWIW).
If libabc.a is in "some other folder" then you will have to/need to add the folder to the configure as well, like
--extra-ldflags='-L/path/to/my/library -labc'
If your library is installed to the system path you shouldn't need the directory adder.
Also make sure its got the same "binding" (basically, libabc.a needs to be all C code, if it is C++ code then "surrounding" the method Fun_abc you will need and extern "C" {
block.
GL!
Upvotes: 1