During 'Make':undefined reference to `avcodec_encode_video2'

Forum for questions and support relating to the 1.26.x releases only.
Locked
jarlel
Posts: 11
Joined: Thu Oct 03, 2013 7:37 am

During 'Make':undefined reference to `avcodec_encode_video2'

Post by jarlel »

Hi, I'm trying to build ZM but get an issue with undefined reference to `avcodec_encode_video2'.

It seems to be related to the libavcodec version. I see somewhere that `avcodec_encode_video2' is only available in libavcodec54.

Does anybody know how to solve this?

Cheers,
Jarle
windracer
Posts: 61
Joined: Sat Jul 23, 2011 1:15 am

Re: During 'Make':undefined reference to `avcodec_encode_vid

Post by windracer »

I replied in the other thread but my problem was that I was using static libraries with my custom ffmpeg compile. I removed everything and then rebuilt ffmpeg from scratch using the shared library configuration instead and that got me past that error. The problem was apparently an old library file hanging out somewhere that was causing a problem with the zoneminder compile.
Locked