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

Paul Menzel paulepanter at users.sourceforge.net
Fri Jun 10 09:04:34 UTC 2011


Am Donnerstag, den 09.06.2011, 12:41 +0200 schrieb Matteo Facchinetti:
> 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.

Ok, I do not have it installed.

> 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`.

Thank you for the explanation. I think it is generally discourage to
have arbitrary build behavior in OE recipes.

Do you need to use SDL? Is it generally needed when using wxbase? If yes
the dependency to sdl should be added and `--with-sdl` passed to
configure.


Thanks,

Paul
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.openembedded.org/pipermail/openembedded-devel/attachments/20110610/58076b7c/attachment-0002.sig>


More information about the Openembedded-devel mailing list