Failed to Build boot2qt open source



  • After reading this post
    https://blog.qt.io/blog/2016/07/01/aligning-with-the-yocto-project/
    I figured would give boot2qt a try to take advantage of Qt 5.7 features on my apalis-imx6 board. The blog post pointed me towards
    another article to to build an image with boot2qt.

    "To get started with meta-boot2qt, clone the repository for meta-boot2qt and follow the instructions of building your own embedded Linux image in the Qt documentation."
    http://doc.qt.io/QtForDeviceCreation/qtee-custom-embedded-linux-image.html
    But when I set it up and attempt to "bitbake b2qt-embedded-qt5-image" I get the following build errors:

    tomsbrook@ubuntu:~/boot2qt_oe-core/build-apalis-imx6$ bitbake b2qt-embedded-qt5-image
    Loading cache: 100% |###########################################| ETA:  00:00:00
    Loaded 2645 entries from dependency cache.
    NOTE: Resolving any missing task queue dependencies
    
    Build Configuration:
    BB_VERSION        = "1.28.0"
    BUILD_SYS         = "x86_64-linux"
    NATIVELSBSTRING   = "Ubuntu-14.04"
    TARGET_SYS        = "arm-poky-linux-gnueabi"
    MACHINE           = "apalis-imx6"
    DISTRO            = "b2qt"
    DISTRO_VERSION    = "2.0.1"
    TUNE_FEATURES     = "arm armv7a vfp thumb neon callconvention-hard cortexa9"
    TARGET_FPU        = "vfp-neon"
    meta              
    meta-yocto        = "HEAD:b1f23d1254682866236bfaeb843c0d8aa332efc2"
    meta-toradex      = "HEAD:485643678b2d39d37b1cc9d1aa2200bb934b08de"
    meta-fsl-arm      = "HEAD:c9e576bdae8c481f5a836531c7865fe8b8a5a36f"
    meta-fsl-arm-extra = "HEAD:dd074c47af53948041f6c5671e519fbf815b0980"
    meta-oe           
    meta-python       
    meta-networking   
    meta-initramfs    
    meta-multimedia   = "HEAD:dc5634968b270dde250690609f0015f881db81f2"
    meta-boot2qt      
    meta-fsl-extras   
    meta-toradex-extras = "jethro:10c9d074e0b3a00ef45d0764c7283fe2cdade101"
    meta-mingw        = "HEAD:bf2d66bbb26afbf4c22744af925daa53f61d98e1"
    meta-qt5          = "HEAD:2746cdba75f411541d80ddfd5cadad2753fe29d3"
    
    NOTE: Preparing RunQueue
    NOTE: Executing SetScene Tasks
    NOTE: Executing RunQueue Tasks
    WARNING: Failed to fetch URL git://codereview.qt-project.org/qt/tqtc-qmlcompiler;nobranch=1;protocol=ssh, attempting MIRRORS if available
    ERROR: Fetcher failure: Fetch command failed with exit code 128, output:
    Cloning into bare repository '/home/tomsbrook/boot2qt_oe-core/build-apalis-imx6/../downloads/git2/codereview.qt-project.org.qt.tqtc-qmlcompiler'...
    ssh: connect to host codereview.qt-project.org port 22: Connection timed out
    fatal: Could not read from remote repository.
    
    Please make sure you have the correct access rights
    and the repository exists.
    
    ERROR: Function failed: Fetcher failure for URL: 'git://codereview.qt-project.org/qt/tqtc-qmlcompiler;nobranch=1;protocol=ssh'. Unable to fetch URL from any source.
    ERROR: Logfile of failure stored in: /home/tomsbrook/boot2qt_oe-core/build-apalis-imx6/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/qtquickcompiler/git-r0/temp/log.do_fetch.2596
    ERROR: Task 3767 (/home/tomsbrook/boot2qt_oe-core/sources/meta-boot2qt/recipes-qt/qt5-addons/qtquickcompiler_git.bb, do_fetch) failed with exit code '1'
    WARNING: Failed to fetch URL git://codereview.qt-project.org/qt/tqtc-qmlcompiler;nobranch=1;protocol=ssh, attempting MIRRORS if available
    ERROR: Fetcher failure: Fetch command failed with exit code 128, output:
    Cloning into bare repository '/home/tomsbrook/boot2qt_oe-core/build-apalis-imx6/../downloads/git2/codereview.qt-project.org.qt.tqtc-qmlcompiler'...
    ssh: connect to host codereview.qt-project.org port 22: Connection timed out
    fatal: Could not read from remote repository.
    
    Please make sure you have the correct access rights
    and the repository exists.
    
    ERROR: Function failed: Fetcher failure for URL: 'git://codereview.qt-project.org/qt/tqtc-qmlcompiler;nobranch=1;protocol=ssh'. Unable to fetch URL from any source.
    ERROR: Logfile of failure stored in: /home/tomsbrook/boot2qt_oe-core/build-apalis-imx6/tmp/work/x86_64-linux/qtquickcompiler-native/git-r0/temp/log.do_fetch.2620
    ERROR: Task 3782 (virtual:native:/home/tomsbrook/boot2qt_oe-core/sources/meta-boot2qt/recipes-qt/qt5-addons/qtquickcompiler_git.bb, do_fetch) failed with exit code '1'
    NOTE: Tasks Summary: Attempted 3161 tasks of which 3156 didn't need to be rerun and 2 failed.
    Waiting for 0 running tasks to finish:
    
    Summary: 2 tasks failed:
      /home/tomsbrook/boot2qt_oe-core/sources/meta-boot2qt/recipes-qt/qt5-addons/qtquickcompiler_git.bb, do_fetch
      virtual:native:/home/tomsbrook/boot2qt_oe-core/sources/meta-boot2qt/recipes-qt/qt5-addons/qtquickcompiler_git.bb, do_fetch
    Summary: There were 2 WARNING messages shown.
    Summary: There were 4 ERROR messages shown, returning a non-zero exit code.
    

    I see that in this post
    http://blog.qt.io/blog/2016/06/16/qt-5-7-released/

    qt quick compiler Is yet to be released as an open source package.

    So, my question is if anyone found a work around for successfully building boot2qt or am I just missing something basic?



  • I ran into this same problem... very frustrating! I think I've managed to work around it by disabling the qtcharts and qtvirtualkeyboard modules. I identified those as the problematic dependencies by running:

    bitbake -g b2qt-embedded-qt5-image && grep -e '-> "qtquickcompiler' package-depends.dot
    

    I deleted the references to those packages in this file. That got my build going again, but it hasn't finished yet so I don't know if I will have any more trouble.



  • HI,
    I have same on fetch:

    WARNING: Failed to fetch URL git://codereview.qt-project.org/qt/tqtc-qmlcompiler;nobranch=1;protocol=ssh, attempting MIRRORS if available

    WARNING: Failed to fetch URL git://codereview.qt-project.org/tqtc-boot2qt/utils;branch=5.7;protocol=ssh;sdk-uri=5.7/Boot2Qt/sources/b2qt-utils, attempting MIRRORS if available

    WARNING: Failed to fetch URL git://codereview.qt-project.org/tqtc-boot2qt/appcontroller;branch=5.7;protocol=ssh;sdk-uri=5.7/Boot2Qt/sources/b2qt-appcontroller/, attempting MIRRORS if available

    tqtc-boot2qt existis? protocol ssh?

    thx?



  • I'm have the same problem with compilation, and much more.
    Any suggestion?



  • @Newsages I also had to remove the dependencies on b2qt-appcontroller/b2qt-utils in order for my build to finish. There's a recent commit to disable the dependency on the inaccessible qtquickcompiler repo but I haven't tested to see if it fixes the problems I had before.



  • Yes i to comment deps.
    But is same to make b2qt-embedded-image whitout -qt5-?

    and for sdk and toolchains?



  • @jhiatt
    In virtualkeyboard charts etc have iner qtquickcompiler.

    I have build nuc , but emulator same isue... emugless etc.



  • @Newsages Sorry, I don't understand your most recent messages. Have you tried using the latest version of the meta-boot2qt repository? I just ran through a build using the 'jethro' branch (commit 2362b64) and the qtquickcompiler issues appear to have been resolved. I still had to remove the b2qt-utils and b2qt-appcontroller deps for the image build, plus b2qt-utils-dev in order to build the toolchain. I have not had a chance to verify that the image + toolchain actually work, only that they built correctly.

    @TomaszK what are the errors that you see?



  • @jhiatt you can build emulator in jetrho branch,? i try in dev is merge of jetrho whit your patch.
    I view the commit and the condicional test of have access to qqcompiler.



  • @Newsages I've been building for Boundary Devices Sabrelite board (MACHINE=nitrogen6x). I have not tried to build for the emulator.



Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.