Page 1 of 1

CentOS 6.3 make error

Posted: Tue Dec 11, 2012 1:23 pm
by macko003
Hi

I have tried a lot of thing, but I can't solve this problem.
I installed every package what I found on every how-to posts. (eg. http://www.zoneminder.com/wiki/index.php/CentOS)
Could you help me?

Thanks,

Macko003

OS:
CentOS release 6.3 (Final)

ZM:
latest, 1.25.0

ffmpeg:
ffmpeg version 0.10.5 Copyright (c) 2000-2012 the FFmpeg developers
built on Oct 7 2012 19:00:24 with gcc 4.4.6 20110731 (Red Hat 4.4.6-3)
configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib --mandir=/usr/share/man --arch=i686 --extra-cflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables' --enable-bzlib --disable-crystalhd --enable-gnutls --enable-libass --enable-libcdio --enable-libdc1394 --disable-indev=jack --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-openal --enable-libopenjpeg --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libv4l2 --enable-libx264 --enable-libxvid --enable-x11grab --enable-avfilter --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib --cpu=i686 --enable-runtime-cpudetect
libavutil 51. 35.100 / 51. 35.100
libavcodec 53. 61.100 / 53. 61.100
libavformat 53. 32.100 / 53. 32.100
libavdevice 53. 4.100 / 53. 4.100
libavfilter 2. 61.100 / 2. 61.100
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 6.100 / 0. 6.100
libpostproc 52. 0.100 / 52. 0.100

ZM config:
./configure --with-webdir=/var/www/html/zm --with-cgidir=/var/www/cgi-bin --with-ffmpeg=/usr/local/share/ffmpeg --with-webuser=apache --with-webgroup=apache ZM_DB_HOST=localhost ZM_DB_NAME=zm ZM_DB_USER=zm_user ZM_DB_PASS=zm_Pass --with-extralibs="-L/usr/lib64 -L/usr/lib64/mysql" CXXFLAGS="-D__STDC_CONSTANT_MACROS" ZM_SSL_LIB=openssl CPPFLAGS="-D__STDC_CONSTANT_MACROS"

make error:
make all-recursive
make[1]: Entering directory `/usr/src/ZoneMinder-1.25.0'
Making all in src
make[2]: Entering directory `/usr/src/ZoneMinder-1.25.0/src'
g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include -I/usr/local/share/ffmpeg/include -Wall -Wno-sign-compare -fno-inline -I/usr/local/share/ffmpeg/include -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,
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[2]: *** [zmc.o] Error 1
make[2]: Leaving directory `/usr/src/ZoneMinder-1.25.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/ZoneMinder-1.25.0'
make: *** [all] Error 2

Re: CentOS 6.3 make error

Posted: Tue Jan 08, 2013 11:39 pm
by bardoczs
on my 64bit centos 6.3 i compiled zm whith:
./configure --with-webdir=/var/www/html/zm --with-cgidir=/var/www/cgi-bin --with-ffmpeg=/usr/local/share/ffmpeg --with-webuser=apache --with-webgroup=apache ZM_DB_HOST=localhost ZM_DB_NAME=zm ZM_DB_USER=zmuser ZM_DB_PASS=zmpass ZM_SSL_LIB=openssl --with-libarch=lib64 CXXFLAGS="-D__STDC_CONSTANT_MACROS"