I really have big problems with importing an extern C-Library to my existing C++-Project. I want to import libavcodec from the FFmpeg-Project, so I downloaded the latest source-code-release.
What do I have to do now? Do I have to compile FFmpeg first or can I import it just like that? A really simple step-by-step manual would be awesome!
(I found tutorials how to use libavcodec when it’s imported, so this is not necessary… I didn’t found some to import it)
I really have big problems with importing an extern C-Library to my existing C++-Project.
Share
To include a source code library into your existing project you have a number of options:
Compile to a static library
Compile to a dynamic library
Compile to object files
So, yes, you do need to compile their source code, and you need to change your toolchain to include the results into your program.