This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Building yocto file system does not generate QT 5 libs



This question is a follow up to this question -

I need the QT 5 tools to develop a QT app for Vayu ES 2.0 EVK using PSDKLA 03.00.00.

Version = 20160726105627

I'm building the file system as per the instructions provided at

However, it seems after hours of going through the build process I don't see the QT 5 libs build. Here's what the output folder looks like -

ti-processor-sdk-linux-automotive_dra7xx-evm_03_00_00_03/yocto-layers/build/arago-tmp-external-linaro-toolchain/sysroots/dra7xx-evm/usr/lib$ ls -l libQt*
ls: cannot access 'libQt*': No such file or directory

Inferring from the similar guidelines for Sitara QT wiki, I should see all the QT libs in dra7xx-evm/usr/lib folder, but nothing.

On a side note, however, I do see the QT libs for x86_64_linux under sysroots/x86_64_linux/usr/lib. But I don't think that's what I need for running apps on the Vayu ES 2.0 EVK with PSDKLA.

ti-processor-sdk-linux-automotive_dra7xx-evm_03_00_00_03/yocto-layers/build/arago-tmp-external-linaro-toolchain/sysroots/x86_64-linux/usr/lib$ ls  libQt*
libQt5Bootstrap.a      libQt5Concurrent.so.5.6    libQt5Core.so.5.6    libQt5DBus.so.5.6    libQt5Network.so.5.6    libQt5Sql.so.5.6    libQt5Test.so.5.6    libQt5Xml.so.5.6
libQt5Bootstrap.prl    libQt5Concurrent.so.5.6.1  libQt5Core.so.5.6.1  libQt5DBus.so.5.6.1  libQt5Network.so.5.6.1  libQt5Sql.so.5.6.1  libQt5Test.so.5.6.1  libQt5Xml.so.5.6.1
libQt5Concurrent.prl   libQt5Core.prl             libQt5DBus.prl       libQt5Network.prl    libQt5Sql.prl           libQt5Test.prl      libQt5Xml.prl
libQt5Concurrent.so    libQt5Core.so              libQt5DBus.so        libQt5Network.so     libQt5Sql.so            libQt5Test.so       libQt5Xml.so
libQt5Concurrent.so.5  libQt5Core.so.5            libQt5DBus.so.5      libQt5Network.so.5   libQt5Sql.so.5          libQt5Test.so.5     libQt5Xml.so.5

Can someone please help? Do I need to do anything special to build QT5 module for dra7xx-evm ARM?

Thanks,

