Qt 5.3.0 release on i.MX6 using fsl-community-bsp and meta-qt5

cancel
Showing results for 
Search instead for 
Did you mean: 

Qt 5.3.0 release on i.MX6 using fsl-community-bsp and meta-qt5

No ratings

Qt 5.3.0 release on i.MX6 using fsl-community-bsp and meta-qt5

These are my notes for compiling Qt 5.3.0 release using the fsl-community-bsp and the meta-qt5 layer graciously provided by the much lauded Otavio and Martin Jansa.  My test board is the wandboard solo.  My original procedure was based on this document: Compiling Qt5.3.0-beta1 on Yocto which was in turn based on this tutorial: Building Qt5 using yocto on Wandboard - Wandboard Wiki

Steps to build:

repo init -u https://github.com/Freescale/fsl-community-bsp-platform -b daisy; repo sync

cd sources; git clone https://github.com/cetola/meta-qt5.git

**as of this commit:

https://github.com/meta-qt5/meta-qt5/commit/e9ad98bbed6065989ef4648e724f27275b35b838

the meta-qt5 official repo is now using qt 5.3.  I won't be updating my layer, and I suggesting using theirs.

add to bblayers.conf:

  ${BSPDIR}/sources/meta-openembedded/meta-ruby \

  ${BSPDIR}/sources/meta-qt5 \

add to local.conf:

DISTRO_FEATURES_remove = "x11 wayland"

PACKAGECONFIG_append_pn-qtmultimedia = " gstreamer010 "

bitbake wandboard-image-qt5

I will do my best to keep this working with the latest in daisy. Current functionality includes playing hardware accellerated video in QML.  However, examples such as multimediawidgets/player,  multimediawidgets/videowidget do not play video. Also qtwebkit/browser, qtwebkit/youtubeview qtwebkit/fanicybrowser do not support HTML5 video.

Comments welcome.

Cheers,

Stephano

Comments

Thanks for sharing this!

I'm in the process of switching back to Yocto after a brief stint working with LTIB..... I'll let you know how this works on my system.

add to local.conf:

DISTRO_FEATURES_remove = "x11 wayland"

PACKAGECONFIG_append_pn-qtmultimedia = " gstreamer010 "


core-image-minimal builds fine for me..

But without adding qtmodules in local.conf, am wondering whether if it would appear in image.

I have updated meta-qt5 today.

You must delete this file from meta-fsl-arm:

meta-fsl-arm/qt5-layer/recipes-qt/qt5/qtmultimedia_%.bbappend

Freescale is backporting features from qt 5.3.0 that already exist if using this layer.


Let me know if you see any more issues.

I need qtconnectivity,qtlocation and qtquickcontrols apart from qtmultimedia.

If I add below to local.conf, whether the qtmodules including above be part of final image using bitbake core-image-minimal?

DISTRO_FEATURES_remove = "x11 wayland"

PACKAGECONFIG_append_pn-qtmultimedia = " gstreamer010 "

am getting below error. Please let me know how to resolve this.

ERROR: qtconnectivity: md5 data is not matching for file://LICENSE.LGPL;md5=2abca611d56c23eb99943bde21c80a0d

ERROR: qtconnectivity: The new md5 checksum is 4193e7f1d47a858f6b7c0f1ee66161de

ERROR: qtconnectivity: Check if the license information has changed in /home/ramakanth/fsl-community-bsp/build/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/qtconnectivity/5.3.0-r0/git/LICENSE.LGPL to verify that the LICENSE value "GFDL-1.3 & LGPL-2.1 | GPL-3.0" remains valid

ERROR: Licensing Error: LIC_FILES_CHKSUM does not match, please fix

ERROR: Function failed: do_qa_configure

ERROR: Logfile of failure stored in: /home/ramakanth/fsl-community-bsp/build/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/qtconnectivity/5.3.0-r0/temp/log.do_configure.21742

ERROR: Task 582 (/home/ramakanth/fsl-community-bsp/sources/meta-qt5/recipes-qt/qt5/qtconnectivity_5.3.0.bb, do_configure) failed with exit code '1'

I've updated the license hash in my qt5.3 repo. Do a 'git pull' inside meta-qt5 and you should be fine now.

ERROR: qtbase-native: md5 data is not matching for file://LICENSE.LGPL;md5=4193e7f1d47a858f6b7c0f1ee66161de

