From: Tom Cooksey <thomas.cooksey@trolltech.com>
To: openembedded-devel@openembedded.org
Subject: Re: Missing includes in STAGING_INCDIR
Date: Tue, 4 Mar 2008 13:56:51 +0100 [thread overview]
Message-ID: <200803041356.51830.thomas.cooksey@trolltech.com> (raw)
In-Reply-To: <200803041325.12624.mickey@vanille-media.de>
> > > > I have had the same problem with gstreamer too. I think something has
> > > > broken recently, as I've tried building the existing qtopia core
> > > > recipies and had the same failures.
> > >
> > > Just rely on pkgconfig and it will do the job. The relevant excerpt for
> > > dbus is:
> >
> > Ah... we disable pkgconfig when cross-compiling. ;-) It usually uses the
> > host's includes and libraries due to most toolchains shipping with broken
> > .pc files. We thought the compiler spitting out "Can't find ..." is better
> > than "... binary is incompatable". It looks like OE runs .pc files through
> > sed, is this to fix the same issue?
>
> Exactly. We think pkgconfig has a lot of value and rather attempted to fix it
> (by sed'ing the .pc files) than to circumvent it. I advise you to do the
> same.
Yup, we like pkgconfig too, saves us a lot of work. :-) Sadly, we have to support
qt being built on 3rd party toolchains we have no access to and therefore no
way to modify. pkg-config caused a headache for support so we've dropped it
by default when cross-compiling. Hopefully we'll re-enable it in the future as
the pkg-config devs seem to be working on the problem, providing an env
variable you can use to set a sysroot prefix (PKG_CONFIG_SYSROOT).
>
> > I'll add ${libdir}/dbus-1.0/include to the configure line. Is libdir or
> > STAGING_LIBDIR the best to use?
>
> This would be ${STAGING_LIBDIR}/dbus-1.0/include.
>
> > Ideally this would go into the mkspec file
> > for the cross-compiler. Otherwise, it will be passed to the host compiler
> > too (Not that the host compiler's used much with qmake & friends built
> > seperatly).
> >
> > I might look into changing the current "patch the mkspecs/common/*" way of
> > doing things to actually installing a proper mkspec for the OE cross
> > compiler. Would you have any objection to this?
>
> Not at all -- if it's done in a sane way that doesn't break our existing
> applications using qmake.
Well, I'll try to bodge it into the configure line for now. If that fails, I'll dig deeper. Do
you have any examples of packages which use qmake I can test with? snes9x seems
to inherit from qmake_base?
>
> > Also, as cross-compiling is supported on Qt/Embedded, I'm doing things "the
> > qt way" rather than using the cross-compile patch the other qt4 packages
> > use. Don't want to patch the source if I don't need to.
>
> Sounds good. We disabled Qt/E thinking it cross-compiles because the configure
> script was doing more harm than good in that case. If you can fix it, we are
> happy.
Will do my best. :-)
Cheers,
Tom
next prev parent reply other threads:[~2008-03-04 12:54 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-04 11:40 Missing includes in STAGING_INCDIR Tom Cooksey
2008-03-04 11:47 ` Michael 'Mickey' Lauer
2008-03-04 12:20 ` Tom Cooksey
2008-03-04 12:25 ` Michael 'Mickey' Lauer
2008-03-04 12:56 ` Tom Cooksey [this message]
2008-03-04 16:05 ` Richard Purdie
2008-03-04 16:29 ` Tom Cooksey
2008-03-04 16:40 ` Richard Purdie
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=200803041356.51830.thomas.cooksey@trolltech.com \
--to=thomas.cooksey@trolltech.com \
--cc=openembedded-devel@lists.openembedded.org \
--cc=openembedded-devel@openembedded.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.