Closed ghost closed 11 years ago
My problem has reduced to-
[root@dev ffmpeg-tutorial-master]# make
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 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
mkdir -p obj
mkdir -p bin
gcc -Wall -ggdb obj/tutorial01.o -lm -o bin/tutorial01.out
obj/tutorial01.o: In function main': /home/sangeeta/ffmpeg/ffmpeg-tutorial-master/tutorial01.c:70: undefined reference to
av_register_all'
/home/sangeeta/ffmpeg/ffmpeg-tutorial-master/tutorial01.c:73: undefined reference to avformat_open_input' /home/sangeeta/ffmpeg/ffmpeg-tutorial-master/tutorial01.c:77: undefined reference to
avformat_find_stream_info'
/home/sangeeta/ffmpeg/ffmpeg-tutorial-master/tutorial01.c:81: undefined reference to av_dump_format' /home/sangeeta/ffmpeg/ffmpeg-tutorial-master/tutorial01.c:97: undefined reference to
avcodec_find_decoder'
/home/sangeeta/ffmpeg/ffmpeg-tutorial-master/tutorial01.c:103: undefined reference to avcodec_open2' /home/sangeeta/ffmpeg/ffmpeg-tutorial-master/tutorial01.c:107: undefined reference to
avcodec_alloc_frame'
/home/sangeeta/ffmpeg/ffmpeg-tutorial-master/tutorial01.c:110: undefined reference to avcodec_alloc_frame' /home/sangeeta/ffmpeg/ffmpeg-tutorial-master/tutorial01.c:115: undefined reference to
avpicture_get_size'
/home/sangeeta/ffmpeg/ffmpeg-tutorial-master/tutorial01.c:117: undefined reference to av_malloc' /home/sangeeta/ffmpeg/ffmpeg-tutorial-master/tutorial01.c:120: undefined reference to
sws_getContext'
/home/sangeeta/ffmpeg/ffmpeg-tutorial-master/tutorial01.c:137: undefined reference to avpicture_fill' /home/sangeeta/ffmpeg/ffmpeg-tutorial-master/tutorial01.c:146: undefined reference to
avcodec_decode_video2'
/home/sangeeta/ffmpeg/ffmpeg-tutorial-master/tutorial01.c:152: undefined reference to sws_scale' /home/sangeeta/ffmpeg/ffmpeg-tutorial-master/tutorial01.c:171: undefined reference to
av_free_packet'
/home/sangeeta/ffmpeg/ffmpeg-tutorial-master/tutorial01.c:142: undefined reference to av_read_frame' /home/sangeeta/ffmpeg/ffmpeg-tutorial-master/tutorial01.c:175: undefined reference to
av_free'
/home/sangeeta/ffmpeg/ffmpeg-tutorial-master/tutorial01.c:176: undefined reference to av_free' /home/sangeeta/ffmpeg/ffmpeg-tutorial-master/tutorial01.c:179: undefined reference to
av_free'
/home/sangeeta/ffmpeg/ffmpeg-tutorial-master/tutorial01.c:182: undefined reference to avcodec_close' /home/sangeeta/ffmpeg/ffmpeg-tutorial-master/tutorial01.c:185: undefined reference to
avformat_close_input'
collect2: ld returned 1 exit status
make: *\ [bin/tutorial01.out] Error 1
From the first line of the error message, it is clear that you don't actually have sdl installed. You must install sdl. The problem will then go away.
The "undefined reference" linking errors suggest that you don't have ffmpeg properly installed. Obviously, you must install ffmpeg before you can build the tutorials. There's a link to detailed instructions for building ffmpeg in the project README.
[root@dev 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 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 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 mkdir -p obj mkdir -p bin gcc -Wall -ggdb obj/tutorial01.o -lm -o bin/tutorial01.out obj/tutorial01.o: In functionmain': /home/sangeeta/ffmpeg/ffmpeg-tutorial-master/tutorial01.c:70: undefined reference to
av_register_all' /home/sangeeta/ffmpeg/ffmpeg-tutorial-master/tutorial01.c:73: undefined reference toavformat_open_input' /home/sangeeta/ffmpeg/ffmpeg-tutorial-master/tutorial01.c:77: undefined reference to
avformat_find_stream_info' /home/sangeeta/ffmpeg/ffmpeg-tutorial-master/tutorial01.c:81: undefined reference toav_dump_format' /home/sangeeta/ffmpeg/ffmpeg-tutorial-master/tutorial01.c:97: undefined reference to
avcodec_find_decoder' /home/sangeeta/ffmpeg/ffmpeg-tutorial-master/tutorial01.c:103: undefined reference toavcodec_open2' /home/sangeeta/ffmpeg/ffmpeg-tutorial-master/tutorial01.c:107: undefined reference to
avcodec_alloc_frame' /home/sangeeta/ffmpeg/ffmpeg-tutorial-master/tutorial01.c:110: undefined reference toavcodec_alloc_frame' /home/sangeeta/ffmpeg/ffmpeg-tutorial-master/tutorial01.c:115: undefined reference to
avpicture_get_size' /home/sangeeta/ffmpeg/ffmpeg-tutorial-master/tutorial01.c:117: undefined reference toav_malloc' /home/sangeeta/ffmpeg/ffmpeg-tutorial-master/tutorial01.c:120: undefined reference to
sws_getContext' /home/sangeeta/ffmpeg/ffmpeg-tutorial-master/tutorial01.c:137: undefined reference toavpicture_fill' /home/sangeeta/ffmpeg/ffmpeg-tutorial-master/tutorial01.c:146: undefined reference to
avcodec_decode_video2' /home/sangeeta/ffmpeg/ffmpeg-tutorial-master/tutorial01.c:152: undefined reference tosws_scale' /home/sangeeta/ffmpeg/ffmpeg-tutorial-master/tutorial01.c:171: undefined reference to
av_free_packet' /home/sangeeta/ffmpeg/ffmpeg-tutorial-master/tutorial01.c:142: undefined reference toav_read_frame' /home/sangeeta/ffmpeg/ffmpeg-tutorial-master/tutorial01.c:175: undefined reference to
av_free' /home/sangeeta/ffmpeg/ffmpeg-tutorial-master/tutorial01.c:176: undefined reference toav_free' /home/sangeeta/ffmpeg/ffmpeg-tutorial-master/tutorial01.c:179: undefined reference to
av_free' /home/sangeeta/ffmpeg/ffmpeg-tutorial-master/tutorial01.c:182: undefined reference toavcodec_close' /home/sangeeta/ffmpeg/ffmpeg-tutorial-master/tutorial01.c:185: undefined reference to
avformat_close_input' collect2: ld returned 1 exit status make: *\ [bin/tutorial01.out] Error 1