ERROR: qtbase-native: The new md5 checksum is 2abca611d56c23eb99943bde21c80a0d

am getting this error after git pull in meta-qt5 and bitbake core-image-minimal.

ERROR: qtbase-native: Check if the license information has changed in /home/ramakanth/fsl-community-bsp/build/tmp/work/i686-linux/qtbase-native/5.3.0-r0/git/LICENSE.LGPL to verify that the LICENSE value "GFDL-1.3 & LGPL-2.1 | GPL-3.0" remains valid

ERROR: Licensing Error: LIC_FILES_CHKSUM does not match, please fix

ERROR: Function failed: do_qa_configure

ERROR: Logfile of failure stored in: /home/ramakanth/fsl-community-bsp/build/tmp/work/i686-linux/qtbase-native/5.3.0-r0/temp/log.do_configure.22997

ERROR: Task 1651 (/home/ramakanth/fsl-community-bsp/sources/meta-qt5/recipes-qt/qt5/qtbase-native_5.3.0.bb, do_configure) failed with exit code '1'

Seems like the license CHKSUM values are different for qtbase and qtconnectivity. I have rolled back the change I made. You may have to add a CHKSUM value explicitly for qtconnectivity.

ok thanks..

am using below local.conf.Does it creates any issues?

BB_NUMBER_THREADS ?= "${@oe.utils.cpu_count()}"

PARALLEL_MAKE ?= "-j ${@oe.utils.cpu_count()}"

MACHINE ??= 'imx6qsabreauto'

DISTRO ?= 'poky'

PACKAGE_CLASSES ?= "package_rpm"

EXTRA_IMAGE_FEATURES = "debug-tweaks"

USER_CLASSES ?= "buildstats image-mklibs image-prelink"

PATCHRESOLVE = "noop"

BB_DISKMON_DIRS = "\

    STOPTASKS,${TMPDIR},1G,100K \

    STOPTASKS,${DL_DIR},1G,100K \

    STOPTASKS,${SSTATE_DIR},1G,100K \

    ABORT,${TMPDIR},100M,1K \

    ABORT,${DL_DIR},100M,1K \

    ABORT,${SSTATE_DIR},100M,1K"

PACKAGECONFIG_pn-qemu-native = "sdl"

ASSUME_PROVIDED += "libsdl-native"

CONF_VERSION = "1"

BB_NUMBER_THREADS = '2'

PARALLEL_MAKE = '-j 2'

DL_DIR ?= "${BSPDIR}/downloads/"

ACCEPT_FSL_EULA = ""

DISTRO_FEATURES_remove = "x11 wayland"

EXTRA_IMAGE_FEATURES = "debug-tweaks ssh-server-openssh tools-profile dbg-pkgs tools-debug"

IMAGE_INSTALL_append = " \

    firmware-imx-vpu-imx6q \

    firmware-imx-vpu-imx6d \

"

IMAGE_INSTALL_append = " \

    cpufrequtils \

    binutils \

    nano \

    gdb \

    openssh-sftp-server \

    packagegroup-fsl-gstreamer \

    packagegroup-fsl-tools-testapps \

    packagegroup-fsl-tools-benchmark \

    gstreamer \

    gst-plugins-base-app \

    gst-plugins-base \

    gst-plugins-good \

    gst-plugins-good-rtsp \

    gst-plugins-good-udp \

    gst-plugins-good-rtpmanager \

    gst-plugins-good-rtp \

    gst-plugins-good-video4linux2 \

    qtbase-fonts \

    qtbase-plugins \

    qtbase-tools \

    qtbase-examples \

    qtdeclarative \

    qtdeclarative-plugins \

    qtdeclarative-tools \

    qtdeclarative-examples \

    qtdeclarative-qmlplugins \

    qtmultimedia \

    qtmultimedia-plugins \

    qtmultimedia-examples \

    qtmultimedia-qmlplugins \

    qtlocation \

    qtlocation-plugins \

    qtlocation-qmlplugins \

    qtlocation-examples \

    qtsvg \

    qtsvg-plugins \

    qtsensors \

    qtsensors-plugins \

    qtsensors-qmlplugins \

    qtimageformats-plugins \

    qtsystems \

    qtsystems-tools \

    qtsystems-examples \

    qtsystems-qmlplugins \

    qtscript \

    qtquick1 \

    qt3d \

    qt3d-examples \

    qt3d-qmlplugins \

    qt3d-tools \

    qtconnectivity \

    qtconnectivity-examples \

    qtconnectivity-qmlplugins \

    qtserialport \

    qtquickcontrols \

    qtquickcontrols-qmlplugins \

    cinematicexperience \

    cairo pango fontconfig freetype pulseaudio dbus taglib zlib \

    alsa-lib alsa-tools alsa-state alsa-utils-alsaconf \

    tslib evtest tslib-conf tslib-tests tslib-calibrate \

    gcc g++ libgcc libgcc-dev libstdc++ libstdc++-dev libstdc++-staticdev \

    "

