I have a few questions about the Adding the Qt5 Layer section of the following document: How to set up Qt Creator to cross compile for embedded Linux.
The Adding the Qt5 Layer section states the following:
Starting with V2.6 meta-qt5 is part of the layers which get set up and the manual cloning and change to bblayers.conf is not longer needed.
Does this mean that nothing additional must be done to include the meta-qt5 layer into the embedded Linux that we are using which is built by running the following command from that same document?:
bitbake -k angstrom-lxde-image
The following is also from the same document linked above:
For images starting with V2.7 Qt 5.7 qtbase-fonts package is no longer provided. So don’t add qtbase-fonts to IMAGE_INSTALL. If you need fonts make sure fonts are installed and qtbase is compiled with PACKAGECONFIG fontconfig so they get found.
PREFERRED_PROVIDER_psplash-support = “psplash-angstrom”
+
+IMAGE_INSTALL_append = " qtbase qtbase-plugins cinematicexperience liberation-fonts"
+PACKAGECONFIG_FONTS_append_pn-qtbase = " fontconfig"
Is it necessary to include these lines? If they are included in the local.config file do I need to run the command: bitbake -k angstrom-lxde-image again?
I just want to make sure that the meta-qt5 layer is actually being built into our embedded Linux image because whenever I build a Qt Widgets application using Qt Creator, or any type of application, the application builds and deploys to the device successfully, but it will not run. When launching the application on the device using the display nothing happens. There is no ouput to state what is going on, and I see no serial output to my PC that might provide any information as to why the application is failing to run.
Also, when I try to run the application from an LXTerminal on the device I see the following output:
/opt/bin/HelloWorld/HelloWorld: cannot execute binary file
I have made sure that the executable permission for the file is set to allow it to run. I have a feeling that the necessary qt5 libraries are not in our embedded Linux image which is why I’m having this issue, but I’m not sure.
Also in the doument I see:
${TOPDIR}/…/stuff/meta-openembedded/meta-systemd
${TOPDIR}/…/stuff/meta-openembedded/meta-networking
${TOPDIR}/…/stuff/meta-openembedded/meta-multimedia \
- ${TOPDIR}/…/stuff/meta-openembedded/meta-ruby
${TOPDIR}/…/stuff/meta-lxde
${TOPDIR}/…/stuff/meta-browser \ - ${TOPDIR}/…/stuff/meta-qt5 \
Everything in my local.conf file is the same as above except the line: *${TOPDIR}/…/stuff/meta-openembedded/meta-ruby * is replaced with: *${TOPDIR}/…/stuff/meta-openembedded/meta-python *
Is Python now used in place of Ruby, or do I need to make the change?
Any information that anyone can provide would be greatly appreciated.
Thank You.