Error in loading shared libraries libQt5Widgets.so.5 after building QT5 image on I.MX7D

I built the QT5 image with the foll steps

  1. Add MACHINE=colibri-imx7 in local.conf file
  2. Add IMAGE_INSTALL_append += " qtbase qtbase-tools qtdeclarative qtserialport qtcharts qtcharts-dev" in local.conf file.
  3. . export
  4. bitbake -k angstrom-lxde-image

Added inherit populate_sdk_qt5 in angstrom-lxde-image.bb file.
Run bitbake angstrom-lxde-image -c populate_sdk

Files local.conf and bblayers.conf are attached.

Build is successful. So I guess Compile is Ok.
During Deploy or Runtime this error comes.
link text
I checked for libqt5*.* files in usr/lib but there are not there.

Pls advise.

What exact software versions of things are you talking about?

Pls also attach full build log files.

Hi
I am builing QT5 Image using the Toradex Link How to set up Qt Creator to cross compile for embedded Linux | Toradex Developer Center on Ubuntu 18.04LTS host.

When I run qtcreator I get a Error during runtime When I run a application on qtcrelink textator I get a error

error while loading shared libraries : libQt5Widgets.so.5: cannot open shared object file. no such file or directory. Application finishes with exit code 127"

Log Files Attached.

I believe I spotted where you went wrong. Please change to the following, rebuild your custom image, flash it again and retry your deployment:

IMAGE_INSTALL_append = " qtbase qtbase-tools qtdeclarative qtserialport qtcharts qtcharts-dev"

Otherwise, if you keep having issues please post the full build log files for us to further analyse.

Hi

You were spot on… thanks a lot.

Regards
Ajit

Perfect that it works. Thanks for the feedback.