Error while loading shared libraries: libQt5Widgets.so.5

I have followed the getting started with Qt on Linux and am targeting the Apalis TK1.
I am trying to remote debug a simple Hello World app, but I get this message
error while loading shared libraries: libQt5Widgets.so.5: cannot open shared object file: No such file or directory

I have rebuilt the SDK to make sure I didn’t miss something, but have not had any luck.
I followed the instructions here http://developer.toradex.com/knowledge-base/how-to-set-up-qt-creator-to-cross-compile-for-embedded-linux

Please help

Our regular Embedded Linux BSP demo images actually come with LXDE based on GTK+ and do not include any Qt functionality. So you would either have to build and install a custom image including Qt as explained in the following article on our developer website or alternatively in the Apalis TK1 case you may install NVIDIA’s L4T as explained here.

I installed NVIDIA’s L4T as you suggested, but I am not sure where to find the compiler, debugger and qmake for these. Is there a good document that you can point me to?

Note that you would have to build an image with Qt libraries installed for application to work on the target. The SDK/toolchain setup only help in cross compilation for the target and developing on host machine.

You can transfer the application binary with scp. Instead of remote debugging can you try by first transferring the application to target and confirm if it runs correctly?

okay. is there any article or steps to build an image with Qt libraries. After bulding an image with Qt libraries should I update it on the uboot of the target device?
Note: I have already installed Qt and not using the version in your article

Assuming you had the appropriate IMAGE_INSTALL_append in local.conf like below

IMAGE_INSTALL_append = " qtbase qtbase-fonts qtbase-plugins cinematicexperience"

building the angstrom-lxde-image will include the Qt libraries specified in the image. Yes you would have to flash this image on the target.