Please note that meta-qt5 master would not in all probability build with our OE V2.6 out of the box. You can use the existing meta-qt5 layer already integrated in our V2.6 or V2.6.1 and then build meta-toolchain-qt5.
To include the Qt libraries in the image for example with angstrom-lxde-image, change the “build/conf/local.conf” file to add the packages:
PREFERRED_PROVIDER_psplash-support = "psplash-angstrom"
+
+IMAGE_INSTALL_append = " qtbase qtbase-plugins cinematicexperience"
Add the Qt packages as applicable for your requirement.
For testing CAN, see here. For development purposes, it is recommended to follow the procedure as per here and use kernel build out of OpenEmbedded. Once your changes I finalised, you may integrate them in OE. See an article on this thematic.
Edit: I tried with yocto/poky and fsl-community-bsp and ran into errors with both. The easiest way turned out to be the following. I assume you use the stock OE V2.6.1 from here on.
In ~oe-core/layers/meta-qt5 run the following commands
git checkout -b 2.6.1
git checkout -b master -t remotes/repo/master
The first command checkouts the default branch with 2.6.1 which will allow us to return to it later if required. Next we checkout the master branch so that Qt 5.7 can be used.
Next download the patch in ~oe-core/layers/openembedded-core and apply it with
git am < 1-5-remove-libtool-add-new-class.patch
Make sure this patch is applied correctly by checking with git log and that no errors get reported while applying the patch.
Next follow the build procedure as usual and stated by our article. Below is the log from the build of qtserialbus on our build server here.
[mas@linuxdev build]$ MACHINE=colibri-imx6 bitbake qtserialbus
Loading cache: 100% |######################################################################################| ETA: 00:00:00
Loaded 125 entries from dependency cache.
Parsing recipes: 100% |####################################################################################| Time: 00:00:27
Parsing of 2482 .bb files complete (98 cached, 2384 parsed). 3081 targets, 173 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
Build Configuration:
BB_VERSION = "1.28.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "Fedora-23"
TARGET_SYS = "arm-angstrom-linux-gnueabi"
MACHINE = "colibri-imx6"
DISTRO = "angstrom"
DISTRO_VERSION = "v2015.12"
TUNE_FEATURES = "arm armv7a vfp thumb neon callconvention-hard"
TARGET_FPU = "vfp-neon"
meta-angstrom = "HEAD:7f2eec75fd20b672221ff071d121fa9ea2e1e6ea"
meta-toradex-nxp = "HEAD:b7fa1ed761c53c2737d8722efca6421607ecfa89"
meta-fsl-arm = "HEAD:417f669e4dede244a81e11aa6d8b60c4e333e589"
meta-fsl-arm-extra = "HEAD:dd074c47af53948041f6c5671e519fbf815b0980"
meta-toradex-tegra = "HEAD:8a8ea0510f3aba5f9a0949c986eb8639ff41917f"
meta-jetson-tk1 = "HEAD:0569d7a930506c185734097a58e1de219dc66c80"
meta-toradex-bsp-common = "HEAD:77b0c48863b6194628f2ff4c633469bb84f549c3"
meta-linaro-toolchain = "HEAD:9b1fd178309544dff1f7453e796a9437125bc0d9"
meta-oe
meta-efl
meta-gpe
meta-gnome
meta-xfce
meta-initramfs
meta-systemd
meta-networking
meta-multimedia
meta-python = "HEAD:8ab04afbffb4bc5184cfe0655049de6f44269990"
meta-lxde = "HEAD:d097882e3859220e9ce0c99250e22f5833233c6e"
meta-browser = "HEAD:e114d625d4bd23a52cc1108a45d96ffd8dc0ab7f"
meta-qt5 = "master:9aa870eecf6dc7a87678393bd55b97e21033ab48"
meta-fsl-demos = "HEAD:8bffde8d803dd2362fbded79781ce084d723b048"
meta-toradex-demos = "HEAD:bc692472e86eb646f0f5a78e9dd4fdc70356c50e"
meta = "HEAD:346b6ef31253789d7d6664a19297b6deec9d27a0"
NOTE: Preparing RunQueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
NOTE: Tasks Summary: Attempted 2831 tasks of which 2560 didn't need to be rerun and all succeeded.
NOTE: Writing buildhistory
[mas@linuxdev build]$