I am trying to install ZoneMinder 1-21.3 from the Gentoo ebuild, but I am hitting this error on compile -:
zm_mpeg.cpp: In member function `void VideoStream::SetupCodec(int, int, int, int, int)':
zm_mpeg.cpp:78: error: cannot convert `AVCodecContext**' to `AVCodecContext*' in initialization
zm_mpeg.cpp:88: error: 'struct AVCodecContext' has no member named 'frame_rate'
zm_mpeg.cpp:89: error: 'struct AVCodecContext' has no member named 'frame_rate_base'
zm_mpeg.cpp: In member function `void VideoStream::OpenStream()':
zm_mpeg.cpp:120: error: cannot convert `AVCodecContext**' to `AVCodecContext*' in initialization
zm_mpeg.cpp: In destructor `VideoStream::~VideoStream()':
zm_mpeg.cpp:220: error: cannot convert `AVCodecContext**' to `AVCodecContext*' for argument `1' to `int avcodec_close(AVCodecContext*)'
zm_mpeg.cpp: In member function `double VideoStream::EncodeFrame(uint8_t*, int, bool, unsigned int)':
zm_mpeg.cpp:263: error: cannot convert `AVCodecContext**' to `AVCodecContext*' in initialization
make[2]: *** [zm_mpeg.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/zoneminder-1.21.3/work/zm-1.21.3/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/zoneminder-1.21.3/work/zm-1.21.3'
make: *** [all] Error 2
Anyone got any ideas?
Gentoo Compile Problems (solved)
Gentoo Compile Problems (solved)
Last edited by coutts99 on Fri Oct 14, 2005 9:17 am, edited 1 time in total.
I have the same problem, not being able to compile
I have the same problem of not being able to compile because it "cannot convert `AVCodecContext**' to `AVCodecContext*'" and I am using the latest cvs release of ffmpeg as of Sunday and zm 1.21.3. So, yes, it is related to it trying to pull in functions from ffmpeg.
How does one get around it?
rj
How does one get around it?
rj
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact: