linux下eclipse调试ffmpeg
1、安装eclipse+cdt
1)到http://www.eclipse.org/downloads/,下载Eclipse IDE for C/C++ Developers并安装。
2)启动eclipse->help->Install New Softwate
2、编译ffmpeg
#!/bin/sh
sudo make distclean
sudo ./configure --enable-gpl --enable-encoder=png --enable-encoder=jpeg --enable-debug --disable-optimizations --disable-asm
sudo make
3、创建debug工程
1)File->new->Makefile Project with Existing Code
2)输入工程名,browse源码位置,Tool for Indexer Settings中选择Linux GCC
3)在Project Explorer中右键ffmpeg_g选->debug as local c/c++application->gdb/mi,然后ok后即可开始调试。