[vlc-devel] How to build a debug version of libavcodec?
Ed Sutton
ESutton at fescorp.com
Tue Jan 27 18:02:42 CET 2009
I want to debug into \ffmpeg\libavcodec\mjpegdec.c from VLC.
The ffmpeg FAQ states that the build process automatically builds "ffmpeg_g" containing debug information. How can I do the same for libavcodec?
Here's what I have tried without success:
1 - Added an "--enable-debug" to the configure.
2 - Set the compiler debug option using the CFLAGS environment variable using:
Export CFLAGS=" -g" Question: Can you pass "-g" as a make argument instead?
3 - Run make
The name command, "nm libavcodec.so", displays:
"nm: libavcodec.so no symbols"
I am a Linux newbie and I find gdb challenging. Any advice on how to use gdb and make it pre-load shared library symbols for \ffmpeg\libavcodec\mjpegdec.c is much appreciated. I want to debug into \ffmpeg\libavcodec\mjpegdec.c in order to understand how to implement a frame based codec for VLC.
Thanks in advance for any tips or direction,
-Ed
More information about the vlc-devel
mailing list