Xcode 调试(debug) ffmpeg with ffmpeg_g

转自:https://www.jianshu.com/p/226c19aa6e42

使用Xcode断点调试ffmpeg

原文出自这里http://www.likecode.com/2014/12/29/187/
但是里面有几个细节说得不太清楚,这里记录一下具体的配置方式

1. 下载ffmpeg源码 https://github.com/FFmpeg/FFmpeg
8月18日更新 编译ffmpeg 依赖 yasm组件

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install git
brew install yasm

2. 编译ffmpeg

cd FFmpeg
./configure -–enable-debug
./configure --disable-optimizations
--disable-asm
make -j8

3. 创建xcode新项目

这里选择 Command Line Tool

4. 饮用FFmpeg

博主的破air 等了5mins左右

5 .添加linked 信息
首先添加Header Search Paths

接着添加Library Search Paths

6. 添加target

添加文件路径

配置ffmpeg_make运行信息

配置executable

最后结果是这样的

7 .大功告成
现在到ffmpeg.c main函数打个断点试试

猜你喜欢

转载自blog.csdn.net/lipeiran1987/article/details/89553022