My Application doesnt run another pc
-
I have ubuntu 18.04 and i created an executable file of my application. I want to run it as standalone on another pc. This pc has the same operating system. But it doesnt work. Can anybody help me?
Here is my executable . Im just copy this executable file and try to run. Is there any other thing that should be done?
-
You need to deploy the application. At the very least, it needs Qt libraries to be present in the system.
So you need a .deb package, or .AppImage, or install Qt manually on target system.
More info: https://doc.qt.io/qt-5/linux-deployment.html
-
@suslucoder said in My Application doesnt run another pc:
But it doesnt work.
What does this mean?
This pc has the same operating system.
Does it even have the same architecture? Does it have the same libraries in the same places? And so on....
EDIT But perhaps most likely as @sierdzio has said. What have you done about deployment, installing Qt libraries on the other machine, etc.?
-
Hi
Well it needs its Qt SO files also.if you run ldd on your "exe" you can see what its missing
It also needs a subfolder called platforms
maybe something like https://flatpak.org/
will be more easy.or maybe
https://github.com/QuasarApp/CQtDeployer
(i never tried it)or this one that might just work
https://github.com/probonopd/linuxdeployqtOr did as I did
Use the tool on windows
https://doc.qt.io/qt-5/windows-deployment.htmlas then it creates teh folder structure i need and i can see the names of the SO files
but you still need to manually copy them on linux.
In any case. Yes there is more to do unless Qt is install on "the other system"
update: eheh im waay to slow :)
-
@suslucoder
And just to verify, did theldd
output have any "not found"s written against any of them?Nonetheless you need to follow the instructions others are pointing you to.
-
@JonB said in My Application doesnt run another pc:
And just to verify, did the ldd output have any "not found"s written against any of them?
Nonetheless you need to follow the instructions others are pointing you to.No there isnt "not found"
-
@suslucoder said in My Application doesnt run another pc:
@JonB said in My Application doesnt run another pc:
And just to verify, did the ldd output have any "not found"s written against any of them?
Nonetheless you need to follow the instructions others are pointing you to.No there isnt "not found"
You need to run it on target PC, not on yours.