Page 2 of 3

Posted: Fri Jan 07, 2011 4:58 am
by SteveinPhx
Fedora is very similar to CentOS. If you'd like to stay with redhat releases like CentOS or Fedora, check out my latest post for an easy (easier?) install on Fedora14.
It's all done with YUM. No need to compile anything manually. Not perfect but I hope it helps someone.
-Steve in Phx.

Posted: Fri Jan 07, 2011 6:11 am
by joako
Yes but I think the reason many are on CentOS is due to not having to update the OS every 6-12 months. So Fedora will be no help for that.

Posted: Sun Jan 09, 2011 8:43 pm
by clipo
I have managed to install ZM with out any ffmpeg installed but when Ive install either version 0.5 or 0.6 I end up with errors during the make command still, and the error message saying to inform ZM about the ffmpeg libs being present but not usable.

Code: Select all

[root@localhost ZoneMinder-1.24.2]# ./configure --with-webdir=/var/www/html/zm --with-cgidir=/var/www/cgi-bin
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
configure: WARNING: You can call configure with the --with-libarch option.
    This tells configure where to find architecture specific libraries.
    The default of 'lib' is usually ok but 64 bit machines may require lib64.
    e.g. --with-libarch=lib or --with-libarch=lib64
configure: WARNING: You can call configure with the --with-mysql option.
    This tells configure where to find the MySql C library and headers if configure cannot
    locate them automatically.
    e.g. --with-mysql=/usr/local or --with-mysql=/usr
configure: WARNING: You can call configure with the --with-ffmpeg option.
    This tells configure where to find the ffmpeg root directory within which are the libavcodec
    and libavformat files that can be used to build true MPEG streaming into ZoneMinder. Ensure that
    your copy of ffmpeg has installed libraries as well as binaries (use 'make installlib'). If you
    are using a local install of ffmpeg you may have to remove or rename a previous real installation
    as the headers and libraries from that will probably be picked up before your local copy.
    e.g. --with-ffmpeg=/usr/local
configure: WARNING: You can call configure with the --with-extralibs option.
    Ordinarily you will need to use this option only when your copy of ffmpeg has been built
    with support for additional formats and you would use this option to detail which additional
    libraries ffmpeg was built with so that it is able to link successfully with ZoneMinder.
    You will need to wrap this option in quotes if it contains any spaces.
    e.g. --with-extralibs="-lmp3lame"
configure: WARNING: You can call configure with the --with-webuser option.
    This tells configure what the user name of the web user is if it is not the default of 'apache'.
    e.g. --with-webuser=apache or --with-webuser=web
configure: WARNING: You can call configure with the --with-webgroup option.
    This tells configure what the group name of the web group is if it is not the default of 'apache'.
    e.g. --with-webgroup=apache or --with-webgroup=web
configure: WARNING: You can call configure with the --enable-debug=<yes> or --disable-debug option.
    This tells configure whether to compile ZoneMinder with debug included. Although debug is included
    by default it is not output unless explicitly switched on elsewhere. These checks may induce a
    small penalty on performance and if you are after squeezing the maximum possible performance out
    of ZoneMinder you may use this switch to prevent debug from being compiled in.
    e.g. --enable-debug=yes or --disable-debug
configure: WARNING: You can call configure with the --enable-crashtrace=<yes> or --disable-crashtrace option.
    This tells configure whether to compile ZoneMinder with crash tracing included. This allows a
    dump of the stack trace when a ZoneMinder binary crashes or is killed by an unexpected signal.
    Although this should work on most systems it does rely on un(or loosely) documented features and
    so should be regarded as experimental. If you experience problems compiling zm_signal.cpp or
    ZoneMinder binaries fail to shut down correctly then you should probably disable this feature.
    e.g. --enable-crashtrace=yes or --disable-crashtrace
configure: WARNING: You can call configure with the --enable-mmap=<yes> or --disable-mmap option.
    This tells configure whether to compile ZoneMinder with mmap support rather than IPC shared
    memory. This is an experimental feature that uses memory mapped into files which all processes
    can share. Memory mapping requires less configuration and is more flexible than shared memory
    but may slow down your system unless the mapped files are configured to reside on a fast or
    RAM based filesystem.
    e.g. --enable-mmap=yes or --disable-mmap
