Using ffmpeg libraries in Code::Blocks
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Using ffmpeg libraries in Code::Blocks相关的知识,希望对你有一定的参考价值。
I am digging into a project that needs to use some open source video codec library. ffmpeg is very powerful video codec library, which I decided to use in my project. I compiled and installed the ffmpeg library, then the problem comes, how to use the library in my project conviniently. My first thought is to write make file. I am not an expert in makefile things, so I changed to try to use Code::Blocks IDE, which is very easy to use. After configuring the include path and adding all the ffmpeg static library files, I still can‘t build the project successfully.
After checking the makefiles of examples, which are included in the ffmpeg package, I get the command lines of compiling and linking these examples. The problem is obvious, some system libraries is missed, and -pthread parameter should be included in linking. Below is the setting screen of Code::Blocks, wish it could help other guys a little.
以上是关于Using ffmpeg libraries in Code::Blocks的主要内容,如果未能解决你的问题,请参考以下文章
Unicode data in a Unicode-only collation or ntext data cannot be sent to clients using DB-Library (s
Installing ffmpeg using docker
解决ffmpeg执行报错“ffmpeg: error while loading shared libraries: libavdevice.so.58: cannot open shared obj
ffmpeg: error while loading shared libraries: libavdevice.so.57
ffmpeg: error while loading shared libraries: libavdevice.so.58