Install 1.25.0 under Ubuntu 12.04

Forum for questions and support relating to the 1.25.x releases only.
Locked
Schuhkasten
Posts: 48
Joined: Thu Jun 03, 2010 6:43 am

Install 1.25.0 under Ubuntu 12.04

Post by Schuhkasten »

Hello

I tried to install 1.25.0 now on Ubuntu 12.04 beside 1.24.4 which does also not work.
Configuration worked fine after installing some packages.

During "make install" I got stuccoed at the following:

Code: Select all

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_local_camera.o -MD -MP -MF .deps/zm_local_camera.Tpo -c -o zm_local_camera.o zm_local_camera.cpp
zm_local_camera.cpp: In statischer Elementfunktion »static bool LocalCamera::GetCurrentSettings(const char*, char*, int, bool)«:
zm_local_camera.cpp:774:22: Fehler: »PATH_MAX« wurde in diesem Gültigkeitsbereich nicht definiert
zm_local_camera.cpp:779:21: Fehler: »queryDevice« wurde in diesem Gültigkeitsbereich nicht definiert
zm_local_camera.cpp:781:22: Fehler: »queryDevice« wurde in diesem Gültigkeitsbereich nicht definiert
zm_local_camera.cpp:782:29: Fehler: »queryDevice« wurde in diesem Gültigkeitsbereich nicht definiert
zm_local_camera.cpp:799:67: Fehler: »queryDevice« wurde in diesem Gültigkeitsbereich nicht definiert
zm_local_camera.cpp:801:54: Fehler: »queryDevice« wurde in diesem Gültigkeitsbereich nicht definiert
zm_local_camera.cpp:811:92: Fehler: »queryDevice« wurde in diesem Gültigkeitsbereich nicht definiert
zm_local_camera.cpp:936:91: Fehler: »queryDevice« wurde in diesem Gültigkeitsbereich nicht definiert
zm_local_camera.cpp:961:82: Fehler: »queryDevice« wurde in diesem Gültigkeitsbereich nicht definiert
make[1]: *** [zm_local_camera.o] Fehler 1
make[1]: Verlasse Verzeichnis '/home/joern/build/ZoneMinder-1.25.0/src'
make: *** [install-recursive] Fehler 1
Anyone a idea?
Schuhkasten
Posts: 48
Joined: Thu Jun 03, 2010 6:43 am

Re: Install 1.25.0 under Ubuntu 12.04

Post by Schuhkasten »

Here the full log from configure & make after installing all packages as shown here:

http://www.zoneminder.com/wiki/index.ph ... rom_source

Code: Select all

root@ubuntu:/home/joern/build/ZoneMinder-1.25.0# ./configure --prefix=/opt/zm --with-mysql=/usr --with-ffmpeg=/usr --with-webuser=www-data --with-webgroup=www-data --disable-debug --disable-crashtrace --enable-mmap=yes --with-webdir=/var/www --with-cgidir=/usr/lib/cgi-bin ZM_SSL_LIB=openssl
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
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-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-webhost option.
    This tells configure what the host name is for name based virtual hosting. This is only used to populate the sample web/zmHttpd.conf file.
    e.g. --with-webhost=zm.localdomain
