[Solved] Compile error: ffmpeg
#1
All of a sudden im getting ffmpeg errors.
Everything was fine a few days ago, I've recloned the git & started again, but im still getting this error.

make: *** No rule to make target `lib/ffmpeg/libavcodec/libavcodec.a', needed by `xbmc.bin'. Stop.

Im running ubuntu 12.04 & i ran ./configure with no options.

Any ideas ?

Thanks
Reply
#2
https://github.com/xbmc/xbmc/pull/4137
Reply
#3
Thanks wsnipex

Problem Solved.
Reply
#4
Hi,
Despite this:
Code:
commit ad815563a3837bbd9ea73c3645af55ec56cacb9a
Author: Trent Nelson <[email protected]>
Date:   Tue Feb 4 11:26:50 2014 -0700

    [buildsys] Fix parallel build with static ffmpeg.
Probably there are still problems, I have the following:
Code:
...
LD      xbmc.bin
lib/ffmpeg/libavformat/libavformat.a(rtmpdh.o): In function `dh_is_valid_public_key':
rtmpdh.c:(.text+0x30): undefined reference to `__gmpz_init2'
rtmpdh.c:(.text+0x40): undefined reference to `__gmpz_set_ui'
...
Im running ubuntu 13.10.
Thanks
Reply
#5
You compile with external ffmpeg?
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply
#6
No, I use the same debian/rules files present nightly xbmc-ppa.
Reply
#7
I also had the same "undefined reference" issues, which I fixed by modifying Makefile:

I added to the "LIBS=" section, "-lgmp -lhogweed"
Reply
#8
It works, thanks. It can be a permanent solution to put in git?
Greetings.
Reply
#9
its already been fixed and fix is commited so this pr no longer applies.
Reply
#10
I do not think this specific problem. This is my build log:
http://paste.ubuntu.com/6975370/
git Rev.: 20140222-b50a14d
bye
Reply
#11
which distribution is that? It works perfectly fine on ubuntu.
Seems like a problem with gnutls, which version do you have?
Reply
#12
Looks like something in your most likely custom librtmp-dev?
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply
#13
My ubuntu:
ubuntu 13.10 (saucy) Kernel 3.13.0-031300-generic
with:
Code:
ii  librtmp-dev                               2.4+20121230.gitdf6c518-1                             i386         toolkit for RTMP streams (development files)
ii  librtmp0:i386                             2.4+20121230.gitdf6c518-1                             i386         toolkit for RTMP streams (shared library)
ii  gnutls-bin                                3.0.11+really2.12.23-1ubuntu4                         i386         GNU TLS library - commandline utilities
ii  libcurl3-gnutls:i386                      7.32.0-1ubuntu1.3                                     i386         easy-to-use client-side URL transfer library (GnuTLS flavour)
ii  libcurl4-gnutls-dev                       7.32.0-1ubuntu1.3                                     i386         development files and documentation for libcurl (GnuTLS flavour)
ii  libgnutls-dev                             2.12.23-1ubuntu4                                      i386         GNU TLS library - development files
ii  libgnutls-openssl27:i386                  2.12.23-1ubuntu4                                      i386         GNU TLS library - OpenSSL wrapper
ii  libgnutls26:i386                          2.12.23-1ubuntu4                                      i386         GNU TLS library - runtime library
ii  libgnutls28:i386                          3.2.3-1ubuntu1                                        i386         GNU TLS library - main runtime library
ii  libgnutlsxx27:i386                        2.12.23-1ubuntu4                                      i386         GNU TLS library - C++ runtime library
ii  libneon27-gnutls                          0.29.6-3                                              i386         HTTP and WebDAV client library (GnuTLS enabled)
ii  libneon27-gnutls-dev                      0.29.6-3                                              i386         Header and static library files for libneon27 (GnuTLS enabled)

however, because adding -lgmp -lhogweed work?
My safe solution:
added in configure.in
Code:
AC_CHECK_LIB([gmp],         [main],, AC_MSG_ERROR($missing_library))
AC_CHECK_LIB([hogweed],         [main],, AC_MSG_ERROR($missing_library))
Reply
#14
Neither of those are required by xbmc to compile... Nettle is definitely not anything to do with xbmc.
Reply
#15
I have the same problem on my debian. I am doing standard ./bootstrap and ./configure without any switches. Works fine before (b6b5cee), now (15561b4) I have problems when linking:
http://pastebin.com/Hq2PcykX

Manually adding "-lgmp -lhogweed" to libs in generated Makefile also helps.
Reply

Logout Mark Read Team Forum Stats Members Help
[Solved] Compile error: ffmpeg0