[Development] qtwayland on i.mx6

Keller Alexander-B42067 B42067 at freescale.com
Tue Jan 8 21:39:00 CET 2013


I have tried your solution and wayland_egl  tested successfully.

However, I still get this error and I do not know what Qt wants me to fix.

Project MESSAGE: /home/alexander/qtbuild/bin/syncqt -module QtCompositor -mkspecsdir /home/alexander/qtbuild/mkspecs -outdir /home/alexander/qtwayland /home/alexander/qtwayland
<srcbase> = /home/alexander/qtwayland
<outbase> = /home/alexander/qtwayland
Qt-Compositor configured with openGL integration: wayland_egl
/home/alexander/qtwayland/src/compositor/compositor_api/compositor_api.pri:15: 'qtHaveModule' is not a recognized test function.
Project ERROR: Package egl not found
make[1]: *** [sub-compositor-install_subtargets] Error 3
make[1]: Leaving directory `/home/alexander/qtwayland/src'
make: *** [sub-src-install_subtargets] Error 2

Thanks for all your help with this issue.

-Alexander Keller
From: Nichols Andy [mailto:Andy.Nichols at digia.com]
Sent: Tuesday, January 08, 2013 9:18 AM
To: Keller Alexander-B42067
Cc: development at qt-project.org
Subject: Re: qtwayland on i.mx6


On Jan 8, 2013, at 3:53 PM, Keller Alexander-B42067 <B42067 at freescale.com<mailto:B42067 at freescale.com>>
 wrote:

I have tried to your solution, but it did not work. I have created a pkgconfig file for wayland-egl. (I attached the pkgconfig file in the email) However, when configured qtwayland it did not look for the pkgconfig. Is qtwayland supposed to automatically search for the pkgconfig or do I export some kind of variable?


You are cross compiling here, and from the looks of your config log, your sysroot is located at: /home/alexander/qtfilesystem

If that's not the case, then you need to be using "-sysroot <path-to-your-ltib-install>/rootfs -no-gcc-sysroot" as described by the iMX6 mkspec

In addition to that, you need to be setting the pkg-config environment variables when cross compiling with pkg-config as well.

export PKG_CONFIG_SYSROOT_DIR=<sysroot dir>
export PKG_CONFIG_PATH=<sysroot dir>/usr/lib/pkgconfig

That way when pkg-config is used, its not using your system configs, and also appending the correct prefixes to use files within your sysroot

With that being said, I'm surprised you were able to compile as much of Qt 5 as you have without having set the above things up, so it's possible that other things either didn't built but could have.

Hope that helps,
--
Andy Nichols
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20130108/638bd8b3/attachment.html>


More information about the Development mailing list