码迷,mamicode.com
首页 > 其他好文 > 详细

Using ffmpeg libraries in Code::Blocks

时间:2016-11-20 19:33:57      阅读:238      评论:0      收藏:0      [点我收藏+]

标签:hang   images   stat   little   com   int   lib   first   ram   

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

标签:hang   images   stat   little   com   int   lib   first   ram   

原文地址:http://www.cnblogs.com/WeirdWiredThings/p/6082942.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!