Qt Linux deployment
-
wrote on 5 Mar 2019, 10:48 last edited by
Hi every one,
This is my first time using Linux so I'm having a lot of problems. I have written a qml program and wanted to compile it for linux as some one requested it from me. So as I read in the forum, the best way is to compile in a linux environment, so I installed Qt on an Ubuntu OS and compile my project there, it ran without any problem, I even ran the binary from terminal and it ran perfect, So i tried to move it to another PC to test it, it complained about missing some libraries, I tried to copy the
libraries to /usr/lib, but again it gave an error:could not find the Qt platform plugin "xcb in "".
So what should I do now, is there better way for deploying qt apps for linux, I read about linuxdeployqt and tried it, it gave me the error:
ERROR: The host system is too new.
Can anyone guide me through this?
-
Hi,
What version of Qt are you using ?
How did you install Qt ?
On what version of Ubuntu ?
How did you install linuxdeployqt ? -
Hi,
What version of Qt are you using ?
How did you install Qt ?
On what version of Ubuntu ?
How did you install linuxdeployqt ?wrote on 5 Mar 2019, 13:00 last edited by PouryaTorabi 3 May 2019, 13:04@SGaist Qt 5.12.1, Ubuntu 18.04.
I installed the Qt with the installer version for linux and for linuxdeployqt I downloaded the linuxdeployqt-6-x86_64.AppImage and tried to run it from terminal. -
What is your target distribution ?
-
wrote on 7 Mar 2019, 06:37 last edited by
@SGaist I just want to run my app in anohter ubuntu 18.04.
-
Then why not use your distribution provided Qt ?
-
wrote on 9 Mar 2019, 12:20 last edited by
@SGaist In windows I would copy the .exe compiled file from debug or release folder and would also copy the required DLLs to the executable folder, so I could easily copy the file and its DLLS to any windows and it would run, In linux I just want to do the same thing, I want to be able to copy my compiled file and its required libraries to another linux and rub it, Just don't know how to do it.
-
The error message comes with a link to https://github.com/probonopd/linuxdeployqt/issues/340 where you get the full explanation about the message.
It also talks about the
-unsupported-allow-new-glibc
option.
8/8