Apalis iMX6 Linux V2.8b1 Qt building error

Hi,

I am using OE core to build Apalis iMX6 images on Linux V2.8b1.
But I cannot build the image if I added qt5 related packages.
The qtbase package failed building.
Here is the error log:

Makefile:1145: recipe for target '.obj/qeglfsvivintegration.o' failed
make[6]: *** [.obj/qeglfsvivintegration.o] Error 1
make[6]: Leaving directory '/home/tch/oe-core_LinuxV2.8/build/tmp-glibc/work/armv7at2hf-neon-mx6qdl-angstrom-linux-gnueabi/qtbase/5.9.2+gitAUTOINC+ec16ba393b-r0/build/src/plugins/platforms/eglfs/deviceintegration/eglfs_viv'
Makefile:46: recipe for target 'sub-eglfs_viv-make_first' failed
make[5]: *** [sub-eglfs_viv-make_first] Error 2
make[5]: *** Waiting for unfinished jobs....
Makefile:1149: recipe for target '.obj/qeglfsvivwlintegration.o' failed
make[6]: *** [.obj/qeglfsvivwlintegration.o] Error 1
make[6]: Leaving directory '/home/tch/oe-core_LinuxV2.8/build/tmp-glibc/work/armv7at2hf-neon-mx6qdl-angstrom-linux-gnueabi/qtbase/5.9.2+gitAUTOINC+ec16ba393b-r0/build/src/plugins/platforms/eglfs/deviceintegration/eglfs_viv_wl'
Makefile:71: recipe for target 'sub-eglfs_viv_wl-make_first' failed
make[5]: *** [sub-eglfs_viv_wl-make_first] Error 2
make[5]: Leaving directory '/home/tch/oe-core_LinuxV2.8/build/tmp-glibc/work/armv7at2hf-neon-mx6qdl-angstrom-linux-gnueabi/qtbase/5.9.2+gitAUTOINC+ec16ba393b-r0/build/src/plugins/platforms/eglfs/deviceintegration'
Makefile:104: recipe for target 'sub-deviceintegration-make_first-ordered' failed
make[4]: *** [sub-deviceintegration-make_first-ordered] Error 2
make[4]: Leaving directory '/home/tch/oe-core_LinuxV2.8/build/tmp-glibc/work/armv7at2hf-neon-mx6qdl-angstrom-linux-gnueabi/qtbase/5.9.2+gitAUTOINC+ec16ba393b-r0/build/src/plugins/platforms/eglfs'
Makefile:98: recipe for target 'sub-eglfs-make_first' failed
make[3]: *** [sub-eglfs-make_first] Error 2
make[3]: Leaving directory '/home/tch/oe-core_LinuxV2.8/build/tmp-glibc/work/armv7at2hf-neon-mx6qdl-angstrom-linux-gnueabi/qtbase/5.9.2+gitAUTOINC+ec16ba393b-r0/build/src/plugins/platforms'
Makefile:101: recipe for target 'sub-platforms-make_first' failed
make[2]: *** [sub-platforms-make_first] Error 2
make[2]: Leaving directory '/home/tch/oe-core_LinuxV2.8/build/tmp-glibc/work/armv7at2hf-neon-mx6qdl-angstrom-linux-gnueabi/qtbase/5.9.2+gitAUTOINC+ec16ba393b-r0/build/src/plugins'
Makefile:720: recipe for target 'sub-plugins-make_first' failed
make[1]: *** [sub-plugins-make_first] Error 2
make[1]: Leaving directory '/home/tch/oe-core_LinuxV2.8/build/tmp-glibc/work/armv7at2hf-neon-mx6qdl-angstrom-linux-gnueabi/qtbase/5.9.2+gitAUTOINC+ec16ba393b-r0/build/src'
Makefile:48: recipe for target 'sub-src-make_first' failed
make: *** [sub-src-make_first] Error 2
ERROR: oe_runmake failed
WARNING: /home/tch/oe-core_LinuxV2.8/build/tmp-glibc/work/armv7at2hf-neon-mx6qdl-angstrom-linux-gnueabi/qtbase/5.9.2+gitAUTOINC+ec16ba393b-r0/temp/run.do_compile.1297:1 exit 1 from 'exit 1'
ERROR: Function failed: do_compile (log file is located at /home/tch/oe-core_LinuxV2.8/build/tmp-glibc/work/armv7at2hf-neon-mx6qdl-angstrom-linux-gnueabi/qtbase/5.9.2+gitAUTOINC+ec16ba393b-r0/temp/log.do_compile.1297)

The following is what I added in conf/local.conf of OE:

ACCEPT_FSL_EULA = "1"

DISTRO_FEATURES_append = " wayland"
 
DISTRO_FEATURES_remove = " x11"
IMAGE_INSTALL_remove = "eglinfo-x11"

IMAGE_INSTALL_append = " qtbase qtbase-plugins qtwayland cinematicexperience liberation-fonts"
PACKAGECONFIG_FONTS_append_pn-qtbase = " fontconfig"

Please help!

By the way, the host environment is Ubuntu 16.04.
I have successful built Linux V2.6.1 image so I don’t think it is related to building host.

hi charlesyc,

we are not supporting wayland for the moment. Could you write
which image exactly are you building? What is the exactly command?

Hi Jaski,

I am building console-tdx-image with the following command:

bitbake console-tdx-image

Although I am requiring wayland in local.conf, it is failing on compiling qtbase package.
I think it will also fail when building Qt EGLFS image with console-tdx-image recipe without wayland.

By the way, I am using wayland because I want to develop a software based on Qt with multi-process architecture and eliminate graphical tearing. As far as I know, Qt + wayland is the only way…

Cheers

Charles

I think you should give boot2qt a try.
The meta-Boot2qt is provided by the Qt company.

I think it will also fail when building Qt EGLFS image with console-tdx-image recipe without wayland.

I doubt about that. At least our regular Qt5 X11 stuff is known to build just fine.

Hi Marcel,
You are correct. I removed wayland related package in local.conf and bitbake console-tdx-image again, it finished without any error.

Thanks for letting us know.

I finally got QtWayland compiled by the following steps.

  1. Upgrade the meta-qt5 recipes to Qt 5.10.0.

    https://github.com/meta-qt5/meta-qt5
  2. Apply the following patches to meta-freescale in openembedded directory.
    https://patchwork.openembedded.org/patch/146430/

    https://patchwork.openembedded.org/patch/146424/

    https://patchwork.openembedded.org/patch/146426/

    https://patchwork.openembedded.org/patch/146425/

I hope the information above may help anyone who is experiencing the same problem.

Charles

Hi
Thanks for the information.