Search code examples
qtpackaging

Packaging a qt application compiled with shared libraries


I downloaded the qt embedded demo source code recently on my linux machine. Following are the outcomes during running of the program

  1. I compiled it statically on my x86 machine and run the application on x86 machine it runs fine. But when i took the statically compiled binary file to other machine with Atom platform It run with some missing widgets. I found that the plugins cant be ported with static compilation. Can anybody tell me is it true? If no can anybody tell me the steps for it?
  2. I compiled it dynamically with shared libraries. Then got an executalbe on linux. I did "ldd MyAppName". It show me the shared library files it is using. But I dont know how to package these. Can anybody tell me the steps to package it?

I checked in the article on deploying qt applications on X11-linux platforms. But its not complete. Can anybody give me the detailed steps?

Any help will be appreciated......


Solution

  • I just dynamically compiled my application and ported to atom platform. I found the dependencies and ported them also and set the environment variable LD_LIBRARY_PATH on target machine to my ported shared libraries and It worked. Thanks everybody for your suggestions