Re: Unable to build kino-1.3.4 on Fedora 20

Stefan Richter <[email protected]> Sun, 25 May 2014 14:38:51 +0200
Newsgroups gmane.comp.video.kino.devel
Message-ID <20140525143851.5b6800ad@kant>
On May 22 JD wrote:
> Tried to build kino-1.3.4-4 on fc20 with these configure options:
> configure --enable-quicktime --enable-local-ffmpeg \
>            --disable-static \
>            --disable-dependency-tracking \
>            --enable-quicktime
> 
> I got tons of unresolved symbols. Here is the last compilation line in the build
> followed by the unresolved symbols error messages:
[...]
> frame.o: In function `Frame::~Frame()':
> /home/jd/rpmbuild/BUILD/kino-1.3.4/src/frame.cc:193: undefined reference to `avcodec_close(AVCodecContext*)'
> /home/jd/rpmbuild/BUILD/kino-1.3.4/src/frame.cc:194: undefined reference to `av_free(void*)'
> /home/jd/rpmbuild/BUILD/kino-1.3.4/src/frame.cc:205: undefined reference to `av_free(void*)'
> frame.o: In function `Frame::Frame()':
> /home/jd/rpmbuild/BUILD/kino-1.3.4/src/frame.cc:106: undefined reference to `av_register_all()'
> /home/jd/rpmbuild/BUILD/kino-1.3.4/src/frame.cc:107: undefined reference to `avcodec_alloc_context()'
> /home/jd/rpmbuild/BUILD/kino-1.3.4/src/frame.cc:108: undefined reference to `avcodec_find_decoder(CodecID)'
> /home/jd/rpmbuild/BUILD/kino-1.3.4/src/frame.cc:108: undefined reference to `avcodec_open(AVCodecContext*, AVCodec*)'
[...]

There is also a bug and a patch here:
https://bugs.gentoo.org/show_bug.cgi?id=372053

From: Andrew Savchenko <[email protected]>

--- configure.in.orig	2009-09-08 10:35:23.000000000 +0400
+++ configure.in	2013-08-29 21:58:55.228194031 +0400
@@ -224,6 +224,7 @@
 			PKG_CHECK_MODULES(AVCODEC, libavformat,
 			[
 				AC_DEFINE(HAVE_LIBAVCODEC, 1, [Enable FFMPEG libavcodec])
+                                AVCODEC_LIBS="-lavformat -lavcodec -lavutil"
 				AC_SUBST(AVCODEC_LIBS)
 				AC_SUBST(AVCODEC_CFLAGS)
 				PKG_CHECK_MODULES(SWSCALE, libswscale,[

-- 
Stefan Richter
-=====-====- -=-= ==--=
http://arcgraph.de/sr/

------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs