Fresh CentOS Install

Forum for questions and support relating to the 1.24.x releases only.
Locked
wkstill
Posts: 30
Joined: Thu Jul 22, 2004 7:13 pm
Location: CLW,FL
Contact:

Fresh CentOS Install

Post by wkstill »

Well, Moving over to another box, and decided to do a fresh install..

I got ffmpeg installed (had to copy off of old 1.23.x box, and do a make clean, appears svn is offline for ffmpeg).

ffmpeg version:

FFmpeg version SVN-r11879, Copyright (c) 2000-2008 Fabrice Bellard, et al.
configuration:
libavutil version: 49.6.0
libavcodec version: 51.50.0
libavformat version: 52.7.0
libavdevice version: 52.0.0



using:

./configure --with-webdir=/var/www/html/zm --with-cgidir=/var/www/cgi-bin

and then running make i get this:

if g++ -DHAVE_CONFIG_H -I. -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; \
then mv -f ".deps/zm_ffmpeg_camera.Tpo" ".deps/zm_ffmpeg_camera.Po"; else rm -f ".deps/zm_ffmpeg_camera.Tpo"; exit 1; fi
zm_ffmpeg_camera.cpp: In member function ‘virtual int FfmpegCamera::PrimeCapture()’:
zm_ffmpeg_camera.cpp:84: error: ‘errno’ was not declared in this scope
zm_ffmpeg_camera.cpp:88: error: ‘errno’ was not declared in this scope
make[2]: *** [zm_ffmpeg_camera.o] Error 1
make[2]: Leaving directory `/root/ZoneMinder-1.24.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/ZoneMinder-1.24.2'
make: *** [all] Error 2
wkstill
Posts: 30
Joined: Thu Jul 22, 2004 7:13 pm
Location: CLW,FL
Contact:

Post by wkstill »

Can i just delcare errno?
wkstill
Posts: 30
Joined: Thu Jul 22, 2004 7:13 pm
Location: CLW,FL
Contact:

Post by wkstill »

well, i declared errno as int in two are three subroutines..

now i get this:

if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -frepo -g -O2 -MT zm_remote_camera_rtsp.o -MD -MP -MF ".deps/zm_remote_camera_rtsp.Tpo" -c -o zm_remote_camera_rtsp.o zm_remote_camera_rtsp.cpp; \
then mv -f ".deps/zm_remote_camera_rtsp.Tpo" ".deps/zm_remote_camera_rtsp.Po"; else rm -f ".deps/zm_remote_camera_rtsp.Tpo"; exit 1; fi
zm_remote_camera_rtsp.cpp: In member function ‘virtual int RemoteCameraRtsp::Capture(Image&)’:
zm_remote_camera_rtsp.cpp:235: error: ‘SWS_BICUBIC’ was not declared in this scope
zm_remote_camera_rtsp.cpp:235: error: ‘sws_getContext’ was not declared in this scope
zm_remote_camera_rtsp.cpp:240: error: ‘sws_scale’ was not declared in this scope
make[2]: *** [zm_remote_camera_rtsp.o] Error 1
make[2]: Leaving directory `/root/ZoneMinder-1.24.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/ZoneMinder-1.24.2'
make: *** [all] Error 2
hisper
Posts: 2
Joined: Wed Jul 29, 2009 1:47 pm

Post by hisper »

had the same problem on my Sheevaplug with debian.

Just put :

#include <errno.h>

in src/zm_ffmpeg_camera.cpp

and possebly also in src/zm_mpeg.cpp

:wink:
Locked