PACKAGECONFIG_append_pn-qtbase = " accessibility gles2 openssl"

PACKAGECONFIG_append_pn-qtmultimedia = " gstreamer010 "

Could you please check as am getting same error after git pull in meta-qt5 and bitbake core-image-minimal.

ERROR: qtbase-native: md5 data is not matching for file://LICENSE.LGPL;md5=4193e7f1d47a858f6b7c0f1ee66161de

ERROR: qtbase-native: The new md5 checksum is 2abca611d56c23eb99943bde21c80a0d

ERROR: qtbase-native: Check if the license information has changed in /home/ramakanth/fsl-community-bsp/build/tmp/work/i686-linux/qtbase-native/5.3.0-r0/git/LICENSE.LGPL to verify that the LICENSE value "GFDL-1.3 & LGPL-2.1 | GPL-3.0" remains valid

ERROR: Licensing Error: LIC_FILES_CHKSUM does not match, please fix

ERROR: Function failed: do_qa_configure

ERROR: Logfile of failure stored in: /home/ramakanth/fsl-community-bsp/build/tmp/work/i686-linux/qtbase-native/5.3.0-r0/temp/log.do_configure.25371

ERROR: Task 1651 (/home/ramakanth/fsl-community-bsp/sources/meta-qt5/recipes-qt/qt5/qtbase-native_5.3.0.bb, do_configure) failed with exit code '1'

Thanks for your great work!

I have a problem with compiling the sdk from your source. bitbake wandboard-image-qt5 worked as expected, but bitbake meta-toolchain-qt5 errored out:

WARNING: Failed to fetch URL git://qt.gitorious.org/qt/qtbase.git;branch=5.3.0, attempting MIRRORS if available

ERROR: Fetcher failure: Unable to find revision 207598fd8e69be34e8ba2c9db7720cb6003ea114 in branch 5.3.0 even from upstream

ERROR: Function failed: Fetcher failure for URL: 'git://qt.gitorious.org/qt/qtbase.git;branch=5.3.0'. Unable to fetch URL from any source.

ERROR: Logfile of failure stored in: /home/ttodorov/Work/yocto/fsl-community-bsp-image/build/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-qtbase/5.3.0-r1/temp/log.do_fetch.7617

ERROR: Task 1024 (/home/ttodorov/Work/yocto/fsl-community-bsp-image/sources/meta-qt5/recipes-qt/qt5/nativesdk-qtbase_5.3.0.bb, do_fetch) failed with exit code '1'

NOTE: Tasks Summary: Attempted 1473 tasks of which 1350 didn't need to be rerun and 1 failed.

Waiting for 0 running tasks to finish:

Summary: 1 task failed:

  /home/ttodorov/Work/yocto/fsl-community-bsp-image/sources/meta-qt5/recipes-qt/qt5/nativesdk-qtbase_5.3.0.bb, do_fetch

I also have similar problems with qttools:

WARNING: Failed to fetch URL git://qt.gitorious.org/qt/qttools.git;branch=5.3.0, attempting MIRRORS if available

ERROR: Fetcher failure: Unable to find revision e7b791c8bb5e64a4c786bf370b10366815af704f in branch 5.3.0 even from upstream

ERROR: Function failed: Fetcher failure for URL: 'git://qt.gitorious.org/qt/qttools.git;branch=5.3.0'. Unable to fetch URL from any source.

ERROR: Logfile of failure stored in: /home/ttodorov/Work/yocto/fsl-community-bsp-image/build/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-qttools/5.3.0-r0/temp/log.do_fetch.31774

