Page 1 of 1

Compliation error

Posted: Thu May 26, 2011 11:40 pm
by madmatrix
Hi All,

I'm trying to build another machine for ZoneMinder. When I compiled the zoneminder 1.24.3 by "make", it gave me the error:

zm_ffmpeg_camera.cpp:105: error: âCODEC_TYPE_VIDEOâ was not declared in this scope
make[2]: *** [zm_ffmpeg_camera.o] Error 1
make[2]: Leaving directory `/tmp/ZoneMinder-1.24.3/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/ZoneMinder-1.24.3'
make: *** [all] Error 2


I executed configure like:

CPPFLAGS="-D__STDC_CONSTANT_MACROS" ./configure --with-webdir=/var/www/html/zm --with-cgidir=/var/www/cgi-bin --with-webuser=apache --with-webgroup=apache ZM_DB_HOST=localhost ZM_DB_NAME=zm ZM_DB_USER=zmuser ZM_DB_PASS=zmpass


Also I used this configure when I compiled ffmpeg:
./configure --enable-shared --enable-postproc --enable-swscale --enable-gpl

It's weird that it worked last time when I built this same OS machine. It's CentOS 5.6. 32 bits.

Please help!

Thanks a lot!

Lou

Re: Compliation error

Posted: Fri May 27, 2011 3:50 am
by madmatrix
ouch. It turned out the source code I downloaded from ALT2 is not good code. I downloaded from the original link one more time. Everything ran good. Please correct ALT2 link source code. Thanks.

Lou