makefile 分析
2015-09-14 11:43
501 查看
个人认为初学者对ffmpeg刚刚开始,肯定对连接哪个库不了解,因此先从FFmpeg官网上的Makefile着手,了解需要链接哪些库。
ffmpeg_2.8/doc/Makefile内容如下:
往Makefile增加文件,请看下面的链接:
https://github.com/FFmpeg/FFmpeg/commit/767d780ec001167b2fd8f6cfe4ef78a3a8b1e34c
ffmpeg_2.8/doc/Makefile内容如下:
# use pkg-config for getting CFLAGS and LDLIBS FFMPEG_LIBS= libavdevice \ libavformat \ libavfilter \ libavcodec \ libswresample \ libswscale \ libavutil \ CFLAGS += -Wall -g CFLAGS := $(shell pkg-config --cflags $(FFMPEG_LIBS)) $(CFLAGS) LDLIBS := $(shell pkg-config --libs $(FFMPEG_LIBS)) $(LDLIBS) EXAMPLES= avio_dir_cmd \ avio_reading \ decoding_encoding \ demuxing_decoding \ extract_mvs \ filtering_video \ filtering_audio \ http_multiclient \ metadata \ muxing \ remuxing \ resampling_audio \ scaling_video \ transcode_aac \ transcoding \ OBJS=$(addsuffix .o,$(EXAMPLES)) # the following examples make explicit use of the math library avcodec: LDLIBS += -lm decoding_encoding: LDLIBS += -lm muxing: LDLIBS += -lm resampling_audio: LDLIBS += -lm .phony: all clean-test clean all: $(OBJS) $(EXAMPLES) clean-test: $(RM) test*.pgm test.h264 test.mp2 test.sw test.mpg clean: clean-test $(RM) $(EXAMPLES) $(OBJS)
往Makefile增加文件,请看下面的链接:
https://github.com/FFmpeg/FFmpeg/commit/767d780ec001167b2fd8f6cfe4ef78a3a8b1e34c
相关文章推荐
- Android自定义布局通知栏
- linux pid文件
- erl_string-字符串匹配的KMP算法
- HDOJ 4424 Conquer a New Region
- df -h执行卡住不动问题解决
- 滚动显示升级进度的程序
- 教大家8天学通MongoDB――第一天 基础入门篇
- IDIOPEN 2013 A Angry Grammar Nazi(字符串处理)
- vs中无法加入断点进行调试的解决方案
- Android - 除首次使用状态(SharedPreferences)
- java中4种修饰符访问权限的区别
- hdu5438(2015长春赛区网络赛1002)拓扑序+DFS
- 立象Argox条码打印机CP-2140M开发
- CSS padding margin border
- python-unittest
- Algorithms—40.Combination Sum II
- JDBC连接常用数据库 基本的CURD
- Oracle分析函数系列之first_value/last_value:在记录集中查找第一条记录和最后一条记录
- OC学习之Runtime之一类与对象
- 目标跟踪算法的分类