All of lore.kernel.org
 help / color / mirror / Atom feed
From: Robert Yang <liezhi.yang@windriver.com>
To: Martin Jansa <martin.jansa@gmail.com>
Cc: poky@yoctoproject.org
Subject: Re: [PATCH 2/2] local.conf.sample: qemu-native DEPENDS libxext-naive
Date: Tue, 22 Jul 2014 19:37:00 +0800	[thread overview]
Message-ID: <53CE4CDC.10308@windriver.com> (raw)
In-Reply-To: <20140722104852.GP22875@jama>



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 <liezhi.yang@windriver.com>
>> ---
>>   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 ?

// Robert

>
>>   PACKAGECONFIG_pn-nativesdk-qemu = "sdl"
>>   ASSUME_PROVIDED += "libsdl-native"
>>
>> --
>> 1.7.9.5
>>
>> --
>> _______________________________________________
>> poky mailing list
>> poky@yoctoproject.org
>> https://lists.yoctoproject.org/listinfo/poky
>


  reply	other threads:[~2014-07-22 11:37 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-22 10:31 [PATCH 0/2] two fixes for local.conf.sample and local.conf.sample.extended Robert Yang
2014-07-22 10:31 ` [PATCH 1/2] local.conf.sample.extended: add KERNEL_IMAGE_MAXSIZE and IMAGE_ROOTFS_MAXSIZE Robert Yang
2014-07-22 10:31 ` [PATCH 2/2] local.conf.sample: qemu-native DEPENDS libxext-naive Robert Yang
2014-07-22 10:48   ` Martin Jansa
2014-07-22 11:37     ` Robert Yang [this message]
2014-07-27 10:29       ` Paul Eggleton
2014-07-27 12:50         ` Robert Yang
2014-07-22 13:02   ` Burton, Ross
2014-07-22 13:24     ` Robert Yang
2014-07-22 13:28       ` Burton, Ross
2014-07-22 13:35         ` Robert Yang

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=53CE4CDC.10308@windriver.com \
    --to=liezhi.yang@windriver.com \
    --cc=martin.jansa@gmail.com \
    --cc=poky@yoctoproject.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.