CentOS 5.2 - [zm_ffmpeg_camera.o] Error 1
Posted: Sat Feb 14, 2009 12:24 pm
Hello,
Used the wiki: would not compile with the first ffmpeg method:
NB: If you get an error at this point it may be due to the ../subdir.mak file being missing. To resolve this go to http://www.ffmpeg.org/download.html and read the info on FFmpeg Git. Remember to delete the entire ffmpeg tree in your working directory before downloading. After installing git and downloading the entire source tree ffmpeg installs cleanly.
Did this and everything compiled / installed.
Next configured ZM, then make:
make[1]: Entering directory `/root/ZoneMinder-1.24.0'
Making all in src
make[2]: Entering directory `/root/ZoneMinder-1.24.0/src'
g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -frepo -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::PrimeCapture()â:
zm_ffmpeg_camera.cpp:125: error: âSWS_BICUBICâ was not declared in this scope
zm_ffmpeg_camera.cpp:125: error: âsws_getCachedContextâ was not declared in this scope
zm_ffmpeg_camera.cpp: In member function âvirtual int FfmpegCamera::Capture(Image&)â:
zm_ffmpeg_camera.cpp:156: error: âsws_scaleâ was not declared in this scope
make[2]: *** [zm_ffmpeg_camera.o] Error 1
make[2]: Leaving directory `/root/ZoneMinder-1.24.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/ZoneMinder-1.24.0'
make: *** [all] Error 2
Any help / input greatly appreciated.
Thanks,
Dan
Used the wiki: would not compile with the first ffmpeg method:
NB: If you get an error at this point it may be due to the ../subdir.mak file being missing. To resolve this go to http://www.ffmpeg.org/download.html and read the info on FFmpeg Git. Remember to delete the entire ffmpeg tree in your working directory before downloading. After installing git and downloading the entire source tree ffmpeg installs cleanly.
Did this and everything compiled / installed.
Next configured ZM, then make:
make[1]: Entering directory `/root/ZoneMinder-1.24.0'
Making all in src
make[2]: Entering directory `/root/ZoneMinder-1.24.0/src'
g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -frepo -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::PrimeCapture()â:
zm_ffmpeg_camera.cpp:125: error: âSWS_BICUBICâ was not declared in this scope
zm_ffmpeg_camera.cpp:125: error: âsws_getCachedContextâ was not declared in this scope
zm_ffmpeg_camera.cpp: In member function âvirtual int FfmpegCamera::Capture(Image&)â:
zm_ffmpeg_camera.cpp:156: error: âsws_scaleâ was not declared in this scope
make[2]: *** [zm_ffmpeg_camera.o] Error 1
make[2]: Leaving directory `/root/ZoneMinder-1.24.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/ZoneMinder-1.24.0'
make: *** [all] Error 2
Any help / input greatly appreciated.
Thanks,
Dan