Kaushal

  • Hi, Kaushal,

    I notified the expert to answer here.

    Regards,
    Mariya
  • Hi Kaushal,

    I see that the libQt5* libraries are part of our daily SDK builds for upcoming 3.01 release under sysroots.
    tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/dra7xx-evm/usr/lib/

    You are right that x86_64-linux is not the right folder for what you need.

    We need to see if this is an issue in 3.00 release that got fixed in 3.01 interim builds. We will confirm this by 19-Oct. Given the holidays in India, most of the team is off.

    Regards,
    Anand
  • Hi Anand,

    Thanks for looking into it. It would be great if the prebuilt sysroot is provided in the next release. Building Yocto takes too much time away, especially if you are just working on a top level Qt app.

    I guess it's not possible me to get access to your tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/dra7xx-evm/usr/lib/ from 3.0.1 release before Oct 21, correct? I can use whatever libQt* version is available right now, since I too am travelling to India in Oct end and would like to port my Qt project to ARM/PSDKLA before that.

    In search of finding solution for Qt ARMv7l libs, following similar instructions for Raspberry Pi, I did try building Qt 5.7 directly from git source, but encountered some issues. It built but I think I may not have linked correctly and got some errors, so I posted a similar question on StackOverflow
    stackoverflow.com/.../cross-compile-qt-5-helloworld-app-for-armv7l

    Thanks much for your help.
    Kaushal

  • Hi Kaushal,

    Yes, I fully understand on Yocto build time. We had looked at sharing sysroots for the exact same reason.

    Building Qt5 can be quite arduous especially after Qt community split up all the repositories. In addition, cross compilation has always been a bit of problem with Qt5. Yocto is the best option to achieve this.

    The packages go through an internal review mechanism before it can be made public. As such, the packages can be made available only on the public release date.

    Another option - if you could share a simple hello world Qt5 project that you would like us to try with Qt5 creator, we can check and make sure it works on 3.01. This way, you will not have any surprises when the release is out.

    Regards,
    Anand
  • Hi Anand,

    Understood.  I've attached a sample HelloWorld project, it's essentially same as found on Sitara Qt page. When your team tests this, can you please check you can deploy and debug the app on the Target board? The attached project just has a kit for Ubuntu desktop version.

    HelloWorld.zip

    Btw, just our of curiosity, what kind of machines do you use to build the Yocto file system, especially the first time.  I've an i7, 8 core Ubuntu 16.04 machine with 16GB RAM and that doesn't seem to be enough. I think mine took close to 65 hours and still bailed the build process in the end due to some errors.

    Thanks,

    Kaushal

  • Hi Kaushal,

    Thanks for the project.

    Your build looks to be taking an inordinately high amount of time. A fresh build should take < 12 hrs to complete on your machine configuration. Is there anything else running on the system?

    Regards,
    Anand
  • Hi Anand,

    No, there wasn't anything CPU intensive.  I was building Qt ARM libs from Github source, but that had ended and Yocto kept going over the weekend. I think those ~6800 tasks in build just took too long on my machine. That's why I asked you what kind of PC do you use.

    Here's the output when build failed after building the entire past weekend -

    |   CC    hw/virtio/virtio-pci.o
    |   CC    hw/virtio/virtio-bus.o
    |   CC    hw/virtio/virtio-mmio.o
    |   CC    hw/watchdog/watchdog.o
    |   CC    hw/watchdog/wdt_i6300esb.o
    |   CC    hw/watchdog/wdt_ib700.o
    |   CC    migration/migration.o
    |   CC    migration/tcp.o
    |   CC    migration/vmstate.o
    |   CC    migration/qemu-file.o
    |   CC    migration/qemu-file-buf.o
    |   CC    migration/qemu-file-unix.o
    |   CC    migration/qemu-file-stdio.o
    |   CC    migration/xbzrle.o
    |   CC    migration/postcopy-ram.o
    |   CC    migration/exec.o
    |   CC    migration/unix.o
    |   CC    migration/fd.o
    |   CC    migration/block.o
    |   CC    net/net.o
    |   CC    net/queue.o
    |   CC    net/checksum.o
    |   CC    net/util.o
    |   CC    net/hub.o
    |   CC    net/socket.o
    |   CC    net/dump.o
    |   CC    net/eth.o
    |   CC    net/l2tpv3.o
    | In file included from /usr/include/x86_64-linux-gnu/sys/types.h:219:0,
    |                  from /media/win7projects/projects/ti/linux/ti-processor-sdk-linux-automotive_dra7xx-evm_03_00_00_03/yocto-layers/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/qemu-native/2.5.0-r1/qemu-2.5.0/include/qemu/osdep.h:34,
    |                  from /media/win7projects/projects/ti/linux/ti-processor-sdk-linux-automotive_dra7xx-evm_03_00_00_03/yocto-layers/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/qemu-native/2.5.0-r1/qemu-2.5.0/include/qemu-common.h:15,
    |                  from /media/win7projects/projects/ti/linux/ti-processor-sdk-linux-automotive_dra7xx-evm_03_00_00_03/yocto-layers/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/qemu-native/2.5.0-r1/qemu-2.5.0/include/net/net.h:5,
    |                  from /media/win7projects/projects/ti/linux/ti-processor-sdk-linux-automotive_dra7xx-evm_03_00_00_03/yocto-layers/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/qemu-native/2.5.0-r1/qemu-2.5.0/net/socket.c:26:
    | /usr/include/x86_64-linux-gnu/sys/select.h:45:23: fatal error: /media/win7projects/projects/ti/linux/ti-processor-sdk-linux-automotive_dra7xx-evm_03_00_00_03/yocto-layers/build/arago-tmp-external-linaro-toolchain/sysroots/x86_64-linux/usr/include/bits/time.h: Interrupted system call
    | compilation terminated.
    | In file included from /media/win7projects/projects/ti/linux/ti-processor-sdk-linux-automotive_dra7xx-evm_03_00_00_03/yocto-layers/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/qemu-native/2.5.0-r1/qemu-2.5.0/net/util.c:27:0:
    | /usr/include/stdlib.h:492:21: fatal error: /media/win7projects/projects/ti/linux/ti-processor-sdk-linux-automotive_dra7xx-evm_03_00_00_03/yocto-layers/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/qemu-native/2.5.0-r1/qemu-2.5.0/tcg/alloca.h: Interrupted system call
    | compilation terminated.
    | In file included from /media/win7projects/projects/ti/linux/ti-processor-sdk-linux-automotive_dra7xx-evm_03_00_00_03/yocto-layers/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/qemu-native/2.5.0-r1/qemu-2.5.0/include/glib-compat.h:19:0,
    |                  from /media/win7projects/projects/ti/linux/ti-processor-sdk-linux-automotive_dra7xx-evm_03_00_00_03/yocto-layers/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/qemu-native/2.5.0-r1/qemu-2.5.0/include/qemu-common.h:25,
    |                  from /media/win7projects/projects/ti/linux/ti-processor-sdk-linux-automotive_dra7xx-evm_03_00_00_03/yocto-layers/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/qemu-native/2.5.0-r1/qemu-2.5.0/net/checksum.c:18:
    | /media/win7projects/projects/ti/linux/ti-processor-sdk-linux-automotive_dra7xx-evm_03_00_00_03/yocto-layers/build/arago-tmp-external-linaro-toolchain/sysroots/x86_64-linux/usr/include/glib-2.0/glib.h:87:30: fatal error: /media/win7projects/projects/ti/linux/ti-processor-sdk-linux-automotive_dra7xx-evm_03_00_00_03/yocto-layers/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/qemu-native/2.5.0-r1/qemu-2.5.0/tests/glib/gtrashstack.h: Interrupted system call
    | compilation terminated.
    | In file included from /media/win7projects/projects/ti/linux/ti-processor-sdk-linux-automotive_dra7xx-evm_03_00_00_03/yocto-layers/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/qemu-native/2.5.0-r1/qemu-2.5.0/net/net.c:37:0:
    | /media/win7projects/projects/ti/linux/ti-processor-sdk-linux-automotive_dra7xx-evm_03_00_00_03/yocto-layers/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/qemu-native/2.5.0-r1/qemu-2.5.0/include/qemu/sockets.h:20:23: fatal error: /media/win7projects/projects/ti/linux/ti-processor-sdk-linux-automotive_dra7xx-evm_03_00_00_03/yocto-layers/build/arago-tmp-external-linaro-toolchain/sysroots/x86_64-linux/usr/lib/glib-2.0/include/arpa/inet.h: Interrupted system call
    | compilation terminated.
    | /media/win7projects/projects/ti/linux/ti-processor-sdk-linux-automotive_dra7xx-evm_03_00_00_03/yocto-layers/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/qemu-native/2.5.0-r1/qemu-2.5.0/rules.mak:57: recipe for target 'net/util.o' failed
    | make: *** [net/util.o] Error 1
    | make: *** Waiting for unfinished jobs....
    | /media/win7projects/projects/ti/linux/ti-processor-sdk-linux-automotive_dra7xx-evm_03_00_00_03/yocto-layers/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/qemu-native/2.5.0-r1/qemu-2.5.0/rules.mak:57: recipe for target 'net/socket.o' failed
    | make: *** [net/socket.o] Error 1
    | /media/win7projects/projects/ti/linux/ti-processor-sdk-linux-automotive_dra7xx-evm_03_00_00_03/yocto-layers/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/qemu-native/2.5.0-r1/qemu-2.5.0/rules.mak:57: recipe for target 'net/checksum.o' failed
    | make: *** [net/checksum.o] Error 1
    | /media/win7projects/projects/ti/linux/ti-processor-sdk-linux-automotive_dra7xx-evm_03_00_00_03/yocto-layers/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/qemu-native/2.5.0-r1/qemu-2.5.0/rules.mak:57: recipe for target 'net/net.o' failed
    | make: *** [net/net.o] Error 1
    | cc1: error: /media/win7projects/projects/ti/linux/ti-processor-sdk-linux-automotive_dra7xx-evm_03_00_00_03/yocto-layers/build/arago-tmp-external-linaro-toolchain/sysroots/x86_64-linux/usr/include: Interrupted system call
    | gcc: error trying to exec 'as': execvp: Interrupted system call
    | /media/win7projects/projects/ti/linux/ti-processor-sdk-linux-automotive_dra7xx-evm_03_00_00_03/yocto-layers/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/qemu-native/2.5.0-r1/qemu-2.5.0/rules.mak:57: recipe for target 'net/dump.o' failed
    | make: *** [net/dump.o] Error 1
    | ERROR: oe_runmake failed
    | ERROR: Function failed: do_compile (log file is located at /media/win7projects/projects/ti/linux/ti-processor-sdk-linux-automotive_dra7xx-evm_03_00_00_03/yocto-layers/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/qemu-native/2.5.0-r1/temp/log.do_compile.2445)
    ERROR: Task 3719 (virtual:native:/media/win7projects/projects/ti/linux/ti-processor-sdk-linux-automotive_dra7xx-evm_03_00_00_03/yocto-layers/sources/oe-core/meta/recipes-devtools/qemu/qemu_2.5.0.bb, do_compile) failed with exit code '1'
    NOTE: Tasks Summary: Attempted 964 tasks of which 0 didn't need to be rerun and 1 failed.
    NOTE: Writing buildhistory
    Waiting for 0 running tasks to finish:
    
    Summary: 1 task failed:
      virtual:native:/media/win7projects/projects/ti/linux/ti-processor-sdk-linux-automotive_dra7xx-evm_03_00_00_03/yocto-layers/sources/oe-core/meta/recipes-devtools/qemu/qemu_2.5.0.bb, do_compile
    Summary: There was 1 WARNING message shown.
    Summary: There were 123 ERROR messages shown, returning a non-zero exit code.
    [PSDKLA]>
    [PSDKLA]> Completed Yocto build at Mon Oct 10 09:45:36 EDT 2016
    [PSDKLA]>

     

  • Hi Anand,

    Can you confirm that the libQt5* will be part of the 3.01 release? Also, when will 3.01 be released?


    Thanks,

    Kaushal

  • Hi Anand,

    I downloaded the PSDKLA 3.01 file system and I was hoping it will have the Qt libs (tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/dra7xx-evm/usr/lib/) as per our discussion but I don't see the sysroots in the release.

    Can you please check? This is extremely important that I have access to the Qt libs.

    Thanks,

    Kaushal

     

  • Hi Kaushal,

    The sysroots has been missed out in the installer. Please download again tomorrow and try the installer. It should have the sysroots under linux-devkit.

    Regards,
    Anand
  • Thanks Anand, I believe the updated installer is already there. I downloaded it and I do see the Qt libs under sysroots. However, something seems to be wrong with qmake. I've posted it here -