用GDB调试DirectFB

1.安装fusion。自带的README文件有详细步骤说明。在第二步时如果你使用的Fedora就在/etc/rc.d/rc.local最后添加一行: /sbin/modprobe fusion 。在第四步时把MODE值改为"0666"这样所有用户就都可以使用了。
2.编译Debug版本的DirectFB。DirectFB源代码也在 /home/xxx/DirectFB-1.1.1/下。
  ./configure --prefix=/home/xxx/DirectFB-1.1.1/ --enable-debug --enable-multi
3.make
3.make install
4.export PKG_CONFIG_PATH=/home/xxx/DirectFB-1.1.1/lib/pkgconfig/
5.编译DirectFB应用程序,加上调试参数 -g。
6.export LD_LIBRARY_PATH=/home/xxx/DirectFB-1.1.1/lib/
7.gdb myprogram

你可能感兴趣的:(用GDB调试DirectFB)