Installation of 1.24.4 fails

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

Installation of 1.24.4 fails

Post by Schuhkasten »

Hello

I tried to make eeZM run and wanted to install 1.24.4.

It fails with:

Code: Select all

sudo make install
Making install in src
make[1]: Entering directory `/home/joern/eyeZM/zoneminder/ZoneMinder-1.24.4/src'
g++ -DHAVE_CONFIG_H -I. -I..  -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include   -g -O2 -MT zmc.o -MD -MP -MF .deps/zmc.Tpo -c -o zmc.o zmc.cpp
In file included from zm_mpeg.h:23,
                 from zm_stream.h:27,
                 from zm_event.h:39,
                 from zm_zone.h:27,
                 from zm_monitor.h:26,
                 from zmc.cpp:28:
zm_ffmpeg.h:33:2: error: #error "No location for avutils.h found"
zm_ffmpeg.h:40:2: error: #error "No location for avcodec.h found"
zm_ffmpeg.h:47:2: error: #error "No location for avformat.h found"
zm_ffmpeg.h:55:2: error: #error "No location for swscale.h found"
In file included from zm_stream.h:27,
                 from zm_event.h:39,
                 from zm_zone.h:27,
                 from zm_monitor.h:26,
                 from zmc.cpp:28:
zm_mpeg.h:43: error: use of enum ‘PixelFormat’ without previous declaration
zm_mpeg.h:44: error: ISO C++ forbids declaration of ‘AVOutputFormat’ with no type
zm_mpeg.h:44: error: expected ‘;’ before ‘*’ token
zm_mpeg.h:45: error: ISO C++ forbids declaration of ‘AVFormatContext’ with no type
zm_mpeg.h:45: error: expected ‘;’ before ‘*’ token
zm_mpeg.h:46: error: ISO C++ forbids declaration of ‘AVStream’ with no type
zm_mpeg.h:46: error: expected ‘;’ before ‘*’ token
zm_mpeg.h:47: error: ISO C++ forbids declaration of ‘AVFrame’ with no type
zm_mpeg.h:47: error: expected ‘;’ before ‘*’ token
zm_mpeg.h:48: error: ISO C++ forbids declaration of ‘AVFrame’ with no type
zm_mpeg.h:48: error: expected ‘;’ before ‘*’ token
make[1]: *** [zmc.o] Error 1
make[1]: Leaving directory `/home/joern/eyeZM/zoneminder/ZoneMinder-1.24.4/src'
make: *** [install-recursive] Error 1
during compilation of

Code: Select all

sudo ./configure --with-webdir=/var/www/zm --with-cgidir=/usr/lib/cgi-bin --with-webuser=www-data --with-webgroup=www-data ZM_SSL_LIB=openssl --enable-mmap=no
he already warns me the following:

Code: Select all

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 compiler's result
configure: WARNING:     ## ------------------------------------- ##
configure: WARNING:     ## Report this to support@zoneminder.com ##
configure: WARNING:     ## ------------------------------------- ##
checking for libavutil/avutil.h... no
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 compiler's result
configure: WARNING:     ## ------------------------------------- ##
configure: WARNING:     ## Report this to support@zoneminder.com ##
configure: WARNING:     ## ------------------------------------- ##
checking for libavcodec/avcodec.h... no
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 compiler's result
configure: WARNING:     ## ------------------------------------- ##
configure: WARNING:     ## Report this to support@zoneminder.com ##
configure: WARNING:     ## ------------------------------------- ##
checking for libavformat/avformat.h... no
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 compiler's result
configure: WARNING:     ## ------------------------------------- ##
configure: WARNING:     ## Report this to support@zoneminder.com ##
configure: WARNING:     ## ------------------------------------- ##
Schuhkasten
Posts: 48
Joined: Thu Jun 03, 2010 6:43 am

Re: Installation of 1.24.4 fails

Post by Schuhkasten »

can nobody help here? Did I make a wrong way during the installation of 1.24.4?? Iam using ubuntu 10.04...
mastertheknife
Posts: 678
Joined: Wed Dec 16, 2009 4:32 pm
Location: Israel

Re: Installation of 1.24.4 fails

Post by mastertheknife »

Add "CPPFLAGS="-D__STDC_CONSTANT_MACROS" to the end of your ./configure.

Also, why install 1.24.4 and not 1.25.0 (or even better, SVN) if installing ZM from source?

mastertheknife
Kfir Itzhak.
Schuhkasten
Posts: 48
Joined: Thu Jun 03, 2010 6:43 am

Re: Installation of 1.24.4 fails

Post by Schuhkasten »

Hello,

thanks, after adding that to the config & updating further libs it worked.

Following I could not solve yet (and now errors found in /tmp/zm or /var/log/messages):

- Still my "screen" for setting the zones is missing. see http://www.zoneminder.com/forums/viewto ... 21&t=18842
hpladds
Posts: 1
Joined: Thu Mar 17, 2011 2:41 pm

Re: Installation of 1.24.4 fails

Post by hpladds »

- Still my "screen" for setting the zones is missing. see http://www.zoneminder.com/forums/viewto ... 21&t=18842
I had this problem with Ubuntu 10.10 and 1.24. It turned out to be an ownership issue with the "images" and "events" directories. I had to change them to www-data:www-data.

for me it was:
sudo chown -R www-data:www-data /var/cache/zoneminder/images
sudo chown -R www-data:www-data /var/cache/zoneminder/events

hth
Locked