Gentoo Compile Problems (solved)

Support and queries relating to all previous versions of ZoneMinder
Locked
coutts99
Posts: 2
Joined: Sun Oct 09, 2005 4:02 pm
Location: Sunderland, UK

Gentoo Compile Problems (solved)

Post 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?
Last edited by coutts99 on Fri Oct 14, 2005 9:17 am, edited 1 time in total.
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post 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
rjohanne
Posts: 2
Joined: Tue Oct 11, 2005 10:35 pm
Location: midwest

I have the same problem, not being able to compile

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

Post 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
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post 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
coutts99
Posts: 2
Joined: Sun Oct 09, 2005 4:02 pm
Location: Sunderland, UK

Post by coutts99 »

Downgrading ffmpeg did solve the problem.
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Ffmpeg 0.4.9-0-pre1 also works AFAIK with existing released versions of ZM.

Phil
Locked