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

Support and queries relating to all previous versions of ZoneMinder
Locked
richmax39
Posts: 1
Joined: Fri Sep 16, 2005 6:51 am

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

Post 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
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post 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
Locked