ERROR: Task 1037 (/home/ttodorov/Work/yocto/fsl-community-bsp-image/sources/meta-qt5/recipes-qt/qt5/nativesdk-qttools_5.3.0.bb, do_fetch) failed with exit code '1'

NOTE: Tasks Summary: Attempted 1634 tasks of which 1583 didn't need to be rerun and 1 failed.

Waiting for 0 running tasks to finish:

Summary: 1 task failed:

  /home/ttodorov/Work/yocto/fsl-community-bsp-image/sources/meta-qt5/recipes-qt/qt5/nativesdk-qttools_5.3.0.bb, do_fetch

What I did try, is to clone the 5.3.0 branches of qtbase and qttools in a temp directory and get the hashes of the last commits for the SRCREVs, which produced errors. It did pass the previous errors, but produced quite a few patching and compiling errors. Could you please help resolve that? Or is the standard fsl toolchain enough to compile Qt 5.3.0 apps without the need to build the meta-toolchain-qt5 target?

Thanks in advance for everyone's help and input!

Regards,

Todor

I've been able to get Yocto to build with Qt5.3 following your instructions but 'bitbake meta-toolchain-qt5' is giving me a small mountain of errors.

I haven't been able to cross-compile any version of Qt5.X using poky 1.6.1 either.

I think I'm going to be stuck with Qt5.2.1 for a while.

I haven't had any luck with the toolchain either, however I'm currently working on other projects.

I'll post when I get back to this, though for now we're using 5.2.1.

Thanks for sharing your work and the reply.

I'll check back some other time to see if you've made any progress.

I am currently working on other projects, so I have not had time to look at the meta-toolchain-qt5.

You will need this Qt toolchain to compile Qt5 apps, as the fsl-toolchain lacks the Qt libraries needed (and qmake).

You could cross compile Qt 5.3.0 outside of Yocto and use those libraries / qmake to compile your app. However, I am not sure which would be easier, fixing meta-toolchain-qt5 or cross compilling Qt 5.3.0 from source.  :smileyhappy:

Bob (and everyone else interested),

I progressed past the errors... Both QT 5.3.0 and the Toolchain SDK were built without problems.

Because Qt 5.3.0 was officially released and merged into the main repo, what I did was to download the fsl-community-bsp using repo, then I got Qt meta sources from the official repository on GitHub, instead of Stephano's: [git|https]://github.com/meta-qt5/meta-qt5.git. I did remove the sources/meta-fsl-arm/qt5-layer/recepies-qt/qt5/qtmultimedia_%.bbappend file, then loosly followed the intstuctions on building Qt5 from the Wandboard.org WIKI (Building Qt5 using yocto on Wandboard - Wandboard Wiki). I added both the ruby and meta-qt5 layers to bblayers.conf; skipped the openssh from the extra image features; added the whole of install_append as suggested; added the remove features line to the local.conf.

Since this was not the repo from Stephano, I did not have his wandboard-image-qt5 recipe, but building the minimal image worked for testing purposes. Maybe one day soon I will clone his repository and/or make my own wandboard image... After the minimal image was built, I had no problem with meta-toolchain-qt5 from the main repository either - it builds everything.

Best regards,

Todor

I also successfully built Qt 5.3.0 from the main repo (github.com/meta-qt5/meta-qt5.git) with yocto 1.6.1 for imx53qsb, but haven't tested it out yet - I am currently at work and my board is at home... Just FYI.

Nicely done!

I just saw the commit on the official repo:

https://github.com/meta-qt5/meta-qt5/commit/e9ad98bbed6065989ef4648e724f27275b35b838

That's awesome. I should look and see how the pros did it :smileywink: .

Thanks, but yours is the more important contribution! ;-)

BTW, while I was trying to fix my build using your meta-qt5 layer repo, I think I figured where the cause of the build failure is. In your sources, for the package that errors our, there are both <folder_basename> and <folder_basename-5.3.0> directories: e.g. sources/meta-qt5/recipes-qt/qt5/qttools and sources/meta-qt5/recipes-qt/qt5/qttools-5.3.0. When I compared the included patches, they are mostly 1-to-1 the same, but the build system seems to prefer the folder with the version over the generic name. Unfortunately these did not fit the source code, so the build failed. My guess is that the folders names with the version string are older and were the only one when you tested out your repository. At a later point the other ones were added to the source tree, when you synced with the master repo... Too bad I am too new and inexperienced with bitbake, so I could not find a fix on my own. Hence my (fortunately successful) try to use the master repository again.