checking for g++... g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
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 ISO C89... none needed
checking dependency style of gcc... gcc3
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 grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/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 sys/param.h... 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 correctly handles trailing slash... yes
checking whether stat accepts an empty string... no
checking for strftime... yes
checking for working strtod... 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 syscall... yes
checking for sleep... yes
checking for usleep... yes
checking for ioctl... yes
checking for ioctlsocket... no
checking for sigaction... yes
checking for ffmpeg... yes
checking for ffmpeg... /usr/bin/ffmpeg
checking for pnmscale... no
checking for pnmscale... no
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 -lcrypto... yes
checking for pcre_compile in -lpcre... yes
checking for zlibVersion in -lz... yes
checking for x264_predict_16x16_init in -lx264... no
checking for av_malloc in -lavutil... yes
checking for av_image_copy in -lavcore... no
checking for avcodec_init in -lavcodec... yes
checking for av_new_stream in -lavformat... yes
checking for avdevice_register_all in -lavdevice... yes
checking for sws_scale in -lswscale... yes
checking for BZ2_bzCompress in -lbz2... yes
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 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 for sys/param.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 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 arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking for sys/socket.h... (cached) yes
checking sys/un.h usability... yes
checking sys/un.h presence... yes
checking for sys/un.h... yes
checking glob.h usability... yes
checking glob.h presence... yes
checking for glob.h... yes
checking execinfo.h usability... yes
checking execinfo.h presence... yes
checking for execinfo.h... yes
checking syscall.h usability... yes
checking syscall.h presence... yes
checking for syscall.h... yes
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking linux/videodev.h usability... no
checking linux/videodev.h presence... no
checking for linux/videodev.h... no
checking linux/videodev2.h usability... yes
checking linux/videodev2.h presence... yes
checking for linux/videodev2.h... yes
checking jpeglib.h usability... yes
checking jpeglib.h presence... yes
checking for jpeglib.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... yes
checking libavutil/avutil.h presence... yes
checking for libavutil/avutil.h... yes
checking libavcodec/avcodec.h usability... yes
checking libavcodec/avcodec.h presence... yes
checking for libavcodec/avcodec.h... yes
checking libavformat/avformat.h usability... yes
checking libavformat/avformat.h presence... yes
checking for libavformat/avformat.h... yes
checking libswscale/swscale.h usability... yes
checking libswscale/swscale.h presence... yes
checking for libswscale/swscale.h... yes
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/mman.h usability... yes
checking sys/mman.h presence... yes
checking for sys/mman.h... yes
checking for fcntl.h... (cached) 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 ExtUtils::MakeMaker... ok
checking for perl module Sys::Mmap... 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 Net::SFTP::Foreign... no
configure: WARNING: Net::SFTP::Foreign is required for automatic event uploading using sftp
checking for perl module Expect... no
configure: WARNING: Expect is required for automatic event uploading using sftp
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 zmconfgen.pl
config.status: creating db/Makefile
config.status: creating db/zm_create.sql
config.status: creating misc/Makefile
config.status: creating misc/apache.conf
config.status: creating misc/logrotate.conf
config.status: creating misc/syslog.conf
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/ConfigData.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 web/skins/xml/Makefile
config.status: creating web/skins/xml/views/Makefile
config.status: creating web/skins/xml/includes/Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing src/zm_config_defines.h commands
Generating 'src/zm_config_defines.h'
Updating 'db/zm_create.sql'
config.status: executing scripts/ZoneMinder/Makefile commands
perl Makefile.PL PREFIX=/opt/zm
Writing Makefile for ZoneMinder
Writing MYMETA.yml
root@ubuntu:/home/joern/build/ZoneMinder-1.25.0# make
make  all-recursive
make[1]: Betrete Verzeichnis '/home/joern/build/ZoneMinder-1.25.0'
Making all in src
make[2]: Betrete Verzeichnis '/home/joern/build/ZoneMinder-1.25.0/src'
g++ -DHAVE_CONFIG_H -I. -I..  -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -march=native -O2 -pipe -D__STDC_CONSTANT_MACROS  -march=native -O2 -pipe -MT zmc.o -MD -MP -MF .deps/zmc.Tpo -c -o zmc.o zmc.cpp
mv -f .deps/zmc.Tpo .deps/zmc.Po
g++ -DHAVE_CONFIG_H -I. -I..  -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -march=native -O2 -pipe -D__STDC_CONSTANT_MACROS  -march=native -O2 -pipe -MT zm_box.o -MD -MP -MF .deps/zm_box.Tpo -c -o zm_box.o zm_box.cpp
mv -f .deps/zm_box.Tpo .deps/zm_box.Po
g++ -DHAVE_CONFIG_H -I. -I..  -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -march=native -O2 -pipe -D__STDC_CONSTANT_MACROS  -march=native -O2 -pipe -MT zm_buffer.o -MD -MP -MF .deps/zm_buffer.Tpo -c -o zm_buffer.o zm_buffer.cpp
mv -f .deps/zm_buffer.Tpo .deps/zm_buffer.Po
g++ -DHAVE_CONFIG_H -I. -I..  -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -march=native -O2 -pipe -D__STDC_CONSTANT_MACROS  -march=native -O2 -pipe -MT zm_camera.o -MD -MP -MF .deps/zm_camera.Tpo -c -o zm_camera.o zm_camera.cpp
mv -f .deps/zm_camera.Tpo .deps/zm_camera.Po
g++ -DHAVE_CONFIG_H -I. -I..  -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -march=native -O2 -pipe -D__STDC_CONSTANT_MACROS  -march=native -O2 -pipe -MT zm_comms.o -MD -MP -MF .deps/zm_comms.Tpo -c -o zm_comms.o zm_comms.cpp
mv -f .deps/zm_comms.Tpo .deps/zm_comms.Po
g++ -DHAVE_CONFIG_H -I. -I..  -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -march=native -O2 -pipe -D__STDC_CONSTANT_MACROS  -march=native -O2 -pipe -MT zm_config.o -MD -MP -MF .deps/zm_config.Tpo -c -o zm_config.o zm_config.cpp
mv -f .deps/zm_config.Tpo .deps/zm_config.Po
g++ -DHAVE_CONFIG_H -I. -I..  -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -march=native -O2 -pipe -D__STDC_CONSTANT_MACROS  -march=native -O2 -pipe -MT zm_coord.o -MD -MP -MF .deps/zm_coord.Tpo -c -o zm_coord.o zm_coord.cpp
mv -f .deps/zm_coord.Tpo .deps/zm_coord.Po
g++ -DHAVE_CONFIG_H -I. -I..  -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -march=native -O2 -pipe -D__STDC_CONSTANT_MACROS  -march=native -O2 -pipe -MT zm.o -MD -MP -MF .deps/zm.Tpo -c -o zm.o zm.cpp
mv -f .deps/zm.Tpo .deps/zm.Po
g++ -DHAVE_CONFIG_H -I. -I..  -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -march=native -O2 -pipe -D__STDC_CONSTANT_MACROS  -march=native -O2 -pipe -MT zm_db.o -MD -MP -MF .deps/zm_db.Tpo -c -o zm_db.o zm_db.cpp
mv -f .deps/zm_db.Tpo .deps/zm_db.Po
g++ -DHAVE_CONFIG_H -I. -I..  -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -march=native -O2 -pipe -D__STDC_CONSTANT_MACROS  -march=native -O2 -pipe -MT zm_logger.o -MD -MP -MF .deps/zm_logger.Tpo -c -o zm_logger.o zm_logger.cpp
zm_logger.cpp:43:13: Warnung: »void subtractTime(timeval*, timeval*)« definiert, aber nicht verwendet [-Wunused-function]
mv -f .deps/zm_logger.Tpo .deps/zm_logger.Po
g++ -DHAVE_CONFIG_H -I. -I..  -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -march=native -O2 -pipe -D__STDC_CONSTANT_MACROS  -march=native -O2 -pipe -MT zm_event.o -MD -MP -MF .deps/zm_event.Tpo -c -o zm_event.o zm_event.cpp
mv -f .deps/zm_event.Tpo .deps/zm_event.Po
g++ -DHAVE_CONFIG_H -I. -I..  -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -march=native -O2 -pipe -D__STDC_CONSTANT_MACROS  -march=native -O2 -pipe -MT zm_exception.o -MD -MP -MF .deps/zm_exception.Tpo -c -o zm_exception.o zm_exception.cpp
mv -f .deps/zm_exception.Tpo .deps/zm_exception.Po
g++ -DHAVE_CONFIG_H -I. -I..  -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -march=native -O2 -pipe -D__STDC_CONSTANT_MACROS  -march=native -O2 -pipe -MT zm_file_camera.o -MD -MP -MF .deps/zm_file_camera.Tpo -c -o zm_file_camera.o zm_file_camera.cpp
mv -f .deps/zm_file_camera.Tpo .deps/zm_file_camera.Po
g++ -DHAVE_CONFIG_H -I. -I..  -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -march=native -O2 -pipe -D__STDC_CONSTANT_MACROS  -march=native -O2 -pipe -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 Destruktor »virtual FfmpegCamera::~FfmpegCamera()«:
zm_ffmpeg_camera.cpp:61:9: Warnung: »void av_close_input_file(AVFormatContext*)« ist veraltet (deklariert bei /usr/include/libavformat/avformat.h:1580) [-Wdeprecated-declarations]
zm_ffmpeg_camera.cpp:61:45: Warnung: »void av_close_input_file(AVFormatContext*)« ist veraltet (deklariert bei /usr/include/libavformat/avformat.h:1580) [-Wdeprecated-declarations]
zm_ffmpeg_camera.cpp: In Elementfunktion »virtual int FfmpegCamera::PrimeCapture()«:
zm_ffmpeg_camera.cpp:94:10: Warnung: »int av_open_input_file(AVFormatContext**, const char*, AVInputFormat*, int, AVFormatParameters*)« ist veraltet (deklariert bei /usr/include/libavformat/avformat.h:1368) [-Wdeprecated-declarations]
zm_ffmpeg_camera.cpp:94:76: Warnung: »int av_open_input_file(AVFormatContext**, const char*, AVInputFormat*, int, AVFormatParameters*)« ist veraltet (deklariert bei /usr/include/libavformat/avformat.h:1368) [-Wdeprecated-declarations]
zm_ffmpeg_camera.cpp:98:10: Warnung: »int av_find_stream_info(AVFormatContext*)« ist veraltet (deklariert bei /usr/include/libavformat/avformat.h:1412) [-Wdeprecated-declarations]
zm_ffmpeg_camera.cpp:98:46: Warnung: »int av_find_stream_info(AVFormatContext*)« ist veraltet (deklariert bei /usr/include/libavformat/avformat.h:1412) [-Wdeprecated-declarations]
zm_ffmpeg_camera.cpp:125:10: Warnung: »int avcodec_open(AVCodecContext*, AVCodec*)« ist veraltet (deklariert bei /usr/include/libavcodec/avcodec.h:4034) [-Wdeprecated-declarations]
zm_ffmpeg_camera.cpp:125:46: Warnung: »int avcodec_open(AVCodecContext*, AVCodec*)« ist veraltet (deklariert bei /usr/include/libavcodec/avcodec.h:4034) [-Wdeprecated-declarations]
mv -f .deps/zm_ffmpeg_camera.Tpo .deps/zm_ffmpeg_camera.Po
g++ -DHAVE_CONFIG_H -I. -I..  -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -march=native -O2 -pipe -D__STDC_CONSTANT_MACROS  -march=native -O2 -pipe -MT zm_image.o -MD -MP -MF .deps/zm_image.Tpo -c -o zm_image.o zm_image.cpp
zm_image.cpp: In Elementfunktion »void Image::Blend(const Image&, int) const«:
zm_image.cpp:777:44: Warnung: Operation auf »pdest« könnte undefiniert sein [-Wsequence-point]
mv -f .deps/zm_image.Tpo .deps/zm_image.Po
g++ -DHAVE_CONFIG_H -I. -I..  -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -march=native -O2 -pipe -D__STDC_CONSTANT_MACROS  -march=native -O2 -pipe -MT zm_local_camera.o -MD -MP -MF .deps/zm_local_camera.Tpo -c -o zm_local_camera.o zm_local_camera.cpp
mv -f .deps/zm_local_camera.Tpo .deps/zm_local_camera.Po
g++ -DHAVE_CONFIG_H -I. -I..  -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -march=native -O2 -pipe -D__STDC_CONSTANT_MACROS  -march=native -O2 -pipe -MT zm_monitor.o -MD -MP -MF .deps/zm_monitor.Tpo -c -o zm_monitor.o zm_monitor.cpp
zm_monitor.cpp: In Elementfunktion »virtual void MonitorStream::runStream()«:
zm_monitor.cpp:3479:14: Warnung: Variable »frame_sent« gesetzt, aber nicht verwendet [-Wunused-but-set-variable]
mv -f .deps/zm_monitor.Tpo .deps/zm_monitor.Po
g++ -DHAVE_CONFIG_H -I. -I..  -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -march=native -O2 -pipe -D__STDC_CONSTANT_MACROS  -march=native -O2 -pipe -MT zm_ffmpeg.o -MD -MP -MF .deps/zm_ffmpeg.Tpo -c -o zm_ffmpeg.o zm_ffmpeg.cpp
mv -f .deps/zm_ffmpeg.Tpo .deps/zm_ffmpeg.Po
g++ -DHAVE_CONFIG_H -I. -I..  -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -march=native -O2 -pipe -D__STDC_CONSTANT_MACROS  -march=native -O2 -pipe -MT zm_mpeg.o -MD -MP -MF .deps/zm_mpeg.Tpo -c -o zm_mpeg.o zm_mpeg.cpp
zm_mpeg.cpp: In Elementfunktion »void VideoStream::SetupCodec(int, int, int, int, double)«:
zm_mpeg.cpp:80:9: Warnung: »AVStream* av_new_stream(AVFormatContext*, int)« ist veraltet (deklariert bei /usr/include/libavformat/avformat.h:1604) [-Wdeprecated-declarations]
zm_mpeg.cpp:80:29: Warnung: »AVStream* av_new_stream(AVFormatContext*, int)« ist veraltet (deklariert bei /usr/include/libavformat/avformat.h:1604) [-Wdeprecated-declarations]
zm_mpeg.cpp: In Elementfunktion »void VideoStream::SetParameters()«:
zm_mpeg.cpp:133:7: Warnung: »int av_set_parameters(AVFormatContext*, AVFormatParameters*)« ist veraltet (deklariert bei /usr/include/libavformat/avformat.h:1640) [-Wdeprecated-declarations]
zm_mpeg.cpp:133:34: Warnung: »int av_set_parameters(AVFormatContext*, AVFormatParameters*)« ist veraltet (deklariert bei /usr/include/libavformat/avformat.h:1640) [-Wdeprecated-declarations]
zm_mpeg.cpp: In Elementfunktion »void VideoStream::OpenStream()«:
zm_mpeg.cpp:179:8: Warnung: »int avcodec_open(AVCodecContext*, AVCodec*)« ist veraltet (deklariert bei /usr/include/libavcodec/avcodec.h:4034) [-Wdeprecated-declarations]
zm_mpeg.cpp:179:29: Warnung: »int avcodec_open(AVCodecContext*, AVCodec*)« ist veraltet (deklariert bei /usr/include/libavcodec/avcodec.h:4034) [-Wdeprecated-declarations]
zm_mpeg.cpp:244:2: Warnung: »int av_write_header(AVFormatContext*)« ist veraltet (deklariert bei /usr/include/libavformat/avformat.h:1676) [-Wdeprecated-declarations]
zm_mpeg.cpp:244:21: Warnung: »int av_write_header(AVFormatContext*)« ist veraltet (deklariert bei /usr/include/libavformat/avformat.h:1676) [-Wdeprecated-declarations]
zm_mpeg.cpp: In Elementfunktion »double VideoStream::EncodeFrame(uint8_t*, int, bool, unsigned int)«:
zm_mpeg.cpp:386:77: Fehler: »av_rescale_q« wurde in diesem Gültigkeitsbereich nicht definiert
make[2]: *** [zm_mpeg.o] Fehler 1
make[2]: Verlasse Verzeichnis '/home/joern/build/ZoneMinder-1.25.0/src'
make[1]: *** [all-recursive] Fehler 1
make[1]: Verlasse Verzeichnis '/home/joern/build/ZoneMinder-1.25.0'
make: *** [all] Fehler 2
Schuhkasten
Posts: 48
Joined: Thu Jun 03, 2010 6:43 am

