From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ob0-f176.google.com (mail-ob0-f176.google.com [209.85.214.176]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 07055E00282 for ; Tue, 17 Jul 2012 12:49:36 -0700 (PDT) Received: by obbtb18 with SMTP id tb18so1291313obb.35 for ; Tue, 17 Jul 2012 12:49:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=ewvWdd5VpnuhJP7WS0ytE/4nzA/s9Ptbr7vsVanmnhE=; b=rySwoLfYjw7wBHbJaWWYkOpXET1mZKbQpJctRa3lsOzYkkL6GBr9MQnefjqxeuk4Zv SJ27RIIFFpeysCwVIRV/KpJndej96ttJQyx8Rstyv99oOa11bSVG0lAUKYd/wyVMLS3O xgI+xYtNX3pyl9/K4zMJT7Jl5HKKDJBsXXUxXojSLiRoDctYA/4hp/tQFYX/n4JwEGTH /nml9fAzs6kqUb5Qqbq97ht97JbGJDtLW/EsCbhb/uXr9KKwfqoRNPReJ+N6jv3AeC42 yBo2qMEc923vDdEgbeYhfVUUbj/iVs3NHEK5Dwsd1XgPSOY76SX+0nY1PxHW8UM5V7tC 1nrw== Received: by 10.182.39.39 with SMTP id m7mr5246626obk.20.1342554576475; Tue, 17 Jul 2012 12:49:36 -0700 (PDT) MIME-Version: 1.0 Received: by 10.76.70.233 with HTTP; Tue, 17 Jul 2012 12:49:16 -0700 (PDT) In-Reply-To: References: <1909558.65z9niKLNS@helios> From: Jon Szymaniak Date: Tue, 17 Jul 2012 15:49:16 -0400 Message-ID: To: yocto@yoctoproject.org Cc: Paul Eggleton 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 19:49:37 -0000 Content-Type: text/plain; charset=ISO-8859-1 >>> Since you're providing your own value of QT_CONFIG_FLAGS I think you're >>> missing -embedded $QT_ARCH and possibly -qtlibinfix ${QT_LIBINFIX} (see >>> meta/recipes-qt/qt4/qt4-embedded.inc). >>> >>> Cheers, >>> Paul >>> >>> -- >>> >>> Paul Eggleton >>> Intel Open Source Technology Centre >> >> Whoops! I most certainly did forget to put the -embedded flag back in after >> pruning out that, -platform, -xplatform, -little-endian, etc. from my original >> config script. That certainly explains a lot. >> >> Thank you Paul! >> >> - Jon > > It looks like I celebrated a tad too early. Although Qt built > successfully, I'm finding > that I'm a bit confused with qmake and the qt libinfix situation. > 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? > > 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. > > Any hints? > > Thank you, > Jon Sorry for the monologue folks, twas a small matter of ignorance. ;) 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.