Just a shot note for people, who want to try the master repo. When I cloned it locally, I did not checkout a specific branch as suggested by multiple websites, so no -b 5.3.0 or -b daisy when you are cloning meta-qt5! The other branches will not fit with yocto 1.6.1, I believe.

Thanks Todor. I did that.

I followed the Wandboard Wiki for building Yocto/Qt5.

Instead of checking out the version specified in the wiki, I got the master repo.

I had also added a few more packages than the ones specified in the Wandboard wiki (local.conf).... perhaps that's why I couldn't successfully run 'bitbake meta-toolchain-qt5'.

I've removed a bunch of the things that I've added in my local.conf so that it matches what's specified in the wiki. As soon as the image is built, I'll try to build the toolchain again and post my results.

Yup. Same errors....

"

ERROR: Command Error: exit status: 1  Output:

Applying patch add-imx6-support.patch

patching file src/plugins/plugins.pro

Hunk #1 FAILED at 6.

1 out of 1 hunk FAILED -- rejects in file src/plugins/plugins.pro

The next patch would create the file src/plugins/videonode/imx6/imx6.json,

which already exists!  Applying it anyway.

patching file src/plugins/videonode/imx6/imx6.json

Hunk #1 FAILED at 1.

1 out of 1 hunk FAILED -- rejects in file src/plugins/videonode/imx6/imx6.json

The next patch would create the file src/plugins/videonode/imx6/imx6.pro,

which already exists!  Applying it anyway.

patching file src/plugins/videonode/imx6/imx6.pro

Hunk #1 FAILED at 1.

1 out of 1 hunk FAILED -- rejects in file src/plugins/videonode/imx6/imx6.pro

The next patch would create the file src/plugins/videonode/imx6/qsgvivantevideomaterial.cpp,

which already exists!  Applying it anyway.

patching file src/plugins/videonode/imx6/qsgvivantevideomaterial.cpp

Hunk #1 FAILED at 1.

1 out of 1 hunk FAILED -- rejects in file src/plugins/videonode/imx6/qsgvivantevideomaterial.cpp

The next patch would create the file src/plugins/videonode/imx6/qsgvivantevideomaterial.h,

which already exists!  Applying it anyway.

patching file src/plugins/videonode/imx6/qsgvivantevideomaterial.h

Hunk #1 FAILED at 1.

1 out of 1 hunk FAILED -- rejects in file src/plugins/videonode/imx6/qsgvivantevideomaterial.h

The next patch would create the file src/plugins/videonode/imx6/qsgvivantevideomaterialshader.cpp,

which already exists!  Applying it anyway.

patching file src/plugins/videonode/imx6/qsgvivantevideomaterialshader.cpp

Hunk #1 FAILED at 1.

1 out of 1 hunk FAILED -- rejects in file src/plugins/videonode/imx6/qsgvivantevideomaterialshader.cpp

The next patch would create the file src/plugins/videonode/imx6/qsgvivantevideomaterialshader.h,

which already exists!  Applying it anyway.

patching file src/plugins/videonode/imx6/qsgvivantevideomaterialshader.h

Hunk #1 FAILED at 1.

1 out of 1 hunk FAILED -- rejects in file src/plugins/videonode/imx6/qsgvivantevideomaterialshader.h

The next patch would create the file src/plugins/videonode/imx6/qsgvivantevideonode.cpp,

which already exists!  Applying it anyway.

patching file src/plugins/videonode/imx6/qsgvivantevideonode.cpp

Hunk #1 FAILED at 1.

1 out of 1 hunk FAILED -- rejects in file src/plugins/videonode/imx6/qsgvivantevideonode.cpp

The next patch would create the file src/plugins/videonode/imx6/qsgvivantevideonode.h,

which already exists!  Applying it anyway.

patching file src/plugins/videonode/imx6/qsgvivantevideonode.h

Hunk #1 FAILED at 1.

1 out of 1 hunk FAILED -- rejects in file src/plugins/videonode/imx6/qsgvivantevideonode.h

The next patch would create the file src/plugins/videonode/imx6/qsgvivantevideonodefactory.cpp,