checking for g++... g++
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking dependency style of gcc... gcc3
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for ranlib... ranlib
checking whether make sets $(MAKE)... (cached) yes
checking how to run the C++ preprocessor... g++ -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... no
checking for an ANSI C-conforming const... yes
checking for uid_t in sys/types.h... yes
checking for inline... inline
checking for mode_t... yes
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking return type of signal handlers... void
checking for siginfo_t... yes
checking for struct sigcontext... yes
checking for struct sigcontext.eip... yes
checking for ucontext_t... yes
checking whether gcc needs -traditional... no
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for getpagesize... yes
checking for working mmap... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking types of arguments for select... int,fd_set *,struct timeval *
checking whether lstat dereferences a symlink specified with a trailing slash... yes
checking whether stat accepts an empty string... no
checking for strftime... yes
checking for working strtod... no
checking for pow... yes
checking for vprintf... yes
checking for _doprnt... no
checking for gethostbyname... yes
checking for gethostname... yes
checking for gettimeofday... yes
checking for memmove... yes
checking for memset... yes
checking for mkdir... yes
checking for munmap... yes
checking for putenv... yes
checking for select... yes
checking for socket... yes
checking for sqrt... yes
checking for strcasecmp... yes
checking for strchr... yes
checking for strcspn... yes
checking for strerror... yes
checking for strncasecmp... yes
checking for strrchr... yes
checking for strsignal... yes
checking for strspn... yes
checking for strstr... yes
checking for strtol... yes
checking for strtoull... yes
checking for ffmpeg... yes
checking for ffmpeg... /usr/bin/ffmpeg
checking for pnmscale... yes
checking for pnmscale... /usr/bin/pnmscale
checking for mysql_init in -lmysqlclient... yes
checking for jpeg_start_compress in -ljpeg... yes
checking for pthread_create in -lpthread... yes
checking for dlsym in -ldl... yes
checking for MD5 in -lgnutls-openssl... yes
checking for pcre_compile in -lpcre... yes
checking for av_malloc in -lavutil... yes
checking for avcodec_init in -lavcodec... yes
checking for av_new_stream in -lavformat... yes
checking for sws_scale in -lswscale... yes
checking for BZ2_bzCompress in -lbz2... no
configure: WARNING: zm requires libbz2.a for recent versions of ffmpeg
checking for compress in -lz... yes
checking for working alloca.h... yes
checking for alloca... yes
checking for ANSI C header files... (cached) yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for memory.h... (cached) yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking for sys/socket.h... (cached) yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking for unistd.h... (cached) yes
checking values.h usability... yes
checking values.h presence... yes
checking for values.h... yes
checking linux/videodev.h usability... yes
checking linux/videodev.h presence... yes
checking for linux/videodev.h... yes
checking linux/videodev2.h usability... yes
checking linux/videodev2.h presence... yes
checking for linux/videodev2.h... yes
checking mysql/mysql.h usability... yes
checking mysql/mysql.h presence... yes
checking for mysql/mysql.h... yes
checking libavutil/avutil.h usability... no
checking libavutil/avutil.h presence... yes
configure: WARNING: libavutil/avutil.h: present but cannot be compiled
configure: WARNING: libavutil/avutil.h:     check for missing prerequisite headers?
configure: WARNING: libavutil/avutil.h: see the Autoconf documentation
configure: WARNING: libavutil/avutil.h:     section "Present But Cannot Be Compiled"
configure: WARNING: libavutil/avutil.h: proceeding with the preprocessor's result
configure: WARNING: libavutil/avutil.h: in the future, the compiler will take precedence
configure: WARNING:     ## ------------------------------------- ##
configure: WARNING:     ## Report this to support@zoneminder.com ##
configure: WARNING:     ## ------------------------------------- ##
checking for libavutil/avutil.h... yes
checking ffmpeg/avutil.h usability... no
checking ffmpeg/avutil.h presence... no
checking for ffmpeg/avutil.h... no
checking libavcodec/avcodec.h usability... no
checking libavcodec/avcodec.h presence... yes
configure: WARNING: libavcodec/avcodec.h: present but cannot be compiled
configure: WARNING: libavcodec/avcodec.h:     check for missing prerequisite headers?
configure: WARNING: libavcodec/avcodec.h: see the Autoconf documentation
configure: WARNING: libavcodec/avcodec.h:     section "Present But Cannot Be Compiled"
configure: WARNING: libavcodec/avcodec.h: proceeding with the preprocessor's result
configure: WARNING: libavcodec/avcodec.h: in the future, the compiler will take precedence
configure: WARNING:     ## ------------------------------------- ##
configure: WARNING:     ## Report this to support@zoneminder.com ##
configure: WARNING:     ## ------------------------------------- ##
checking for libavcodec/avcodec.h... yes
checking ffmpeg/avcodec.h usability... no
checking ffmpeg/avcodec.h presence... no
checking for ffmpeg/avcodec.h... no
checking libavformat/avformat.h usability... no
checking libavformat/avformat.h presence... yes
configure: WARNING: libavformat/avformat.h: present but cannot be compiled
configure: WARNING: libavformat/avformat.h:     check for missing prerequisite headers?
configure: WARNING: libavformat/avformat.h: see the Autoconf documentation
configure: WARNING: libavformat/avformat.h:     section "Present But Cannot Be Compiled"
configure: WARNING: libavformat/avformat.h: proceeding with the preprocessor's result
configure: WARNING: libavformat/avformat.h: in the future, the compiler will take precedence
configure: WARNING:     ## ------------------------------------- ##
configure: WARNING:     ## Report this to support@zoneminder.com ##
configure: WARNING:     ## ------------------------------------- ##
checking for libavformat/avformat.h... yes
checking ffmpeg/avformat.h usability... no
checking ffmpeg/avformat.h presence... no
checking for ffmpeg/avformat.h... no
checking libswscale/swscale.h usability... no
checking libswscale/swscale.h presence... yes
configure: WARNING: libswscale/swscale.h: present but cannot be compiled
configure: WARNING: libswscale/swscale.h:     check for missing prerequisite headers?
configure: WARNING: libswscale/swscale.h: see the Autoconf documentation
configure: WARNING: libswscale/swscale.h:     section "Present But Cannot Be Compiled"
configure: WARNING: libswscale/swscale.h: proceeding with the preprocessor's result
configure: WARNING: libswscale/swscale.h: in the future, the compiler will take precedence
configure: WARNING:     ## ------------------------------------- ##
configure: WARNING:     ## Report this to support@zoneminder.com ##
configure: WARNING:     ## ------------------------------------- ##
checking for libswscale/swscale.h... yes
checking ffmpeg/swscale.h usability... no
checking ffmpeg/swscale.h presence... no
checking for ffmpeg/swscale.h... no
checking pcre/pcre.h usability... no
checking pcre/pcre.h presence... no
checking for pcre/pcre.h... no
checking pcre.h usability... yes
checking pcre.h presence... yes
checking for pcre.h... yes
checking sys/ipc.h usability... yes
checking sys/ipc.h presence... yes
checking for sys/ipc.h... yes
checking sys/shm.h usability... yes
checking sys/shm.h presence... yes
checking for sys/shm.h... yes
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking whether round is declared... yes
checking whether MD5 is declared... yes
checking whether backtrace is declared... yes
checking for perl... perl
checking for perl version greater than or equal to 5.6.0... ok
checking for perl module Sys::Syslog... ok
checking for perl module DBI... ok
checking for perl module DBD::mysql... ok
checking for perl module Getopt::Long... ok
checking for perl module Time::HiRes... ok
checking for perl module Date::Manip... ok
checking for perl module LWP::UserAgent... ok
checking for perl module PHP::Serialization... ok
checking for perl module Module::Load... ok
checking for perl module Device::SerialPort... ok
checking for perl module Net::FTP... ok
checking for perl module Archive::Tar... ok
checking for perl module Archive::Zip... ok
checking for perl module Net::SMTP... ok
checking for perl module MIME::Lite... ok
checking for perl module MIME::Entity... ok
checking for perl module X10::ActiveHome... no
configure: WARNING: X10::ActiveHome is required for X.10 support
configure: creating ./config.status
config.status: creating Makefile
config.status: creating zm.conf
config.status: creating db/Makefile
config.status: creating db/zm_create.sql
config.status: creating scripts/Makefile
config.status: creating scripts/zm
config.status: creating scripts/zmaudit.pl
config.status: creating scripts/zmcontrol.pl
config.status: creating scripts/zmdc.pl
config.status: creating scripts/zmfilter.pl
config.status: creating scripts/zmpkg.pl
config.status: creating scripts/zmtrack.pl
config.status: creating scripts/zmtrigger.pl
config.status: creating scripts/zmupdate.pl
config.status: creating scripts/zmvideo.pl
config.status: creating scripts/zmwatch.pl
config.status: creating scripts/zmx10.pl
config.status: creating scripts/zmdbbackup
config.status: creating scripts/zmdbrestore
config.status: creating scripts/zmeventdump
config.status: creating scripts/zmlogrotate.conf
config.status: creating scripts/ZoneMinder/lib/ZoneMinder/Base.pm
config.status: creating scripts/ZoneMinder/lib/ZoneMinder/Config.pm
config.status: creating scripts/ZoneMinder/lib/ZoneMinder/Memory.pm
config.status: creating scripts/ZoneMinder/lib/ZoneMinder/ConfigAdmin.pm
config.status: creating src/Makefile
config.status: creating src/zm_config.h
config.status: creating web/Makefile
config.status: creating web/ajax/Makefile
config.status: creating web/css/Makefile
config.status: creating web/graphics/Makefile
config.status: creating web/includes/Makefile
config.status: creating web/includes/config.php
config.status: creating web/js/Makefile
config.status: creating web/lang/Makefile
config.status: creating web/skins/Makefile
config.status: creating web/skins/classic/Makefile
config.status: creating web/skins/classic/ajax/Makefile
config.status: creating web/skins/classic/css/Makefile
config.status: creating web/skins/classic/graphics/Makefile
config.status: creating web/skins/classic/includes/Makefile
config.status: creating web/skins/classic/js/Makefile
config.status: creating web/skins/classic/lang/Makefile
config.status: creating web/skins/classic/views/Makefile
config.status: creating web/skins/classic/views/css/Makefile
config.status: creating web/skins/classic/views/js/Makefile
config.status: creating web/skins/mobile/Makefile
config.status: creating web/skins/mobile/ajax/Makefile
config.status: creating web/skins/mobile/css/Makefile
config.status: creating web/skins/mobile/graphics/Makefile
config.status: creating web/skins/mobile/includes/Makefile
config.status: creating web/skins/mobile/lang/Makefile
config.status: creating web/skins/mobile/views/Makefile
config.status: creating web/skins/mobile/views/css/Makefile
config.status: creating web/tools/Makefile
config.status: creating web/tools/mootools/Makefile
config.status: creating web/views/Makefile
config.status: creating config.h
config.status: executing depfiles commands
perl Makefile.PL 
Checking if your kit is complete...
Looks good
Writing Makefile for ZoneMinder


