[oe] [PATCH v2] wxbase_2.8.9: fix includepath for SDL dependency

Matteo Facchinetti matteo.facchinetti at sirius-es.it
Thu Jun 9 10:41:07 UTC 2011


On 06/08/2011 06:49 PM, Paul Menzel wrote:
> Am Mittwoch, den 08.06.2011, 15:56 +0200 schrieb Matteo Facchinetti:
>> From: Matteo Facchinetti<engineering at sirius-es.it>
>>
>> Compile task fail with error:
>> | CROSS COMPILE Badness: /usr/include in INCLUDEPATH: /usr/include/SDL
>> | cc1plus: internal compiler error: in add_path, at c-incpath.c:425
>>
>> Fix it forcing right path in configuration.
> It builds fine for me without this patch using `minimal` for `MACHINE =
> "beagleboard"`. How can I reproduce your build error?
>

wx_base configure script checks the presence of sdl-config in your host 
system (and not in your cross-build system) Then use it to know SDL 
include PATH. (sdlconfig --cflags).
this path is wrong for your cross-compiling ( usually -I/usr/include/SDL ).

At first, to reproduce the problem you have to install SDL lib in your 
host system.
I don't know if you could reproduce exactly the same crash.
  (however I'm using a IA64 64bit host system and my target is powerpc 
32 (e300c3 core).)

If you doesn't have SDL lib in your host, problem disappear because 
wx_base configure doesn't use it.

After apply this patch, your cross_compile system start check and use 
the right sdl-config (for me located in 
"$BUILDDIR"/sysroots/x86_64-linux/usr/ppce300c3/bin/sdl-config ).

For compile wx_base with SDL you have to create an image with this 
dependency.
I don't know if the `minimal` one is sufficient. I'm using `console-image` .


>> Signed-off-by: Matteo Facchinetti<engineering at sirius-es.it>
>> ---
>>   recipes/wxwidgets/wxbase_2.8.9.bb |    3 ++-
>>   1 files changed, 2 insertions(+), 1 deletions(-)
>>
>> diff --git a/recipes/wxwidgets/wxbase_2.8.9.bb b/recipes/wxwidgets/wxbase_2.8.9.bb
>> index fb18710..b87da11 100644
>> --- a/recipes/wxwidgets/wxbase_2.8.9.bb
>> +++ b/recipes/wxwidgets/wxbase_2.8.9.bb
>> @@ -9,7 +9,8 @@ SRC_URI += "file://Makefile.in.patch"
>>   EXTRA_OECONF = " --disable-gui \
>>                    --enable-largefile \
>>                    --enable-gpe \
>> -                 --without-subdirs"
>> +                 --without-subdirs \
>> +                 --with-sdl-prefix=${STAGING_BINDIR_CROSS}/.."
> Maybe add `\` to the end and put the `"` to the new line so that future
> patches will be smaller.
ok

> -                 --without-subdirs"
> +                 --without-subdirs \
> +                 --with-sdl-prefix=${STAGING_BINDIR_CROSS}/.. \
> +                 "
>
>>   LEAD_SONAME = "libwx_base-2.8.so"
>
> Thanks,
>
> Paul
>
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel at lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel




More information about the Openembedded-devel mailing list