which already exists!  Applying it anyway.

patching file src/plugins/videonode/imx6/qsgvivantevideonodefactory.cpp

Hunk #1 FAILED at 1.

1 out of 1 hunk FAILED -- rejects in file src/plugins/videonode/imx6/qsgvivantevideonodefactory.cpp

The next patch would create the file src/plugins/videonode/imx6/qsgvivantevideonodefactory.h,

which already exists!  Applying it anyway.

patching file src/plugins/videonode/imx6/qsgvivantevideonodefactory.h

Hunk #1 FAILED at 1.

1 out of 1 hunk FAILED -- rejects in file src/plugins/videonode/imx6/qsgvivantevideonodefactory.h

The next patch would create the file src/plugins/videonode/videonode.pro,

which already exists!  Applying it anyway.

patching file src/plugins/videonode/videonode.pro

Hunk #1 FAILED at 1.

1 out of 1 hunk FAILED -- rejects in file src/plugins/videonode/videonode.pro

Patch add-imx6-support.patch does not apply (enforce with -f)

ERROR: Function failed: patch_do_patch

ERROR: Logfile of failure stored in: /home/bob/Projects/M821/Yocto/fsl-community-bsp/build/tmp/work/cortexa9hf-vfp-neon-mx6-poky-linux-gnueabi/qtmultimedia/5.3.0-r0/temp/log.do_patch.6597

ERROR: Task 759 (/home/bob/Projects/M821/Yocto/fsl-community-bsp/sources/meta-qt5/recipes-qt/qt5/qtmultimedia_5.3.0.bb, do_patch) failed with exit code '1'

"

Bob,

I believe you forgot to remove the file sources/meta-fsl-arm/qt5-layer/recipes-qt/qt5/qtmultimedia_%.bbappend prior to bitbaking the image. It tries to apply exactly the patch that is failing your build.

Best regards,

Todor

That's good info! Thanks! I'll remove that and rebuild and see what happens.

Well...it will be a couple of hours before it's done but it's already gotten further than it has before. I'm optimisitc now.

thank you Todor and Stephano!

I've tested this now and, for the most part, I'm pleased to see that it compiled just fine.

One problem I'm having is with Qt Multimedia....

Whenever I run this code

Rectangle {

        width: 1280

        height: 800

        color: "black"

        MediaPlayer {

            id: player

            source: "/home/root/big_buck_bunny_720p_surround.avi"

            autoPlay: true

        }

        VideoOutput {

            id: videoOutput

            source: player

            anchors.fill: parent

        }

}


I get the following error.....

defaultServiceProvider::requestService(): no service found for - "org.qt-project.qt.mediaplayer"


Anybody else encounter this and have a workaround?




I have seen that error before and have resolved it in the past by adding this line to my local.conf:

PACKAGECONFIG_append_pn-qtmultimedia = " gstreamer010 "


Do you already have that line? If not give that a try and let me know if it helps.


p.s. Three cheers for Big Buck Bunny!

Iam still getting the below error in qtbase when I did bitbake core-image-minimal.

ERROR: qtbase-native: md5 data is not matching for file://LICENSE.LGPL;md5=4193e7f1d47a858f6b7c0f1ee66161de

ERROR: qtbase-native: The new md5 checksum is 2abca611d56c23eb99943bde21c80a0d

ERROR: qtbase-native: Check if the license information has changed in /home/ramakanth/fsl-community-bsp/build/tmp/work/i686-linux/qtbase-native/5.3.0-r0/git/LICENSE.LGPL to verify that the LICENSE value "GFDL-1.3 & LGPL-2.1 | GPL-3.0" remains valid

ERROR: Licensing Error: LIC_FILES_CHKSUM does not match, please fix

ERROR: Function failed: do_qa_configure

ERROR: Logfile of failure stored in: /home/ramakanth/fsl-community-bsp/build/tmp/work/i686-linux/qtbase-native/5.3.0-r0/temp/log.do_configure.7527

ERROR: Task 1651 (/home/ramakanth/fsl-community-bsp/sources/meta-qt5/recipes-qt/qt5/qtbase-native_5.3.0.bb, do_configure) failed with exit code '1'

NOTE: Tasks Summary: Attempted 3371 tasks of which 3000 didn't need to be rerun and 1 failed.

