From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 178B0E007B1; Sun, 27 Jul 2014 05:51:04 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/, * medium trust * [147.11.1.11 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mail.windriver.com (mail.windriver.com [147.11.1.11]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id EF441E0079D for ; Sun, 27 Jul 2014 05:51:01 -0700 (PDT) Received: from ALA-HCA.corp.ad.wrs.com (ala-hca.corp.ad.wrs.com [147.11.189.40]) by mail.windriver.com (8.14.5/8.14.5) with ESMTP id s6RCotPI017521 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL); Sun, 27 Jul 2014 05:50:56 -0700 (PDT) Received: from [128.224.162.181] (128.224.162.181) by ALA-HCA.corp.ad.wrs.com (147.11.189.40) with Microsoft SMTP Server id 14.3.174.1; Sun, 27 Jul 2014 05:50:55 -0700 Message-ID: <53D4F5AD.9070105@windriver.com> Date: Sun, 27 Jul 2014 20:50:53 +0800 From: Robert Yang User-Agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: Paul Eggleton References: <20140722104852.GP22875@jama> <53CE4CDC.10308@windriver.com> <3815645.XeEvooY0bI@peggleto-mobl5.ger.corp.intel.com> In-Reply-To: <3815645.XeEvooY0bI@peggleto-mobl5.ger.corp.intel.com> Cc: poky@yoctoproject.org Subject: Re: [PATCH 2/2] local.conf.sample: qemu-native DEPENDS libxext-naive X-BeenThere: poky@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Poky build system developer discussion & patch submission for meta-yocto List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Jul 2014 12:51:04 -0000 Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit On 07/27/2014 06:29 PM, Paul Eggleton wrote: > On Tuesday 22 July 2014 19:37:00 Robert Yang wrote: >> On 07/22/2014 06:48 PM, Martin Jansa wrote: >>> On Tue, Jul 22, 2014 at 03:31:25AM -0700, Robert Yang wrote: >>>> Fixed do_configure error: >>>> >>>> ERROR: User requested feature sdl >>>> >>>> configure was not able to find it. >>>> Install SDL devel >>>> >>>> This is error from log.do_configure, and if we check config.log, the >>>> error is: >>>> >>>> sysroots/x86_64-linux/usr/lib/libXext.so.6: undefined reference to >>>> `_XEatDataWords' >>>> >>>> The _XEatDataWords is provided by libX11.so, the dependencies are: >>>> >>>> qemu-native -> sdl(from the host) -> libXext.so(maybe host or native) -> >>>> libX11.so (maybe host or native) >>>> >>>> We may meet the error if host's libX11.so doesn't provide _XEatDataWords, >>>> and native's libX11.so has been removed (for example, rebuild). >>>> >>>> Another way to fix is: let qemu-native depend on libxext-naive when sdl >>>> is >>>> enabled, for example: >>>> >>>> PACKAGECONFIG[sdl] = "--enable-sdl,--disable-sdl,libsdl libxext-native," >>>> >>>> But this might be incorrect since target sdl or qemu may not require X11, >>>> so set: >>>> >>>> DEPENDS_pn-qemu-native += "libxext-naive" >>>> >>>> in local.conf.sample to fix problem. >>>> >>>> Signed-off-by: Robert Yang >>>> --- >>>> >>>> meta-yocto/conf/local.conf.sample | 1 + >>>> 1 file changed, 1 insertion(+) >>>> >>>> diff --git a/meta-yocto/conf/local.conf.sample >>>> b/meta-yocto/conf/local.conf.sample index bcb0864..742eb1a 100644 >>>> --- a/meta-yocto/conf/local.conf.sample >>>> +++ b/meta-yocto/conf/local.conf.sample >>>> @@ -243,6 +243,7 @@ BB_DISKMON_DIRS = "\ >>>> >>>> # seen. The two lines below enable the SDL backend too. This assumes >>>> there is a # libsdl library available on your build system. >>>> PACKAGECONFIG_pn-qemu-native = "sdl" >>>> >>>> +DEPENDS_pn-qemu-native += "libxext-naive" >>> >>> Doesn't this belong in qemu-native's PACKAGECONFIG definition for sdl? >> >> Yes, but I don't know how to do it, what I know is: >> >> PACKAGECONFIG[sdl] = "--enable-sdl,--disable-sdl,libsdl libxext," >> >> That would affect the target qemu, too, for example, when the user defines: >> >> PACKAGECONFIG = "sdl" for target qemu, then the depends would be: >> >> "libsdl libxext" >> >> But the target sdl or qemu may not require X11. >> >> Do you know how to define it for qemu-native only, please ? > > Surely something like this would work: > > PACKAGECONFIG[sdl] = "--enable-sdl,--disable-sdl,libsdl ${NATIVEDEPS}," > NATIVEDEPS = "" > NATIVEDEPS_class-native = "libxext-native" Cool, thanks, I will fix it. // Robert > > Cheers, > Paul >