Giter Club home page Giter Club logo

ffmpeg-xcode's Introduction

ffmpeg-xcode

ffmpeg xcode project

build steps

step 1 编译 ffmpeg

  • tar xvf ffmpeg-3.0.2.tar.bz2
  • cd ffmpeg-3.0.2
  • ./configure --enable-debug
  • make -j8

step 2 新建一个空的 xcode 项目

  • Create a new Xcode project
  • 新建一个空的 xcode 项目 step2-1 step2-2
  • 项目保存路径与ffmpeg-3.0.2同级. step2-3

step 3 添加 ffmpeg-3.0.2 源码目录进 ffmpeg-xcode 项目中

  • 拖进去 step3-1
  • 不要勾选下面这个选项 step3-2
  • 接着一点要选 ffmpeg-xcode, 否则看代码时, 不可以跳转. 写代码时不会有提示. step3-3

step 4 添加头文件搜索路径

  • 到这里就可以实现头文件跳转了. 要等待处理完毕才可以点击头文件或者类来查看代码. step4

step 5 添加一个 target

  • File -> New -> Target -> OS X -> Other -> External Build System step5-1
  • target 命名为 ffmpeg-make step5-2
  • target 切换到 ffmpeg-make step5-3

step 6 修改 ffmpeg-make 源码路径配置

  • 修改 ffmpeg-make 源码路径 step6

step 7 修改 ffmpeg-make 命令行参数

  • 修改命令行参数 step7-1
  • 修改可执行命令 step7-2

step 8 添加断点(ffplay.c->main函数), 点击 run

step8

ffmpeg-xcode's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

ffmpeg-xcode's Issues

从git clone到成功debug

自问自答:
1 问: git clone下来后, 使用XCode10打开报错, 报:

Multiple commands produce '/Users/along/Library/Developer/Xcode/DerivedData/ffmpeg-xcode-aunxzpbljtgyyoevgrbrwbpekawz/Build/Intermediates.noindex/ffmpeg-xcode.build/Debug/ffmpeg-xcode.build/DerivedSources/idctdsp.h':
1) Target 'ffmpeg-xcode' (project 'ffmpeg-xcode'): CompileDTraceScript /Users/along/workplace/github/video_players/ffmpeg-xcode/ffmpeg-3.0.2/libavcodec/idctdsp.d
2) Target 'ffmpeg-xcode' (project 'ffmpeg-xcode'): CompileDTraceScript /Users/along/workplace/github/video_players/ffmpeg-xcode/ffmpeg-3.0.2/libavcodec/x86/idctdsp.d

File->Project Setting->Build System改成Legacy Build System.
2. 改好后, 报:

resample_dsp.d里syntax error near `:`

没有找到原因, 就在同目录新建了ffmpeg-xcode1, 按照Readme.md的设置来, 可以运行.
3. 运行后直接终止执行, 看原因是少了libSDL, 所以brew install sdl, 可以正常运行.
4. 加断点没有触发到, 重新编译了下ffmpeg, 使用

./configure --enable-debug=3 --disable-stripping
make -j8

成功断到.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.