Home/News | About | Download | Documentation | Forum | Bug Reports | Contact | Donations | Consulting | Projects | Legal | Security | FATE


This forum has not been maintained for a long time and will probably get deleted in the near future.
For faster responses to your questions, please use StackOverflow instead and tag your questions with "FFmpeg".
If you need a backup of the posts from this forum, please contact me directly.

Help compiling with gdb symbols

Troubleshooting compilation problems on all platforms.

Help compiling with gdb symbols

Postby zippy123 » Sun Feb 19, 2017 10:34 pm

Does anyone know of a step by step guide to compiling to get gdb symbols. I've tried the recipe below based on scouring the intertubes but I still get
>Reading symbols from ffmpeg...(no debugging symbols found)...done.

ffmpeg itself is working, but no luck with debug symbols.

============== from scratch ffmpeg build ==============
from: .../wiki/CompilationGuide/Ubuntu#IfYouNeedHelp and other forums

cd ~/ffmpeg_sources
wget ....://.../releases/ffmpeg-snapshot.tar.bz2 (won't let me post a link as a new user)
tar xjvf ffmpeg-snapshot.tar.bz2
cd ffmpeg
PATH="$HOME/bin:$PATH" PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig" ./configure \
--prefix="$HOME/ffmpeg_build" \
--pkg-config-flags="--static" \
--extra-cflags="-I$HOME/ffmpeg_build/include" \
--extra-cflags="-g" \
--extra-ldflags="-L$HOME/ffmpeg_build/lib" \
--bindir="$HOME/bin" \
--enable-gpl \
--enable-debug=3 \
--enable-libass \
--enable-libfdk-aac \
--enable-libfreetype \
--enable-libmp3lame \
--enable-libopus \
--enable-libtheora \
--enable-libvorbis \
--enable-libvpx \
--enable-libx264 \
--enable-libx265 \
--enable-nonfree
PATH="$HOME/bin:$PATH" make
make install
make distclean
hash -r
zippy123
 
Posts: 2
Joined: Fri Jan 13, 2017 6:34 am

Re: Help compiling with gdb symbols

Postby llogan » Mon Feb 20, 2017 7:09 am

Use ffmpeg_g instead of ffmpeg. It should be in the FFmpeg source directory. For example usage see http://ffmpeg.org/bugreports.html
Get an answer more quickly by providing your actual ffmpeg command and the complete console output. Use the code button to format your command and output or your question will be ignored.
llogan
 
Posts: 2363
Joined: Fri Jan 25, 2013 9:47 pm
Location: Alaska

Re: Help compiling with gdb symbols

Postby zippy123 » Mon Feb 20, 2017 7:38 am

Thanks. I'm trying but I don't seem to have ffmpeg_g and can't find any documentation on how to build for. I would assume it's the standard output of the debug build but so far no luck. Any pointers or additional references greatly appreciated.
zippy123
 
Posts: 2
Joined: Fri Jan 13, 2017 6:34 am

Re: Help compiling with gdb symbols

Postby llogan » Mon Feb 20, 2017 9:16 pm

Recompile ffmpeg. Then don't run "make distclean". It will be in ~/ffmpeg_sources/ffmpeg.
Get an answer more quickly by providing your actual ffmpeg command and the complete console output. Use the code button to format your command and output or your question will be ignored.
llogan
 
Posts: 2363
Joined: Fri Jan 25, 2013 9:47 pm
Location: Alaska


Return to Compiling FFmpeg

Who is online

Users browsing this forum: No registered users and 1 guest