[root@localhost ZoneMinder-1.24.2]# make
make  all-recursive
make[1]: Entering directory `/root/ZoneMinder-1.24.2'
Making all in src
make[2]: Entering directory `/root/ZoneMinder-1.24.2/src'
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 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
/usr/include/libavutil/common.h: In function ‘int32_t av_clipl_int32(int64_t)’:
/usr/include/libavutil/common.h:154: error: ‘UINT64_C’ was not declared in this scope
make[2]: *** [zmc.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
[/code]

Posted: Thu Jan 13, 2011 8:57 pm
by clipo
Finally got it working with the

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

command.

I have CentOS 5.3, ZM, 1.23.2 and ffmpeg 0.6.1 from the RPMforge repo.

Posted: Tue Jan 18, 2011 6:03 pm
by funzie
I upgraded my system to 64bit and followed the same steps as I did before and im up an running. Only two problems came up.

1. The first day or so of recording is real wierd, events should last 599-600 seconds, however I was getting events with 10,000 or some crazy number. But now all seems fine.

2. Everyonce in a while it just crashes and freezes the entire machine. I see apache processes climbing up until it just stops, then it starts again after 10 or 20 minutes.

Posted: Wed Jan 19, 2011 4:28 pm
by akeness
i have successfully installed the zm 1.24.2 under centos 5.5 and posted the documentation. here's the link:

Zoneminder Centos 5.5
http://akeness.blogspot.com/2010/12/zon ... de-on.html

Posted: Wed Jan 19, 2011 9:08 pm
by clipo
Thanks for the guide it work perfect for me, its the extra options using during the make command that seems to be the main solution.

CXXFLAGS=-D__STDC_CONSTANT_MACROS

only thing is Im not sure what these options are doing if any one can explain them.

Thnaks once again for your help.

Posted: Tue Feb 08, 2011 1:45 pm
by moo
@clipo - CXXFLAGS is for C++ compilation options (CPPFLAGS being for CPreProcessor)

Posted: Tue Feb 08, 2011 2:10 pm
by moo
does anyone still get these problems?

I've tried 3 versions of ffmpeg now...versions most recently tried are:

Code: Select all

FFmpeg version git-a1c1d3c, Copyright (c) 2000-2011 the FFmpeg developers
  built on Feb  8 2011 11:15:32 with gcc 4.1.2 20080704 (Red Hat 4.1.2-48)
  configuration: --enable-gpl --enable-swscale --prefix=/usr
  libavutil    50. 37. 0 / 50. 37. 0
  libavcore     0. 16. 1 /  0. 16. 1
  libavcodec   52.110. 0 / 52.110. 0
  libavformat  52. 97. 0 / 52. 97. 0
  libavdevice  52.  2. 3 / 52.  2. 3
  libavfilter   1. 74. 0 /  1. 74. 0
  libswscale    0. 12. 0 /  0. 12. 0

however still getting the following when trying to "make" zoneminder (tried with and without CXXflag options);

Code: Select all

make  all-recursive
make[1]: Entering directory `/ZoneMinder-1.24.2'
Making all in src
make[2]: Entering directory `/ZoneMinder-1.24.2/src'
if g++ -DHAVE_CONFIG_H -I. -I. -I..  -I/usr/lib/mysql//include -I/usr/include -Wall -Wno-sign-compare -fno-inline -__STDC_CONSTANT_MACROS -frepo -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/lib/mysql//include -I/usr/include -Wall -Wno-sign-compare -fno-inline -__STDC_CONSTANT_MACROS -frepo -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/lib/mysql//include -I/usr/include -Wall -Wno-sign-compare -fno-inline -__STDC_CONSTANT_MACROS -frepo -g -O2 -MT zm_buffer.o -MD -MP -MF ".deps/zm_buffer.Tpo" -c -o zm_buffer.o zm_buffer.
        then mv -f ".deps/zm_buffer.Tpo" ".deps/zm_buffer.Po"; else rm -f ".deps/zm_buffer.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I..  -I/usr/lib/mysql//include -I/usr/include -Wall -Wno-sign-compare -fno-inline -__STDC_CONSTANT_MACROS -frepo -g -O2 -MT zm_camera.o -MD -MP -MF ".deps/zm_camera.Tpo" -c -o zm_camera.o zm_camera.
        then mv -f ".deps/zm_camera.Tpo" ".deps/zm_camera.Po"; else rm -f ".deps/zm_camera.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I..  -I/usr/lib/mysql//include -I/usr/include -Wall -Wno-sign-compare -fno-inline -__STDC_CONSTANT_MACROS -frepo -g -O2 -MT zm_comms.o -MD -MP -MF ".deps/zm_comms.Tpo" -c -o zm_comms.o zm_comms.cpp;
        then mv -f ".deps/zm_comms.Tpo" ".deps/zm_comms.Po"; else rm -f ".deps/zm_comms.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I..  -I/usr/lib/mysql//include -I/usr/include -Wall -Wno-sign-compare -fno-inline -__STDC_CONSTANT_MACROS -frepo -g -O2 -MT zm_config.o -MD -MP -MF ".deps/zm_config.Tpo" -c -o zm_config.o zm_config.
        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/lib/mysql//include -I/usr/include -Wall -Wno-sign-compare -fno-inline -__STDC_CONSTANT_MACROS -frepo -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/lib/mysql//include -I/usr/include -Wall -Wno-sign-compare -fno-inline -__STDC_CONSTANT_MACROS -frepo -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/lib/mysql//include -I/usr/include -Wall -Wno-sign-compare -fno-inline -__STDC_CONSTANT_MACROS -frepo -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 gcc -DHAVE_CONFIG_H -I. -I. -I..  -I/usr/lib/mysql//include -I/usr/include -Wall -Wno-sign-compare -fno-inline -__STDC_CONSTANT_MACROS  -I/usr/include  -MT zm_debug.o -MD -MP -MF ".deps/zm_debug.Tpo" -c -o zm_debug.o zm_debug.c
        then mv -f ".deps/zm_debug.Tpo" ".deps/zm_debug.Po"; else rm -f ".deps/zm_debug.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I..  -I/usr/lib/mysql//include -I/usr/include -Wall -Wno-sign-compare -fno-inline -__STDC_CONSTANT_MACROS -frepo -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
if g++ -DHAVE_CONFIG_H -I. -I. -I..  -I/usr/lib/mysql//include -I/usr/include -Wall -Wno-sign-compare -fno-inline -__STDC_CONSTANT_MACROS -frepo -g -O2 -MT zm_exception.o -MD -MP -MF ".deps/zm_exception.Tpo" -c -o zm_exception.o z \
        then mv -f ".deps/zm_exception.Tpo" ".deps/zm_exception.Po"; else rm -f ".deps/zm_exception.Tpo"; exit 1; f
if g++ -DHAVE_CONFIG_H -I. -I. -I..  -I/usr/lib/mysql//include -I/usr/include -Wall -Wno-sign-compare -fno-inline -__STDC_CONSTANT_MACROS -frepo -g -O2 -MT zm_file_camera.o -MD -MP -MF ".deps/zm_file_camera.Tpo" -c -o zm_file_cameera.cpp; \
        then mv -f ".deps/zm_file_camera.Tpo" ".deps/zm_file_camera.Po"; else rm -f ".deps/zm_file_camera.Tpo"; exi
if g++ -DHAVE_CONFIG_H -I. -I. -I..  -I/usr/lib/mysql//include -I/usr/include -Wall -Wno-sign-compare -fno-inline -__STDC_CONSTANT_MACROS -frepo -g -O2 -MT zm_ffmpeg_camera.o -MD -MP -MF ".deps/zm_ffmpeg_camera.Tpo" -c -o zm_ffmpempeg_camera.cpp; \
        then mv -f ".deps/zm_ffmpeg_camera.Tpo" ".deps/zm_ffmpeg_camera.Po"; else rm -f ".deps/zm_ffmpeg_camera.Tpo
if g++ -DHAVE_CONFIG_H -I. -I. -I..  -I/usr/lib/mysql//include -I/usr/include -Wall -Wno-sign-compare -fno-inline -__STDC_CONSTANT_MACROS -frepo -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
zm_image.cpp: In member function âvoid Image::Blend(const Image&, int) constâ:
zm_image.cpp:779: warning: operation on âpdestâ may be undefined
if gcc -DHAVE_CONFIG_H -I. -I. -I..  -I/usr/lib/mysql//include -I/usr/include -Wall -Wno-sign-compare -fno-inline -__STDC_CONSTANT_MACROS  -I/usr/include  -MT zm_jpeg.o -MD -MP -MF ".deps/zm_jpeg.Tpo" -c -o zm_jpeg.o zm_jpeg.c; \
        then mv -f ".deps/zm_jpeg.Tpo" ".deps/zm_jpeg.Po"; else rm -f ".deps/zm_jpeg.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I..  -I/usr/lib/mysql//include -I/usr/include -Wall -Wno-sign-compare -fno-inline -__STDC_CONSTANT_MACROS -frepo -g -O2 -MT zm_local_camera.o -MD -MP -MF ".deps/zm_local_camera.Tpo" -c -o zm_local_c_camera.cpp; \
        then mv -f ".deps/zm_local_camera.Tpo" ".deps/zm_local_camera.Po"; else rm -f ".deps/zm_local_camera.Tpo";
zm_local_camera.h:96: error: âPixelFormatâ does not name a type
zm_local_camera.h:97: error: âPixelFormatâ does not name a type
zm_local_camera.h:98: error: ISO C++ forbids declaration of âAVFrameâ with no type
zm_local_camera.h:98: error: expected â;â before â*â token
zm_local_camera.cpp:40: error: âPixelFormatâ does not name a type
zm_local_camera.cpp:252: error: expected constructor, destructor, or type conversion before â*â token
zm_local_camera.cpp: In constructor âLocalCamera::LocalCamera(int, const std::string&, int, int, const std::string& int, int, int, int, bool)â:
zm_local_camera.cpp:319: error: âimagePixFormatâ was not declared in this scope
zm_local_camera.cpp:319: error: âPIX_FMT_GRAY8â was not declared in this scope
zm_local_camera.cpp:319: error: âPIX_FMT_RGB24â was not declared in this scope
zm_local_camera.cpp:320: error: âcapturePixFormatâ was not declared in this scope
zm_local_camera.cpp:320: error: âgetFfPixFormatFromV4lPaletteâ was not declared in this scope
zm_local_camera.cpp: In member function âvoid LocalCamera::Initialise()â:
zm_local_camera.cpp:336: error: âAV_LOG_DEBUGâ was not declared in this scope
zm_local_camera.cpp:336: error: âav_log_set_levelâ was not declared in this scope
zm_local_camera.cpp:338: error: âAV_LOG_QUIETâ was not declared in this scope
zm_local_camera.cpp:338: error: âav_log_set_levelâ was not declared in this scope
zm_local_camera.cpp:431: error: âcapturePicturesâ was not declared in this scope
zm_local_camera.cpp:431: error: expected type-specifier before âAVFrameâ
zm_local_camera.cpp:431: error: expected `;' before âAVFrameâ
zm_local_camera.cpp:455: error: âimagePixFormatâ was not declared in this scope
zm_local_camera.cpp:455: error: âcapturePixFormatâ was not declared in this scope
zm_local_camera.cpp:457: error: âavcodec_alloc_frameâ was not declared in this scope
zm_local_camera.cpp:460: error: âAVPictureâ was not declared in this scope
zm_local_camera.cpp:460: error: expected primary-expression before â)â token
zm_local_camera.cpp:460: error: âavpicture_fillâ was not declared in this scope
zm_local_camera.cpp:594: error: âcapturePicturesâ was not declared in this scope
zm_local_camera.cpp:594: error: expected type-specifier before âAVFrameâ
zm_local_camera.cpp:594: error: expected `;' before âAVFrameâ
zm_local_camera.cpp:602: error: âimagePixFormatâ was not declared in this scope
zm_local_camera.cpp:602: error: âcapturePixFormatâ was not declared in this scope
zm_local_camera.cpp:604: error: âavcodec_alloc_frameâ was not declared in this scope
zm_local_camera.cpp:607: error: âAVPictureâ was not declared in this scope
zm_local_camera.cpp:607: error: expected primary-expression before â)â token
zm_local_camera.cpp:607: error: âavpicture_fillâ was not declared in this scope
zm_local_camera.cpp: In member function âvirtual int LocalCamera::Capture(Image&)â:
zm_local_camera.cpp:1576: error: expected initializer before â*â token
zm_local_camera.cpp:1578: error: âimagePixFormatâ was not declared in this scope
zm_local_camera.cpp:1578: error: âcapturePixFormatâ was not declared in this scope
zm_local_camera.cpp:1582: error: âSWS_BICUBICâ was not declared in this scope
zm_local_camera.cpp:1582: error: âsws_getContextâ was not declared in this scope
zm_local_camera.cpp:1586: error: âtmpPictureâ was not declared in this scope
zm_local_camera.cpp:1586: error: âavcodec_alloc_frameâ was not declared in this scope
zm_local_camera.cpp:1589: error: âavpicture_get_sizeâ was not declared in this scope
zm_local_camera.cpp:1590: error: âav_mallocâ was not declared in this scope
zm_local_camera.cpp:1593: error: âAVPictureâ was not declared in this scope
zm_local_camera.cpp:1593: error: expected primary-expression before â)â token
zm_local_camera.cpp:1593: error: âavpicture_fillâ was not declared in this scope
zm_local_camera.cpp:1595: error: âcapturePicturesâ was not declared in this scope
zm_local_camera.cpp:1595: error: âtmpPictureâ was not declared in this scope
zm_local_camera.cpp:1595: error: âsws_scaleâ was not declared in this scope
make[2]: *** [zm_local_camera.o] Error 1
make[2]: Leaving directory `/ZoneMinder-1.24.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/ZoneMinder-1.24.2'
make: *** [all] Error 2
sorry for long post :/ (and sorry for possibly resurrecting dead thread!)

Similar errors across the board with all versions of ffmpeg i've tried (all mentioned within this thread)

It's driving me crazy :P

Running on Centos 5.5, mad thing is i had this working earlier last year, something i've done seems to have eaten it!

If anyones got any further advice it would be much appreciated!

Thanks all :)

Moo

Posted: Tue Feb 08, 2011 2:27 pm
by zoneminder
Do you have ffmpeg installed? Can you post the outut of your configure run?

Ffmpeg have added a new library which is not tested for by 1.24.2 so it might be worth trying the preview of 1.24.3.

Posted: Tue Feb 08, 2011 2:52 pm
by moo
Ahhh, ok, think what i'm using now is most recent "stable" avail. on their git repo, config as follows; (p.s. had to change all a s s to as5 because of forum rules :P )

Code: Select all

install prefix            /usr/local
source path               /usr/src/ffmpeg
C compiler                gcc
ARCH                      x86 (generic)
big-endian                no
runtime cpu detection     no
yasm                      yes
MMX enabled               yes
MMX2 enabled              yes
3DNow! enabled            yes
3DNow! extended enabled   yes
SSE enabled               yes
SSSE3 enabled             yes
CMOV enabled              no
CMOV is fast              no
EBX available             yes
EBP available             yes
10 operands supported     yes
debug symbols             yes
strip symbols             yes
optimizations             yes
static                    yes
shared                    yes
postprocessing support    no
new filter support        yes
network support           yes
threading support         pthreads
SDL support               no
Sun medialib support      no
AVISynth enabled          no
frei0r enabled            no
libdc1394 support         no
libdirac enabled          no
libfaac enabled           no
libgsm enabled            no
libmp3lame enabled        no
libnut enabled            no
libopencore-amrnb support no
libopencore-amrwb support no
libopencv support         no
libopenjpeg enabled       no
librtmp enabled           no
libschroedinger enabled   no
libspeex enabled          no
libtheora enabled         no
libvorbis enabled         no
libvpx enabled            no
libx264 enabled           no
libxavs enabled           no
libxvid enabled           no
zlib enabled              yes
bzlib enabled             yes

Enabled decoders:
aac			dsicinaudio		mpc7
aac_latm		dsicinvideo		mpc8
aasc			dvbsub			mpeg1video
ac3			dvdsub			mpeg2video
adpcm_4xm		dvvideo			mpeg4
adpcm_adx		dxa			mpegvideo
adpcm_ct		eac3			msmpeg4v1
adpcm_ea		eacmv			msmpeg4v2
adpcm_ea_maxis_xa	eamad			msmpeg4v3
adpcm_ea_r1		eatgq			msrle
adpcm_ea_r2		eatgv			msvideo1
adpcm_ea_r3		eatqi			mszh
adpcm_ea_xas		eightbps		nellymoser
adpcm_g722		eightsvx_exp		nuv
adpcm_g726		eightsvx_fib		pam
adpcm_ima_amv		escape124		pbm
adpcm_ima_dk3		ffv1			pcm_alaw
adpcm_ima_dk4		ffvhuff			pcm_bluray
adpcm_ima_ea_eacs	flac			pcm_dvd
adpcm_ima_ea_sead	flashsv			pcm_f32be
adpcm_ima_iss		flic			pcm_f32le
adpcm_ima_qt		flv			pcm_f64be
adpcm_ima_smjpeg	fourxm			pcm_f64le
adpcm_ima_wav		fraps			pcm_lxf
adpcm_ima_ws		frwu			pcm_mulaw
adpcm_ms		gif			pcm_s16be
adpcm_sbpro_2		gsm			pcm_s16le
adpcm_sbpro_3		gsm_ms			pcm_s16le_planar
adpcm_sbpro_4		h261			pcm_s24be
adpcm_swf		h263			pcm_s24daud
adpcm_thp		h263i			pcm_s24le
adpcm_xa		h264			pcm_s32be
adpcm_yamaha		huffyuv			pcm_s32le
alac			idcin			pcm_s8
als			iff_byterun1		pcm_u16be
amrnb			iff_ilbm		pcm_u16le
amrwb			imc			pcm_u24be
amv			indeo2			pcm_u24le
anm			indeo3			pcm_u32be
ansi			indeo5			pcm_u32le
ape			interplay_dpcm		pcm_u8
as5			interplay_video		pcm_zork
asv1			jpegls			pcx
asv2			kgv1			pgm
atrac1			kmvc			pgmyuv
atrac3			lagarith		pgssub
aura			loco			pictor
aura2			mace3			png
avs			mace6			ppm
bethsoftvid		mdec			ptx
bfi			mimic			qcelp
bink			mjpeg			qdm2
binkaudio_dct		mjpegb			qdraw
binkaudio_rdft		mlp			qpeg
bmp			mmvideo			qtrle
c93			motionpixels		r10k
cavs			mp1			r210
cdgraphics		mp1float		ra_144
cinepak			mp2			ra_288
cljr			mp2float		rawvideo
cook			mp3			rl2
cscd			mp3adu			roq
cyuv			mp3adufloat		roq_dpcm
dca			mp3float		rpza
dnxhd			mp3on4			rv10
dpx			mp3on4float		rv20
rv30			truehd			vp6f
rv40			truemotion1		vp8
sgi			truemotion2		vqa
shorten			truespeech		wavpack
sipr			tscc			wmapro
smackaud		tta			wmav1
smacker			twinvq			wmav2
smc			txd			wmavoice
snow			ulti			wmv1
sol_dpcm		v210			wmv2
sonic			v210x			wmv3
sp5x			vb			wnv1
srt			vc1			ws_snd1
sunrast			vcr1			xan_dpcm
svq1			vmdaudio		xan_wc3
svq3			vmdvideo		xan_wc4
targa			vmnc			xl
theora			vorbis			xsub
thp			vp3			yop
tiertexseqvideo		vp5			zlib
tiff			vp6			zmbv
tmv			vp6a

Enabled encoders:
a64multi		jpegls			pcm_u32le
a64multi5		ljpeg			pcm_u8
aac			mjpeg			pcm_zork
ac3			mp2			pcx
ac3_fixed		mpeg1video		pgm
adpcm_adx		mpeg2video		pgmyuv
adpcm_g722		mpeg4			png
adpcm_g726		msmpeg4v1		ppm
adpcm_ima_qt		msmpeg4v2		qtrle
adpcm_ima_wav		msmpeg4v3		ra_144
adpcm_ms		nellymoser		rawvideo
adpcm_swf		pam			roq
adpcm_yamaha		pbm			roq_dpcm
alac			pcm_alaw		rv10
as5			pcm_f32be		rv20
asv1			pcm_f32le		sgi
asv2			pcm_f64be		snow
bmp			pcm_f64le		sonic
dnxhd			pcm_mulaw		sonic_ls
dvbsub			pcm_s16be		svq1
dvdsub			pcm_s16le		targa
dvvideo			pcm_s24be		tiff
ffv1			pcm_s24daud		v210
ffvhuff			pcm_s24le		vorbis
flac			pcm_s32be		wmav1
flashsv			pcm_s32le		wmav2
flv			pcm_s8			wmv1
gif			pcm_u16be		wmv2
h261			pcm_u16le		xsub
h263			pcm_u24be		zlib
h263p			pcm_u24le		zmbv
huffyuv			pcm_u32be

Enabled hwaccels:

Enabled parsers:
aac			dvdsub			mpeg4video
aac_latm		flac			mpegaudio
ac3			h261			mpegvideo
cavsvideo		h263			pnm
dca			h264			vc1
dirac			mjpeg			vp3
dnxhd			mlp			vp8
dvbsub

Enabled demuxers:
aac			ipmovie			pcm_u32be
ac3			iss			pcm_u32le
aea			iv8			pcm_u8
aiff			ivf			pva
amr			lmlm4			qcp
anm			lxf			r3d
apc			m4v			rawvideo
ape			matroska		rl2
applehttp		mjpeg			rm
asf			mlp			roq
as5			mm			rpl
au			mmf			rso
avi			mov			rtp
avs			mp3			rtsp
bethsoftvid		mpc			sap
bfi			mpc8			sdp
bink			mpegps			segafilm
c93			mpegts			shorten
caf			mpegtsraw		siff
cavsvideo		mpegvideo		smacker
cdg			msnwc_tcp		sol
daud			mtv			sox
dirac			mvi			spdif
dnxhd			mxf			srt
dsicin			mxg			str
dts			nc			swf
dv			nsv			thp
dxa			nut			tiertexseq
ea			nuv			tmv
ea_cdata		ogg			truehd
eac3			oma			tta
ffm			pcm_alaw		tty
ffmetadata		pcm_f32be		txd
filmstrip		pcm_f32le		vc1
flac			pcm_f64be		vc1t
flic			pcm_f64le		vmd
flv			pcm_mulaw		voc
fourxm			pcm_s16be		vqf
g722			pcm_s16le		w64
gsm			pcm_s24be		wav
gxf			pcm_s24le		wc3
h261			pcm_s32be		wsaud
h263			pcm_s32le		wsvqa
h264			pcm_s8			wtv
idcin			pcm_u16be		wv
iff			pcm_u16le		xa
image2			pcm_u24be		yop
image2pipe		pcm_u24le		yuv4mpegpipe
ingenient

Enabled muxers:
a64			ipod			pcm_s16le
ac3			ivf			pcm_s24be
adts			m4v			pcm_s24le
aiff			matroska		pcm_s32be
amr			matroska_audio		pcm_s32le
asf			md5			pcm_s8
asf_stream		mjpeg			pcm_u16be
as5			mlp			pcm_u16le
au			mmf			pcm_u24be
avi			mov			pcm_u24le
avm2			mp2			pcm_u32be
cavsvideo		mp3			pcm_u32le
crc			mp4			pcm_u8
daud			mpeg1system		psp
dirac			mpeg1vcd		rawvideo
dnxhd			mpeg1video		rm
dts			mpeg2dvd		roq
dv			mpeg2svcd		rso
eac3			mpeg2video		rtp
ffm			mpeg2vob		rtsp
ffmetadata		mpegts			sap
filmstrip		mpjpeg			sox
flac			mxf			spdif
flv			mxf_d10			srt
framecrc		null			swf
framemd5		nut			tg2
g722			ogg			tgp
gif			pcm_alaw		truehd
gxf			pcm_f32be		vc1t
h261			pcm_f32le		voc
h263			pcm_f64be		wav
h264			pcm_f64le		webm
image2			pcm_mulaw		yuv4mpegpipe
image2pipe		pcm_s16be

Enabled protocols:
concat			mmst			rtmpt
file			pipe			rtmpte
gopher			rtmp			rtp
http			rtmpe			tcp
md5			rtmps			udp
mmsh

Enabled filters:
anull			format			pixdesctest
anullsink		gradfun			scale
anullsrc		hflip			setdar
blackframe		hqdn3d			setpts
buffer			movie			setsar
color			noformat		settb
copy			null			slicify
crop			nullsink		transpose
cropdetect		nullsrc			unsharp
drawbox			overlay			vflip
fifo			pad			yadif

Enabled bsfs:
aac_adtstoasc		mjpeg2jpeg		mp3_header_decompress
chomp			mjpega_dump_header	noise
dump_extradata		mov2textsub		remove_extradata
h264_mp4toannexb	mp3_header_compress	text2movsub
imx_dump_header

Enabled indevs:
alsa			oss			v4l2
dv1394			v4l

Enabled outdevs:
alsa			oss

License: GPL version 2 or later
Creating config.mak and config.h...

Posted: Tue Feb 08, 2011 5:24 pm
by clipo
I'm still get the same errors with the latest rpmforge repo of ffmpeg and when I build it from svn,

The solutions highlighted inside this post allow me to build and install ZM but there are problems with the install and some functions are broken or missing.

Build and Install 1.24.3 on CentOS 5.5 with the latest updates, and ffmpeg 0.6.1

At the moment the time line bar wont work and the fast forward / reverse only work if the previous event button is pressed first.

See my earlier posts for detailed output from the build ect

Posted: Wed Feb 09, 2011 11:25 am
by moo
downloading .3 now, fingers crossed!

Posted: Wed Feb 09, 2011 11:45 am
by moo
Ah, getting the dreadded mmap errors now! Have come across this with my last working build in the past so will crack on with fixing...however find it slightly odd that I wasn't experiencing this with the .2 install?

Clipo did you experience this error @ compile time by any chance, too?

Code: Select all


configure: error: zm requires Sys::Mmap for mapped memory

Posted: Wed Feb 09, 2011 4:25 pm
by zoneminder
If you have the rpmforge repository enabled then you can just install it as

Code: Select all

yum install perl-Sys-Mmap
otherwise you will need to use perl and the CPAN module but that is pretty simple too.