From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 1F7C2E00282 for ; Tue, 17 Jul 2012 13:15:17 -0700 (PDT) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga101.fm.intel.com with ESMTP; 17 Jul 2012 13:15:16 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.71,315,1320652800"; d="scan'208";a="179018109" Received: from unknown (HELO helios.localnet) ([10.252.121.19]) by fmsmga001.fm.intel.com with ESMTP; 17 Jul 2012 13:15:16 -0700 From: Paul Eggleton To: Jon Szymaniak Date: Tue, 17 Jul 2012 21:15:15 +0100 Message-ID: <8090195.5OazxDCTOl@helios> Organization: Intel Corporation User-Agent: KMail/4.8.4 (Linux/3.2.0-26-generic-pae; KDE/4.8.4; i686; ; ) In-Reply-To: References: MIME-Version: 1.0 Cc: yocto@yoctoproject.org Subject: Re: do_configure() failure with my qt4-embedded_4.8.0.bbappend X-BeenThere: yocto@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Discussion of all things Yocto List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Jul 2012 20:15:17 -0000 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" 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