Debug ffmpeg.c & ffmpeg_g.exe in Ubuntu with Eclipse

Download Eclipse

Download “Eclipse IDE for C/C++ Developers” all in one installation from  http://www.eclipse.org/downloads/

 

Uncompress and run Eclipse

After uncompressing (usually with "tar xzf eclipse.<version info here>.tar.gz"), you can simply enter the eclipse directory (with "cd eclipse") and run the Eclipse (usually using "./eclipse"). After you start the Eclipse for the first time, it will ask you for the "workspace" directory. This directory will contain your future projects in subdirectories.

【附】运行eclipse需要安装JRE(安装方法见博文:ubuntu下安装最新 jre 7)

 

Create new C++ project using existing FFmpeg's source code

In the Eclipse, go to main menu option "File - New - Project", then choose "C/C++" and then "Makefile Project with Existing Code" and navigate to the FFmpeg's source code directoryffmpeg-1.1.3.

Import Existing Code对话框中的Toolchain for Indexer Settings中选Linux GCC

Compile the source code

First of all, make sure you have c++, g++, make and other build tools installed. If you are using debian/ubuntu, you can type "apt-get install build-essential". Before you compile the source code for the first time, you'll have to go to your ffmpeg root directory ("ffmpeg-1.1.3") and type "./configure". After it finishes, go back to Eclipse and use the main menu option "Project - Build All".

我用的选项:

./configure --enable-gpl --disable-optimizations --disable-ffplay --disable-asm –prefix=/usr

可以加—enable-shared

如果想在windows下开发,有个网站有:

Dev packages provide the headers and .lib/.dll.a files required to use the .dll files in other programs.

http://ffmpeg.zeranoe.com/builds/win32/dev/

 

右键点击ffmpeg_gdebug as->Local c/c++ Application

加调试初始参数:

右键点击ffmpeg_gdebug as-> Debug Configuration

Step Over (类似vsF10) / Step Into (类似vsF11)

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值