From patchwork Wed May 28 11:08:50 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yann E. MORIN" X-Patchwork-Id: 353362 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (fraxinus.osuosl.org [140.211.166.137]) by ozlabs.org (Postfix) with ESMTP id A593D1400D8 for ; Wed, 28 May 2014 21:10:12 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id E64B98B94A; Wed, 28 May 2014 11:10:06 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id f5JB0VrS1vRr; Wed, 28 May 2014 11:10:05 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id A612E8B9A8; Wed, 28 May 2014 11:10:01 +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 E37531BF857 for ; Wed, 28 May 2014 11:09:36 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id E00BC8BE37 for ; Wed, 28 May 2014 11:09:36 +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 dk6I1TxJqZcR for ; Wed, 28 May 2014 11:09:36 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wg0-f46.google.com (mail-wg0-f46.google.com [74.125.82.46]) by whitealder.osuosl.org (Postfix) with ESMTPS id D19228A53E for ; Wed, 28 May 2014 11:09:35 +0000 (UTC) Received: by mail-wg0-f46.google.com with SMTP id n12so11007199wgh.5 for ; Wed, 28 May 2014 04:09:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=dW/L+yxEjwa02uUz/gMdbp+lW5LqouY7JpBX/f4J4Hk=; b=nJdl/as24nhLKMb2wXbVT7iWjWR4dJUg/aqc44JgDtwkAwP+Y+CZuFAkQEUioBel+m mSOzIkXwRF9HZUDMPSmXY97/X5eiJEKJuAavtBlprY3brXwHbm60AMcUy8VdSBWBSRpz PZLSmXhtKrUhBMFd3GqdRfTD4QzMn3e1vaicsRntM4WZYHKfrAM6E1vxsN6xuliW+e9Q +9fpVsMW0YFQILAFAa57SebwLfCv3xpakFy4JDykydrN6SReSmgeNDUAvUfp2ELJBHtJ sq7HPp1N3dodDmpXitVuiHw0di1wxIPjBm/7DJtUsv1tcT0kAVegMBGTYdSUIiG4Vj0Y IpYg== X-Received: by 10.180.83.131 with SMTP id q3mr47361747wiy.31.1401275373741; Wed, 28 May 2014 04:09:33 -0700 (PDT) Received: from gourin.bzh.lan (ks3095497.kimsufi.com. [94.23.60.27]) by mx.google.com with ESMTPSA id bj2sm16031189wib.3.2014.05.28.04.09.30 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 28 May 2014 04:09:31 -0700 (PDT) From: "Yann E. MORIN" To: buildroot@buildroot.org Date: Wed, 28 May 2014 13:08:50 +0200 Message-Id: <7c737fc6eb77614462bba836f7b49c3f564979de.1401274944.git.yann.morin.1998@free.fr> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: References: Cc: Bernd Kuhls Subject: [Buildroot] [PATCH 27/30] 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 From: Bernd Kuhls 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 9c7735e..8b1b94f 100644 --- a/package/xbmc/xbmc.mk +++ b/package/xbmc/xbmc.mk @@ -34,6 +34,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 += \