[oe] Cmake + qt4 = linker error

Khem Raj raj.khem at gmail.com
Tue Sep 29 17:05:11 UTC 2015


> On Sep 29, 2015, at 8:09 AM, Radek Dostál <radek.dostal at streamunlimited.com> wrote:
> 
> Hi,
> 
> I have a very simple (hello world style) program which uses cmake for
> compilation and depends on qt4. I am trying to put together bitbake
> recipe for this program. See attached.
> 
> When compiling it fail with following error:
> /tmp/oe-work/sysroots/x86_64-linux/usr/lib/libQtCore.so: file not
> recognized: File format not recognized
> 
> I suspect it is looking for libraries in native sysroot due to following message in log.do_configure: "Found Qt4:
> /tmp/oe-work/sysroots/x86_64-linux/usr/bin/qmake2 (found version "4.8.5")"
> 
> Obviously it can only find qmake2 binary in the native sysroot and not
> in the target sysroot as it does not make any sense to build qmake2 for
> target.
> 
> I checked meta-openembedded and openembedded-core and could not find any  example I could use for inspiration.
> 
> 1) Is there something I am missing?
> 
> 2) Is this a known problem?

may be you should inherit qt4e in your recipe as well

> 
> Thanks,
> Radek
> 
> 
> 
> <nsdktoolbox.bb><CMakeLists.txt>--
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 204 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.openembedded.org/pipermail/openembedded-devel/attachments/20150929/e181e494/attachment-0002.sig>


More information about the Openembedded-devel mailing list