Packaging a qt application compiled with shared libraries

I recently downloaded the qt built-in demo code on my Linux machine. Below are the results while the program is running.

  • I compiled it statically on my x86 machine and ran the application on the x86 machine where it works fine. But when I took the statically compiled binary to another computer with an Atom platform, it starts with some missing widgets. I found that plugins cannot be ported with static compilation. Can someone tell me this is true? If no one tells me how to do this?
  • I compiled it dynamically with shared libraries. Then I got the linux executable. I made "ldd MyAppName". He shows me the shared library files that he uses. But I do not know how to pack them. Can someone tell me the steps for packing it?

I checked in an article on deploying qt applications on X11-linux platforms. But it’s not really. Can someone give me detailed steps?

Any help would be appreciated ......

+3
source share
3 answers

Atom. LD_LIBRARY_PATH , .

+1

, , . - - - ( qt)

+2

, , ( ) x86, Atom. , (?), x86 Atom, x86- Atom. (? ?)

, Atom, , Atom. , . , ( ) Atom, .

Re # 2: . x86, ( "" ), , , . x86, .

I'm not sure if this helps a lot - if you get binary Qt plugins as static or dynamic libraries without a source, you're out of luck. Submit a bug report. If you have the source code, you can do much more.

+1
source

Source: https://habr.com/ru/post/1736054/


All Articles