mpenkov / ffmpeg-tutorial

A set of tutorials that demonstrates how to write a video player based on FFmpeg
http://www.ffmpeg.org/documentation.html
1.22k stars 395 forks source link

sdl and PKG_CONFIG_PATH environment variable #10

Closed peepo closed 11 years ago

peepo commented 11 years ago

what to do with PKG_CONFIG_PATH environment variable?

cannot find SDL is there more info?

using wheezy

some error messages removed with: $ ldd /usr/bin/ffmpeg .. libavutil.so.51 => /usr/lib/x86_64-linux-gnu/libavutil.so.51 (0x00007f0873a04000) libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f0873782000) .. hence $ export LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/ $ export LD_LIBRARY_PATH=/lib/x86_64-linux-gnu/ but $ cd ffmpeg-tutorial-master $ make Package libavformat was not found in the pkg-config search path. Perhaps you should add the directory containing libavformat.pc' to the PKG_CONFIG_PATH environment variable No package 'libavformat' found Package libavcodec was not found in the pkg-config search path. Perhaps you should add the directory containinglibavcodec.pc' to the PKG_CONFIG_PATH environment variable No package 'libavcodec' found Package libswscale was not found in the pkg-config search path. Perhaps you should add the directory containing libswscale.pc' to the PKG_CONFIG_PATH environment variable No package 'libswscale' found Package libavutil was not found in the pkg-config search path. Perhaps you should add the directory containinglibavutil.pc' to the PKG_CONFIG_PATH environment variable No package 'libavutil' found Package sdl was not found in the pkg-config search path. Perhaps you should add the directory containing sdl.pc' to the PKG_CONFIG_PATH environment variable No package 'sdl' found Package libavformat was not found in the pkg-config search path. Perhaps you should add the directory containinglibavformat.pc' to the PKG_CONFIG_PATH environment variable No package 'libavformat' found Package libavcodec was not found in the pkg-config search path. Perhaps you should add the directory containing libavcodec.pc' to the PKG_CONFIG_PATH environment variable No package 'libavcodec' found Package libswscale was not found in the pkg-config search path. Perhaps you should add the directory containinglibswscale.pc' to the PKG_CONFIG_PATH environment variable No package 'libswscale' found Package libavutil was not found in the pkg-config search path. Perhaps you should add the directory containing libavutil.pc' to the PKG_CONFIG_PATH environment variable No package 'libavutil' found Package sdl was not found in the pkg-config search path. Perhaps you should add the directory containingsdl.pc' to the PKG_CONFIG_PATH environment variable No package 'sdl' found

mpenkov commented 11 years ago

Looking at the error, sdl isn't the only thing you're missing. You're also missing libavutil, libswscale, libavcodec and libavformat. Those are libraries that are typically provided by ffmpeg. If you're missing them, then it's most likely you don't have ffmpeg installed correctly.

Please install ffmpeg. There's a link to detailed instructions in the README.

cirosantilli commented 8 years ago

On Ubuntu 15.10 you also need:

sudo apt-get install libsdl1.2-dev

I had installed libsdl2-dev, but it's not the one.