zm_ffmpeg_camera.cpp:172: error: ‘avcodec_decode_video2’
Posted: Wed May 23, 2012 6:35 pm
Hi i am trying to setup Zoneminder on ubuntu 10.04. When i run make i am getting below error.
g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -g -O2 -MT zm_ffmpeg_camera.o -MD -MP -MF .deps/zm_ffmpeg_camera.Tpo -c -o zm_ffmpeg_camera.o zm_ffmpeg_camera.cpp
zm_ffmpeg_camera.cpp: In member function ‘virtual int FfmpegCamera::Capture(Image&)’:
zm_ffmpeg_camera.cpp:172: error: ‘avcodec_decode_video2’ was not declared in this scope
make[2]: *** [zm_ffmpeg_camera.o] Error 1
i have installed the libavcodec library but i could not able to see utils.c file in the /use/include/ directory. i am using logitech c270 webcam.
Please someone help me out to resolve the issue.
Naresh
g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -g -O2 -MT zm_ffmpeg_camera.o -MD -MP -MF .deps/zm_ffmpeg_camera.Tpo -c -o zm_ffmpeg_camera.o zm_ffmpeg_camera.cpp
zm_ffmpeg_camera.cpp: In member function ‘virtual int FfmpegCamera::Capture(Image&)’:
zm_ffmpeg_camera.cpp:172: error: ‘avcodec_decode_video2’ was not declared in this scope
make[2]: *** [zm_ffmpeg_camera.o] Error 1
i have installed the libavcodec library but i could not able to see utils.c file in the /use/include/ directory. i am using logitech c270 webcam.
Please someone help me out to resolve the issue.
Naresh