QT development environment to build gcc version Ffmpeg

1 qt codecs installed package ffmpeg

image

2 Open qt create project

image

image

3 Import header and library files here must pay attention to the version of gcc version and the library must be consistent

image

4 Add some simple source code

image

 
 
  1 #include <libavcodec/avcodec.h>
  2 #include <libavformat/avformat.h>
  3 #include <libavutil/log.h>
  4 int main(int argc,char **argv)
  5 {
  6     av_log_set_level(AV_LOG_INFO);
  7     av_log(NULL,AV_LOG_INFO,"hello FFmpeg\n");
  8 
  9     return 0;
 10 }
 11 
Then you will be able to see the debug environment to build a complete hello ffmpeg
image

Guess you like

Origin www.cnblogs.com/xiaohuanbin/p/10929116.html