installation process failing on Fedora 20

Forum for questions and support relating to the 1.26.x releases only.
Locked
protector
Posts: 2
Joined: Fri Jan 31, 2014 5:30 am

installation process failing on Fedora 20

Post by protector »

I'm installing 1.26.5 on Fedora 20. When I run the make command errors appear:

Code: Select all

In file included from /home/gregmj/ZoneMinder-1.26.5/src/zm_event.cpp:34:0:
/home/gregmj/ZoneMinder-1.26.5/src/zm_mpeg.h:43:7: error: use of enum ‘PixelFormat’ without previous declaration
  enum PixelFormat pf;
       ^
/home/gregmj/ZoneMinder-1.26.5/src/zm_mpeg.h:44:2: error: ‘AVOutputFormat’ does not name a type
  AVOutputFormat *of;
  ^
/home/gregmj/ZoneMinder-1.26.5/src/zm_mpeg.h:45:2: error: ‘AVFormatContext’ does not name a type
  AVFormatContext *ofc;
  ^
/home/gregmj/ZoneMinder-1.26.5/src/zm_mpeg.h:46:2: error: ‘AVStream’ does not name a type
  AVStream *ost;
  ^
/home/gregmj/ZoneMinder-1.26.5/src/zm_mpeg.h:47:2: error: ‘AVFrame’ does not name a type
  AVFrame *opicture;
  ^
/home/gregmj/ZoneMinder-1.26.5/src/zm_mpeg.h:48:2: error: ‘AVFrame’ does not name a type
  AVFrame *tmp_opicture;
  ^
/home/gregmj/ZoneMinder-1.26.5/src/zm_event.cpp: In member function ‘bool EventStream::sendFrame(int)’:
/home/gregmj/ZoneMinder-1.26.5/src/zm_event.cpp:1205:24: warning: unused variable ‘filestat’ [-Wunused-variable]
     static struct stat filestat;
                        ^
make[2]: *** [src/CMakeFiles/zm.dir/zm_event.cpp.o] Error 1
make[2]: Leaving directory `/home/gregmj/ZoneMinder-1.26.5'
make[1]: *** [src/CMakeFiles/zm.dir/all] Error 2
make[1]: Leaving directory `/home/gregmj/ZoneMinder-1.26.5'
make: *** [all] Error 2
I get that I may need to edit src/zm_ffmpeg.h per:
http://www.zoneminder.com/wiki/index.ph ... mpeg_again
But I'm not clear what I need to put there. In case it helps here's a directory listing:

Code: Select all

$ ls /usr/include/ffmpeg
libavcodec   libavfilter  libavresample  libpostproc    libswscale
libavdevice  libavformat  libavutil      libswresample
Many thanks for any ideas!
User avatar
knight-of-ni
Posts: 2404
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: installation process failing on Fedora 20

Post by knight-of-ni »

When building zoneminder fails with any AVxxxxxxx error, that means one of the following:
  • You are using a version of ffmpeg that zoneminder does not recognize
  • Your ffmpeg headers are missing a.k.a. ffmpeg-devel package
  • Your ffmpeg headers are in a location that ffmpeg cannot find
What repo did you get ffmpeg from?

Oh, and if you want to skip compiling altogether then just use these rpms:
http://www.zoneminder.com/forums/viewto ... =9&t=21400
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
protector
Posts: 2
Joined: Fri Jan 31, 2014 5:30 am

Re: installation process failing on Fedora 20

Post by protector »

Thank you; the RPM worked wonderfully. The thing is thrashing a bit now but I may not have the DB optimized--and I used mysql rather than mariadb, which might not have been a good idea.
Locked