Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] kodi: build errors
Date: Thu, 12 Mar 2015 11:25:59 +0100	[thread overview]
Message-ID: <20150312112559.627104ad@free-electrons.com> (raw)
In-Reply-To: <CAJ4jsacVyYjMJXaQ=AzWKV+wxT5kh_MswyvaP5KUmmKpngjouQ@mail.gmail.com>

Dear Carlos A. M. dos Santos,

On Wed, 11 Mar 2015 22:49:48 -0300, Carlos A. M. dos Santos wrote:
> Hello,
> 
> I'm facing some errors trying to build kodi using the buildroot
> (commit a4788aa6157d1496cdd32cb9802710d4e97bc550)
> 
> The first problem is that kodi requires "libjpeg" to build, not
> "jpeg". I solved the problem applying the following patch:
> 
> diff --git a/package/kodi/Config.in b/package/kodi/Config.in
> index 1bc8b15..f6e95e2 100644
> --- a/package/kodi/Config.in
> +++ b/package/kodi/Config.in
> @@ -42,7 +42,7 @@ menuconfig BR2_PACKAGE_KODI
>      select BR2_PACKAGE_FONTCONFIG
>      select BR2_PACKAGE_FREETYPE
>      select BR2_PACKAGE_JASPER
> -    select BR2_PACKAGE_JPEG
> +    select BR2_PACKAGE_LIBJPEG
>      select BR2_PACKAGE_LIBASS
>      select BR2_PACKAGE_LIBCDIO
>      select BR2_PACKAGE_LIBCURL
> diff --git a/package/kodi/kodi.mk b/package/kodi/kodi.mk
> index f40fc31..fd6fbfe 100644
> --- a/package/kodi/kodi.mk
> +++ b/package/kodi/kodi.mk
> @@ -16,7 +16,7 @@ KODI_INSTALL_STAGING = YES
>  # http://wiki.xbmc.org/index.php?title=TexturePacker
>  KODI_DEPENDENCIES = host-gawk host-gettext host-gperf host-infozip host-lzo \
>      host-nasm host-sdl_image host-swig
> -KODI_DEPENDENCIES += boost bzip2 expat ffmpeg fontconfig freetype jasper jpeg \
> +KODI_DEPENDENCIES += boost bzip2 expat ffmpeg fontconfig freetype
> jasper libjpeg \
>      libass libcdio libcurl libfribidi libgcrypt libmad libmodplug libmpeg2 \
>      libogg libplist libpng libsamplerate libungif libvorbis libxml2
> libxslt lzo ncurses \
>      openssl pcre python readline sqlite taglib tiff tinyxml yajl zlib

This change is not correct: selecting BR2_PACKAGE_JPEG and having
'jpeg' in KODI_DEPENDENCIES is the right thing to do. The 'jpeg'
package is a virtual package: it will itself depend on 'libjpeg' or
'jpeg-turbo' depending on the selected jpeg implementation.

Can you be more specific about which problems you have seen in relation
to jpeg support?

> (sorry, the copy/paste converted tabs to spaces)
> 
> The error in build/kodi-14.1-Helix/config.log is
> 
> configure:26554: checking for main in -lSDL_image
> configure:26573:
> /work/br-master-glibc/host/usr/bin/i686-buildroot-linux-gnu-gcc -o
> conftest -O2 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
> -D_FILE_OFFSET_BITS=64   -Os  -fPIC -DPIC -D_REENTRANT
> -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DNDEBUG=1
> -D_LARGEFILE_SOURCE -D
> /work/br-master-glibc/host/usr/i686-buildroot-linux-gnu/sysroot/usr/lib/libtag.so:
> undefined reference to `std::__throw_out_of_range_fmt(char const*,
> ...)@GLIBCXX_3.4.20'
> collect2: error: ld returned 1 exit status
> 
> Have anybody seen this before?

It's trying to use the C compiler to link with C++ libraries. Can you
share your Buildroot .config that exhibits the problem ?

Thanks,

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

  reply	other threads:[~2015-03-12 10:25 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-12  1:49 [Buildroot] kodi: build errors Carlos A. M. dos Santos
2015-03-12 10:25 ` Thomas Petazzoni [this message]
2015-03-14 15:14   ` Carlos A. M. dos Santos
2015-03-14 16:04     ` Thomas Petazzoni
2015-03-15  0:30     ` Yann E. MORIN

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150312112559.627104ad@free-electrons.com \
    --to=thomas.petazzoni@free-electrons.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox