2 Star 4 Fork 3

九战梦想/rtmp-push-test

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Makefile 1.08 KB
一键复制 编辑 原始数据 按行查看 历史
CC = gcc
LIBS = librtmp.a
#export PKG_CONFIG_PATH=$(HOME)/install/x64/ffmpeg/lib/pkgconfig
## FFmpeg version is 3.2.14
FFMPEG_ROOT=$(HOME)/install/x64/ffmpeg
FFMPEG_INCS=$(shell export PKG_CONFIG_PATH=${FFMPEG_ROOT}/lib/pkgconfig;pkg-config --cflags libavformat libavcodec libswresample libswscale libavutil)
FFMPEG_LIBS=$(shell export PKG_CONFIG_PATH=${FFMPEG_ROOT}/lib/pkgconfig;pkg-config --libs libavformat libavcodec libswresample libswscale libavutil)
#FFMPEG_INCS = -I$(FFMPEG_ROOT)/include
#FFMPEG_LIBS = -L$(FFMPEG_ROOT)/lib -lavformat -lavcodec -lswresample -lswscale -lavutil
FFMPEG_LIBS+= -Wl,-rpath=$(HOME)/install/x64/ffmpeg/lib
TARGETS = test_librtmp test_ff00 test_ffrtmp
all: $(TARGETS)
test_librtmp: test_librtmp.c
$(CC) -o $@ $^ $(LIBS)
test_ff00: test_ffrtmp_00.c
@echo FFMPEG INCS = $(FFMPEG_INCS)
@echo FFMPEG LIBS = $(FFMPEG_LIBS)
$(CC) -o $@ $^ $(FFMPEG_INCS) $(FFMPEG_LIBS)
test_ffrtmp: test_ffrtmp_01.c ffrtmp.c
@echo FFMPEG INCS = $(FFMPEG_INCS)
@echo FFMPEG LIBS = $(FFMPEG_LIBS)
$(CC) -g -o $@ $^ $(FFMPEG_INCS) $(FFMPEG_LIBS)
clean:
rm -rf *.o $(TARGETS)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/w9dreams/rtmp-push-test.git
git@gitee.com:w9dreams/rtmp-push-test.git
w9dreams
rtmp-push-test
rtmp-push-test
master

搜索帮助