make errors zm_mpeg.cpp (Solved)

Support and queries relating to all previous versions of ZoneMinder
Locked
arosboro
Posts: 5
Joined: Fri Dec 09, 2005 11:07 pm

make errors zm_mpeg.cpp (Solved)

Post by arosboro »

I'm trying to compile zoneminder-1.21.4 after giving up on gentoo's ebuilds.

I have ffmpeg version 0.4.9-pre1, build 4743 but I don't know if that's the problem. when I compile I use the following ./configure command:

Code: Select all

./configure --prefix=/usr --sysconfdir=/etc --infodir=/usr/share/info --mandir=/usr/share/man --with-webdir=/var/www/localhost/zoneminder --with-cgidir=/var/www/localhost/cgi-bin/ --with-mysql=/usr
I tried that with and without --with-ffmpeg=/usr/bin

I do perl ./zmconfig.pl -f zmconfig-gentoo.txt -noi and have been doing perl ./zmconfig.pl -noi for retries:

Code: Select all

# perl ./zmconfig.pl -noi
Loading config from 'zmconfig.txt'
Loading config from DB
Saving config to 'zmconfig.txt'
Saving config to DB
Generating 'src/zm_config_defines.h'
Processing 'zm.conf'
Processing 'src/zm_config.h'
Processing 'web/zm_config.php'
Processing 'scripts/zmdc.pl'
Processing 'scripts/zmwatch.pl'
Processing 'scripts/zmaudit.pl'
Processing 'scripts/zmfilter.pl'
Processing 'scripts/zmtrigger.pl'
Processing 'scripts/zmx10.pl'
Processing 'scripts/zmpkg.pl'
Processing 'scripts/zmupdate.pl'
Processing 'scripts/zmvideo.pl'
Processing 'scripts/zmcontrol-pelco-d.pl'
Processing 'scripts/zmcontrol-pelco-p.pl'
Processing 'scripts/zmcontrol-visca.pl'
Processing 'scripts/zmcontrol-kx-hcm10.pl'
Processing 'scripts/zmcontrol-axis-v2.pl'
Processing 'scripts/zmtrack.pl'
Processing 'scripts/zm'
Processing 'db/zmschema.sql'
I still get make erros like the following:

Code: Select all

zm_mpeg.cpp: In member function `double VideoStream::EncodeFrame(uint8_t*, int,
   bool, unsigned int)':
zm_mpeg.cpp:331: error: 'struct AVCodecContext' has no member named 'time_base'
zm_mpeg.cpp:331: error: `av_rescale_q' undeclared (first use this function)
zm_mpeg.cpp:331: error: (Each undeclared identifier is reported only once for
   each function it appears in.)
make[2]: *** [zm_mpeg.o] Error 1
make[2]: Leaving directory `/root/zm/zm-1.21.4/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/zm/zm-1.21.4'
make: *** [all] Error 2
Can anyone help? One of the main issues with gentoo's 1.21.3 ebuild was that zmpkg.pl didn't stay running when I started it for some reason. There were also permission errors.

I just want a working zoneminder build to play with. Thanks
Last edited by arosboro on Sat Dec 10, 2005 12:45 am, edited 1 time in total.
arosboro
Posts: 5
Joined: Fri Dec 09, 2005 11:07 pm

Post by arosboro »

Looks like I didn't look around the forums enough, so I better yell at myself before someone else does ...

General consensus

here http://www.zoneminder.com/forums/viewtopic.php?t=5342
here http://www.zoneminder.com/forums/viewtopic.php?t=5344
and here http://www.zoneminder.com/forums/viewtopic.php?t=5351

is that I should use ffmpeg version 0.4.8 and I had 0.4.9-pre1, so I'm downgrading. I have a growing suspicion that my problems are going to disappear soon. :D

I'll change the title to solved if it works ;)

[edit]Yeah that did it. I think this install is much cleaner than the one portage offered for 1.21.3. It had issues with zmpkg.pl start, and authentication/loging in.[/edit]
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

The problem with the various versions of ffmpeg should be fixed in 1.22.0 shortly.

Phil
Locked