All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paul Eggleton <paul.eggleton@linux.intel.com>
To: Jon Szymaniak <jon.szymaniak@gmail.com>
Cc: yocto@yoctoproject.org
Subject: Re: do_configure() failure with my qt4-embedded_4.8.0.bbappend
Date: Tue, 17 Jul 2012 21:15:15 +0100	[thread overview]
Message-ID: <8090195.5OazxDCTOl@helios> (raw)
In-Reply-To: <CANge7vWBY53zv2w3vUcsUzWzc=Lt7LC+BQfGk-_p8yh7gE0fCg@mail.gmail.com>

On Tuesday 17 July 2012 15:49:16 Jon Szymaniak wrote:
> > From what I gather looking
> > at recipes-qt/qt4/* a bit, the point here is to rename libs to
> > differentiate between the libs generated by the embedded and X11-based
> > recipes, right?

That's correct.

> > I ended up including -qtlibinfix ${QT_LIBINFIX} in my config flags, and I
> > do indeed see that my  qt4-embbeded libs are now in the form libQt*E.so.
> > 
> > However, my builds are failing because ld complains about not being able
> > to
> > find QtDeclarative, QtGui, and QtCore.
> > 
> > Looking at the Makefile generated by qmake for one of my little HelloWorld
> > applications, I see that it seems that qmake did not accounted for the
> > 
> > "E" suffix:
> >   LIBS  = $(SUBLIBS)  -L$(OE_QMAKE_LIBDIR_QT) -lQtDeclarative -lQtGui
> > 
> > -lQtCore -lpthread
> > 
> > Just as a little experiment, I modified the generated Makefile to add
> > the "E" suffix,
> > to each lib and reran bitbake. This succeeded and my Qt app was built.
> > 
> > While I'm sure I could hack in a do_compile_prepend() to address this,
> > I'm assuming
> > that it's a configuration mess-up on my end. Given that I only changed
> > the DEPENDS
> > and QT_CONFIG_FLAGS in my .bbappend, I can't think of what I might have
> > neglected here that might be  affecting qmake or the mkspec.
> 
> Just to create a trail of breadcrumbs, the issue was that I was inheriting
> qmake2 in my app's recipe. I should have been inheriting qt4e. I see
> that this sets up QT_LIBINFIX as well as a number of other items.
> 
> See meta/classes/qt4e.bbclass.

Right, that's what I would have asked about - good detective work :)

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre


      reply	other threads:[~2012-07-17 20:15 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-17 14:46 do_configure() failure with my qt4-embedded_4.8.0.bbappend Jon Szymaniak
2012-07-17 15:39 ` Paul Eggleton
2012-07-17 16:12   ` Jon Szymaniak
2012-07-17 19:11     ` Jon Szymaniak
2012-07-17 19:49       ` Jon Szymaniak
2012-07-17 20:15         ` Paul Eggleton [this message]

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=8090195.5OazxDCTOl@helios \
    --to=paul.eggleton@linux.intel.com \
    --cc=jon.szymaniak@gmail.com \
    --cc=yocto@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.