I added CHKSUM explicitly and got way with the above error. However, not able to get away with Qtquickcontrols not found in base feeds error. Perhaps, I need to try with master branch as Qt5.3 is officially integrated in main respository.

Probably the below should do the trick instead of cloning to specific branch.

repo init -u https://github.com/Freescale/fsl-community-bsp-platform -b master; repo sync

cd sources; git clone https://github.com/meta-qt5/meta-qt5.git

please change QT_MODULE_BRANCH in file meta-qt5 / recipes-qt / qt5 / qt5-5.3.0.inc from 5.3.0 to 5.3, because it changed in Qt repository.    

Hip, hip hooray! For big buck bunny!

Now I'm battling THIS error....

Error: /fsl-community-bsp/sources/poky/meta/recipes-multimedia/alsa/alsa-utils_1.0.27.2.bb, do_configure) failed with exit code '1'

Am I missing a package? Is this just a bug with the 'master' branch?

I had the same issue. I could not figure out the cause, but I know how to go past it:

The alsa-utils use ncurses for the mixer and some such, and ncurses is built before that, but for some reason the libs are overwritten later with the SDK version from the host (which is Intel and not ARM) so the configure script cannot link against them anymore.

When the bitbake command fails, just do a “bitbake –c build ncurses” again, and when that is done repeat “bitbake <your-target>” or “bitbake –c cleanall alsa-utils && bitbake –c build alsa-utils; bitbake <your-target>” and it will continue from where it stopped before.

Thanks Todor!

What's weird is, I swear, it seems like it builds just fine sometimes and other times it decides to generate this alsa error.

It looks like I'm past this error now.

Thank you very much for the tip.

This combination of bitbake commands  (appears) to have gotten me past this point.

bitbake -c cleanall ncurses

bitbake -c cleanall alsa-utils

bitbake -c build ncurses

bitbake -c build alsa-utils

then

bitbake <your target>



Thanks again sir!

I tried with below but still getting ERROR: qtquickcontrols not found in the base feeds. Is there any solution for the same?

repo init -u https://github.com/Freescale/fsl-community-bsp-platform -b master; repo sync

cd sources; git clone -b master https://github.com/meta-qt5/meta-qt5.git

Added even PACKAGECONFIG_append_pn-qtbase = "accessibility gles2 openssl" but no luck.

Stephano,

Now I'm stuck again.

Been trying to debug qml video and neither of the two videos I have want to play! I decided to just use gstreamer directly to debug this.

Whenever I try to play Big Buck Bunny, I get the following error...

'Missing element: AC-3 (ATSC A/52) decoder'

I launch it with the following command...

gst-launch playbin2 uri=file:///home/root/big_buck_bunny_720p_surround.avi

I can see that the decoder for that is available in the gst-plugins-ugly plugin..... when I try to add gst-plugins-ugly to my local.conf I get an error saying that nothing provides for it....

Any ideas on what I should do next?

Thanks!

-Bob

I've found a disconnect here.....

The problem I've been having with videos is because I didn't have vpu_fw_imx6d.bin in the /lib/firmware/vpu directory...... I didn't even have a /lib/fiirmware/vpu directory in my Yocto system.

I found vpu_fw_imx6d.bin in one of my android build directories that I was able to use and then I was able to play Big Buck Bunny.

Digging into this.....

I've got the vpu_fw_imx6d.bin to build and install into the correct directory!

Just needed to add these lines to my local.conf

IMAGE_INSTALL_append = " \

    firmware-imx-vpu-imx6d \

"

I've been working with core-image-minimal..... I guess that file doesn't get built unless specified.

I'm back to battling QML video...... as far as I can tell, I'll need to write my own C++ wrapper to play video in QML. I keep getting the following error...

GStreamer; Unable to play - ""

Error: "No URI set"

It's like Qt QML doesn't want to pass the filename and path to gstreamer.

Thanks again for the help!

Please let me know if there is a solution for the above QtQuickcontrols error.

I tried with PACKAGECONFIG_append_pn-qtbase = " accessibility" a suggested in other forum but still the problem exists.



Please let me know if we need to build QtQuickcontrols only through source but not through bitbake to resolve the issue

"QtQuickcontrols not found in base feeds"

As i wrote i my config at https://community.freescale.com/docs/DOC-100419 I figured out that one has to add

    qtquickcontrols-qmlplugins \

