Qt Linux deployment
-
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 ? -
What is your target distribution ?
-
Then why not use your distribution provided Qt ?
-
@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.