make errors zm_mpeg.cpp (Solved)
Posted: Fri Dec 09, 2005 11:15 pm
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:
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:
I still get make erros like the following:
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
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 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'
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
I just want a working zoneminder build to play with. Thanks