Help compiling ZM 1.26.5 on Fedora 20

Forum for questions and support relating to the 1.26.x releases only.
Locked
oalonso
Posts: 1
Joined: Wed Jan 08, 2014 1:53 pm

Help compiling ZM 1.26.5 on Fedora 20

Post by oalonso »

Anyone seen this error (see below) when compiling ZM 1.26.5 on Fedora 20?

If so, please advise. Thank you in advance.


./configure --with-webdir=/var/www/html/zm --with-cgidir=/var/www/cgi-bin --with-ffmpeg=/usr/include/ffmpeg --with-webuser=apache --with-webgroup=apache ZM_DB_HOST=localhost ZM_DB_NAME=zm ZM_DB_USER=zmuser ZM_DB_PASS=zmpass --with-extralibs="-L/usr/lib64 -L/usr/lib64/mysql" CXXFLAGS="-D__STDC_CONSTANT_MACROS"

make
make all-recursive
make[1]: Entering directory `/home/oalonso/Downloads/ZoneMinder-1.26.5'
Making all in src
make[2]: Entering directory `/home/oalonso/Downloads/ZoneMinder-1.26.5/src'
g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include -I/usr/local/share/ffmpeg/include -D__STDC_CONSTANT_MACROS -Wall -finline-functions -fomit-frame-pointer -I/usr/local/share/ffmpeg/include -D__STDC_CONSTANT_MACROS -D__STDC_CONSTANT_MACROS -D__STDC_CONSTANT_MACROS -MT zmc.o -MD -MP -MF .deps/zmc.Tpo -c -o zmc.o zmc.cpp
In file included from zm_stream.h:27:0,
from zm_event.h:39,
from zm_zone.h:27,
from zm_monitor.h:30,
from zmc.cpp:28:
zm_mpeg.h:43:7: error: use of enum ‘PixelFormat’ without previous declaration
enum PixelFormat pf;
^
zm_mpeg.h:44:2: error: ‘AVOutputFormat’ does not name a type
AVOutputFormat *of;
^
zm_mpeg.h:45:2: error: ‘AVFormatContext’ does not name a type
AVFormatContext *ofc;
^
zm_mpeg.h:46:2: error: ‘AVStream’ does not name a type
AVStream *ost;
^
zm_mpeg.h:47:2: error: ‘AVFrame’ does not name a type
AVFrame *opicture;
^
zm_mpeg.h:48:2: error: ‘AVFrame’ does not name a type
AVFrame *tmp_opicture;
^
make[2]: *** [zmc.o] Error 1
make[2]: Leaving directory `/home/oalonso/Downloads/ZoneMinder-1.26.5/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/oalonso/Downloads/ZoneMinder-1.26.5'
make: *** [all] Error 2
Locked