Re: Install 1.25.0 under Ubuntu 12.04

Post by Schuhkasten »

By the way:

installing it from the repository under Ubuntu 12.04 I get:

joern@ubuntu:/var/www$ sudo service zoneminder start
Starting ZoneMinder: Bareword "ZM_PATH_LOGS" not allowed while "strict subs" in use at /usr/share/perl5/ZoneMinder/Logger.pm line 153.
BEGIN not safe after errors--compilation aborted at /usr/share/perl5/ZoneMinder/Logger.pm line 168.
Compilation failed in require at /usr/share/perl5/ZoneMinder.pm line 34.
BEGIN failed--compilation aborted at /usr/share/perl5/ZoneMinder.pm line 34.
Compilation failed in require at /usr/bin/zmpkg.pl line 37.
BEGIN failed--compilation aborted at /usr/bin/zmpkg.pl line 37.
failure
mastertheknife
Posts: 678
Joined: Wed Dec 16, 2009 4:32 pm
Location: Israel

Re: Install 1.25.0 under Ubuntu 12.04

Post by mastertheknife »

Regarding the error in post 1, this can be solved by grabbing ZM from the SVN or by adding #include <limits.h> to src/zm_local_camera.cpp
The error in 2nd post is unknown to me, and the one in the 3rd post is usually caused by a bad "Config" table in the database.

mastertheknife
Kfir Itzhak.
Locked