Page 1 of 1

Gentoo Compile Problems (solved)

Posted: Sun Oct 09, 2005 4:06 pm
by coutts99
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?

Posted: Sun Oct 09, 2005 7:49 pm
by cordel
I have a small clue where you might look, It is tring to pull functions from ffmpeg libraries and failing. What version of ffmpeg do you have installed?
Regards,
Cordel

I have the same problem, not being able to compile

Posted: Tue Oct 11, 2005 11:10 pm
by rjohanne
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

Posted: Thu Oct 13, 2005 8:33 pm
by zoneminder
See various other threads for details. Essentially the ffmpeg project change their interfaces regularly and without notice. Existing versions of ZM don't work with the latest CVS ffmpeg, however the next version will.

Phil

Posted: Fri Oct 14, 2005 3:17 am
by cordel
You should be able to compile with ffmpeg 0.4.8 but not any new versions of ffmpeg till the next release. As ffmpeg is rapidly being developed and changes often in CVS it tends to break alot.
Regards,
Cordel

Posted: Fri Oct 14, 2005 9:17 am
by coutts99
Downgrading ffmpeg did solve the problem.

Posted: Fri Oct 14, 2005 4:26 pm
by zoneminder
Ffmpeg 0.4.9-0-pre1 also works AFAIK with existing released versions of ZM.

Phil