Install Error Centos 5.0

Support and queries relating to all previous versions of ZoneMinder
Locked
kudos
Posts: 28
Joined: Mon Jul 03, 2006 9:43 am

Install Error Centos 5.0

Post by kudos »

I am getting a install error, see below for full output

-o zm_event.o zm_event.cpp; \
then mv -f ".deps/zm_event.Tpo" ".deps/zm_event.Po"; else rm -f ".deps/zm_event.Tpo"; exit 1; fi
/usr/include/ffmpeg/avformat.h: In function âvoid av_init_packet(AVPacket*)â:
/usr/include/ffmpeg/avformat.h:62: error: âINT64_Câ was not declared in this scope
make[2]: *** [zm_event.o] Error 1
make[2]: Leaving directory `/root/ZoneMinder-1.22.3/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/ZoneMinder-1.22.3'
make: *** [all] Error 2


FFMPEG Version
Installed Packages
Name : ffmpeg
Arch : i386
Version: 0.4.9
Release: 0.9.20070530.el5.rf
Size : 15 M
Repo : installed

[root@cctvs2 ZoneMinder-1.22.3]# make
make all-recursive
make[1]: Entering directory `/root/ZoneMinder-1.22.3'
Making all in src
make[2]: Entering directory `/root/ZoneMinder-1.22.3/src'
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -Iyes/include -g -O2 -MT zmc.o -MD -MP -MF ".deps/zmc.Tpo" -c -o zmc.o zmc.cpp; \
then mv -f ".deps/zmc.Tpo" ".deps/zmc.Po"; else rm -f ".deps/zmc.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -Iyes/include -g -O2 -MT zm.o -MD -MP -MF ".deps/zm.Tpo" -c -o zm.o zm.cpp; \
then mv -f ".deps/zm.Tpo" ".deps/zm.Po"; else rm -f ".deps/zm.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -Iyes/include -g -O2 -MT zm_db.o -MD -MP -MF ".deps/zm_db.Tpo" -c -o zm_db.o zm_db.cpp; \
then mv -f ".deps/zm_db.Tpo" ".deps/zm_db.Po"; else rm -f ".deps/zm_db.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -Iyes/include -g -O2 -MT zm_config.o -MD -MP -MF ".deps/zm_config.Tpo" -c -o zm_config.o zm_config.cpp; \
then mv -f ".deps/zm_config.Tpo" ".deps/zm_config.Po"; else rm -f ".deps/zm_config.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -Iyes/include -g -O2 -MT zm_coord.o -MD -MP -MF ".deps/zm_coord.Tpo" -c -o zm_coord.o zm_coord.cpp; \
then mv -f ".deps/zm_coord.Tpo" ".deps/zm_coord.Po"; else rm -f ".deps/zm_coord.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -Iyes/include -g -O2 -MT zm_box.o -MD -MP -MF ".deps/zm_box.Tpo" -c -o zm_box.o zm_box.cpp; \
then mv -f ".deps/zm_box.Tpo" ".deps/zm_box.Po"; else rm -f ".deps/zm_box.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -Iyes/include -g -O2 -MT zm_poly.o -MD -MP -MF ".deps/zm_poly.Tpo" -c -o zm_poly.o zm_poly.cpp; \
then mv -f ".deps/zm_poly.Tpo" ".deps/zm_poly.Po"; else rm -f ".deps/zm_poly.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -Iyes/include -g -O2 -MT zm_image.o -MD -MP -MF ".deps/zm_image.Tpo" -c -o zm_image.o zm_image.cpp; \
then mv -f ".deps/zm_image.Tpo" ".deps/zm_image.Po"; else rm -f ".deps/zm_image.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -Iyes/include -g -O2 -MT zm_event.o -MD -MP -MF ".deps/zm_event.Tpo" -c -o zm_event.o zm_event.cpp; \
then mv -f ".deps/zm_event.Tpo" ".deps/zm_event.Po"; else rm -f ".deps/zm_event.Tpo"; exit 1; fi
/usr/include/ffmpeg/avformat.h: In function âvoid av_init_packet(AVPacket*)â:
/usr/include/ffmpeg/avformat.h:62: error: âINT64_Câ was not declared in this scope
make[2]: *** [zm_event.o] Error 1
make[2]: Leaving directory `/root/ZoneMinder-1.22.3/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/ZoneMinder-1.22.3'
make: *** [all] Error 2


i can not see any errors from the config script

i ran it with following options
./configure --with-webdir=/var/www/html/zm --with-cgidir=/var/www/cgi-bin --with-ffmpeg


thank you for your help

robert
kudos
Posts: 28
Joined: Mon Jul 03, 2006 9:43 am

Post by kudos »

i got it all installed now, check out post here if any one else has the same problem

http://www.zoneminder.com/forums/viewto ... t64c+error

fix is at the bottom
zoneminder wrote:Yes, ffmpeg appears to have changed yet again. This will be in the next release but the 'official' ffmpeg change would be to modify the line

Code: Select all

#include <ffmpeg/avformat.h>
to

Code: Select all

extern "C" {
#define __STDC_CONSTANT_MACROS
#include <ffmpeg/avformat.h>
}
in zm_mpeg.h
Locked