Answer the question
In order to leave comments, you need to log in
Qt - what libraries/packages are needed to run a program on Linux?
Hello.
I write programs on Qt 5.4, I need to run the program on another computer without installing Creator. Computers on Linux.
The program written does not run on another computer (I wrote on Linux Mint, I run it on lubuntu - it will be important, mb is not the point).
So. What libraries / packages are needed for a computer that has not previously run qt programs? Everything is very clear with Windows, but with Linux?
Answer the question
In order to leave comments, you need to log in
It's even easier with Linux. Especially if the distribution kit has Qt5.4 in the repositories - just put the required package.
And so you need all the same libraries like QtCore.so QtGui.so, etc. plus libstdc++.so and libc.so (the last two are probably already on the system).
If you don't want to bother with installing packages (which is not correct at all, and your program should be made as a package with dependencies on Qt's packages), then you can either put it somewhere next to the program and run it through a script that adds to the variables environment path to the higher libs (this is not correct, but it will work).
In general, the correct solution:
Make .deb and .rpm packages with Qt dependencies.
Make a tar.gz for systems without package managers (in this case, the owners themselves should take care of the availability of libraries, you just tell them what they need)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question