Page 1 of 1

I get an error on Make zm_mpeg.cpp:88: error:

Posted: Fri Sep 16, 2005 7:05 am
by richmax39
Hello,

I get the following errors when I run make.
zm_mpeg.cpp:88: error: ‘struct AVCodecContext’ has no member named ‘frame_rate’
zm_mpeg.cpp:90: error: ‘struct AVCodecContext’ has no member named ‘frame_rate_base’

I used the following command to configure:
./configure --with-mysql=/usr --with-webdir=/var/www/html/zm --with-cgidir=/var/www/cgi-bin --with-ffmpeg=/usr/include/ffmpeg --with-lame=/usr/include/lame

I also tried without these two options -with-ffmpeg=/usr/include/ffmpeg --with-lame=/usr/include/lame,but I still get same errors.

I used following commands in following order:
./configure
perl ./zmconfig.p
perl ./zmconfig.pl -noi
make

environment:
zm-1.21.3
FC4 with updated to newest packages of (Sep 16)
Following packages installed
ffmpeg, ffmpeg-devel, lame, lame-devel

Am I missing any other packages?
or do I have to specify something different than default in "perl ./zmconfig.pl"?

Best Regards,
RMJ

Posted: Tue Sep 20, 2005 9:50 am
by zoneminder
You have to be very careful with ffmpeg. They tend to change the API and structures at random in the CVS versions without telling anyone and there's no simple way to detect it. I would try using one of the 'release' versions such as 0.4.8 or 0.4.9 and seeing if your error goes away.

Phil