From patchwork Sat May 17 15:57:56 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bernd Kuhls X-Patchwork-Id: 349941 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ozlabs.org (Postfix) with ESMTP id 8546D140281 for ; Sun, 18 May 2014 02:01:36 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id C6B688C90F; Sat, 17 May 2014 16:01:35 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rXJB6rnaHvFX; Sat, 17 May 2014 16:01:30 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 873578C4EF; Sat, 17 May 2014 15:59:26 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 213181BFA57 for ; Sat, 17 May 2014 15:59:25 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 1CDDF8C212 for ; Sat, 17 May 2014 15:59:25 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id QXK7sCs09NEh for ; Sat, 17 May 2014 15:59:20 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mailout06.t-online.de (mailout06.t-online.de [194.25.134.19]) by whitealder.osuosl.org (Postfix) with ESMTPS id E774885634 for ; Sat, 17 May 2014 15:58:40 +0000 (UTC) Received: from fwd07.aul.t-online.de (fwd07.aul.t-online.de [172.20.27.150]) by mailout06.t-online.de (Postfix) with SMTP id EC5541F6868 for ; Sat, 17 May 2014 17:57:19 +0200 (CEST) Received: from fli4l.lan.fli4l (Gh7MOwZV8hkFfqjBzcCTDGkcPglbf935GltAt+1ZlTRaFGJd2+oN7--yZ9Lw1tUwmG@[87.146.210.206]) by fwd07.t-online.de with esmtp id 1Wlh0N-3QlSBU0; Sat, 17 May 2014 17:58:35 +0200 Received: from fli4lbuild64.lan.fli4l ([192.168.1.51]:53189) by fli4l.lan.fli4l with esmtpsa (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.80.1) (envelope-from ) id 1Wlh05-0000kD-Bn; Sat, 17 May 2014 17:58:17 +0200 From: Bernd Kuhls To: buildroot@buildroot.org Date: Sat, 17 May 2014 17:57:56 +0200 Message-Id: <1400342276-10303-29-git-send-email-bernd.kuhls@t-online.de> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1400342276-10303-1-git-send-email-bernd.kuhls@t-online.de> References: <1400342276-10303-1-git-send-email-bernd.kuhls@t-online.de> X-ID: Gh7MOwZV8hkFfqjBzcCTDGkcPglbf935GltAt+1ZlTRaFGJd2+oN7--yZ9Lw1tUwmG X-TOI-MSGID: 60e6d77c-8a57-4917-b041-84616a16bd3f Cc: Bernd Kuhls Subject: [Buildroot] [PATCH v8 28/28] xbmc: Fix TexturePacker compile X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net Patch description: use_texturepacker_native=yes is needed because we obviously need a native-compiled binary, but the xbmc build system does enable this variable only for darwin, android and raspberry-pi targets. USE_TEXTUREPACKER_NATIVE_ROOT="$(HOST_DIR)/usr" is also needed because USE_TEXTUREPACKER_NATIVE_ROOT="$TEXTUREPACKER_NATIVE_ROOT" is only executed for raspberry-pi by xbmc/configure and only USE_TEXTUREPACKER_NATIVE_ROOT is used by tools/TexturePacker/Makefile.in. To sum up, building for raspberry-pi and other archs works out-of-the-box, compiling for an Intel target, for example, fails: In file included from SDL_anigif.cpp:23:0: SDL_anigif.h:24:21: fatal error: SDL/SDL.h: No such file or directory compilation terminated. XBMCTex.cpp:34:21: fatal error: SDL/SDL.h: No such file or directory Signed-off-by: Bernd Kuhls --- package/xbmc/xbmc.mk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/package/xbmc/xbmc.mk b/package/xbmc/xbmc.mk index f537e92..8e4979e 100644 --- a/package/xbmc/xbmc.mk +++ b/package/xbmc/xbmc.mk @@ -26,6 +26,8 @@ XBMC_CONF_ENV = \ PYTHON_CPPFLAGS="-I$(STAGING_DIR)/usr/include/python$(PYTHON_VERSION_MAJOR)" \ PYTHON_SITE_PKG="$(STAGING_DIR)/usr/lib/python$(PYTHON_VERSION_MAJOR)/site-packages" \ PYTHON_NOVERSIONCHECK="no-check" \ + use_texturepacker_native=yes \ + USE_TEXTUREPACKER_NATIVE_ROOT="$(HOST_DIR)/usr" \ TEXTUREPACKER_NATIVE_ROOT="$(HOST_DIR)/usr" XBMC_CONF_OPT += \