Installation of libqtGui.so.4
-
use QUdpSocket
-
hi all. i have the same problem.
What exactly is your target ? i wrote a simple Qt program for mini2440 friendly arm. Embedded boar linux gnu.
when i execute my program ( and comment running Qtopia) it show me this error : /armNEW: error while loading shared libraries: libQtGui.so.4: cannot open shared object file: No such file or directory
i search and find this file in /usr/local/trolltech/qtEmbedded/.... so why i have error?
now what can i do now? -
Hi,
/usr/local/trolltech/qtEmbedded/
is a non standard path and probably not the same you have on your computer when cross-compiling your application.You can use LD_LIBRARY_PATH to add that path for the loader to search before starting your application.
-
Hi @SGaist , I am building qt application for an arm embedded target.I have successfully transferred the project files via scp using qt creator. However, the application outputs this error:
error while loading shared libraries: libQtGui.so.4: cannot open shared object file: No such file or directory
How can I ensure I have the said library on my target?Is it something I need to cross-compile?
I have libQtGuiE.so.4 in /usr/lib
Thanks. -
You have a name mismatch. The one you use on your desktop has no E in its name. You should have the same set of libraries on both the desktop and target.
-
Likely, yes. I remember vaguely that you could put a suffix when configuring Qt 4.
-
@SGaist Do you have an idea how I can put that suffix during configuration?
I have confirmed I am using the same qt version qt embedded 4.8.7 in both the host cross compilation pc and target. However I am still getting this error during deployment.What could be the issue?How do I resolve this please? -
I may have been wrong there and maybe mixed it with
-prefix-install
.The most simple is to deploy the libraries you are using for cross-compilation on the device.