to local.conf in IMAGE_INSTALL_append

to get the QuickControls added to the image.

Hi,

I tried to switch from 5.3.0 beta to 5.3.0 using master branch. But when I bitbake core-image-minimal, it gives below error in qtmultimedia.

/home/ramakanth/Yocto/build/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/qtmultimedia/5.3.0+gitAUTOINC+b99a4b3025-r0/git/src/gsttools/gstvideoconnector.c:467:32: error: 'GST_PAD_PROBE_DROP' undeclared (first use in this function)

Am I missing anything?

Thanks and Regards,

Ramakanth

Looks like GST_CHECK_VERSION(1,0,0) working wrong.

Adding gstreamer1.0 support break qtmultimedia recipe. If you don't use gstreamer1.0 you must replace your meta-qt5/recipes-qt/qt5/qtmultimedia.inc by this code (and rebuild)

require qt5.inc

DEPENDS += "qtdeclarative alsa-lib"

PACKAGECONFIG ??= ""

PACKAGECONFIG[openal] = ",,openal-soft"

PACKAGECONFIG[gstreamer010] = ",,gstreamer gst-plugins-base"

do_configure_prepend() {    

# disable openal test if it isn't enabled by PACKAGECONFIG    

sed -i 's/^qtCompileTest(openal)/OE_OPENAL_ENABLED:qtCompileTest(openal)/g' ${S}/qtmultimedia.pro    

# disable gstreamer-0.10 test if it isn't enabled by PACKAGECONFIG    

sed -i 's/^\( *\)qtCompileTest(gstreamer) {/\1OE_GSTREAMER010_ENABLED:qtCompileTest(gstreamer) {/g' ${S}/qtmultimedia.pro    

}

EXTRA_QMAKEVARS_PRE += "${@base_contains('PACKAGECONFIG', 'openal', 'CONFIG+=OE_OPENAL_ENABLED', '', d)}"

EXTRA_QMAKEVARS_PRE += "${@base_contains('PACKAGECONFIG', 'gstreamer010', 'CONFIG+=OE_GSTREAMER010_ENABLED', '', d)}"

# older copyright year than what e.g. qtbase is using now

LIC_FILES_CHKSUM = "file://LICENSE.LGPL;md5=4193e7f1d47a858f6b7c0f1ee66161de \

                    file://LICENSE.GPL;md5=d32239bcb673463ab874e80d47fae504 \

                    file://LGPL_EXCEPTION.txt;md5=0145c4d1b6f96a661c2c139dfb268fb6 \

                    file://LICENSE.FDL;md5=6d9f2a9af4c8b8c3c769f6cc1b6aaf7e"

For Qt5.2 and Qt5.3 i have problem when playing video. I use Video, MediaPlayer items in Qml. Video file played without problem. but if i use stop() or seek method everything hangs. Pause() method works fine. did you have problems like that?

Am sorry for the delayed reply.

Iam unable to make my application work due to dependencies on graphicaleffects and qtquickcontrols.

If add entries of qtgraphicaleffects and qtquickcontrols in local.conf, it throws error.

qtgraphicaleffects and qtquickcontrols are not found in base feeds.

Did anyone face these issues? Please let me know how to overcome the same.

I figured out that one has to add

    qtgraphicaleffects-qmlplugins \

to local.conf in IMAGE_INSTALL_append

to get the qtgraphicaleffects added to the image. Thanks Gunnar Roth for the hint.

When I tried to play audio, it throws error "Unable to create connection to pulse audio context". If I use dbus service UDisks, it gives error

response is: QDBusMessage(type=Error, service="", error name="org.freedesktop.DBus.Error.ServiceUnknown", error message="The name org.freedesktop.UDisks was not provided by any .service files", signature="", contents=() )

When I tried to play audio,Please let me know if anyone has experienced these issues with latest Qt5.3.

As I found that udisks service is not available, Please let me know how can I add udisks and their dependent packages in local.conf.

what would be the entry for udisks in local.conf?

No I didnot experience these problems. Play(), Pause() or Seek() works fine but audio is not heard while playing video.

Any reasons for this?

If I use stop() or seek() method, everything hangs though audio is being heard with Play().

Version history
Revision #:
1 of 1
Last update:
‎06-05-2014 08:25 AM
Updated by: