Results 1 to 5 of 5

Thread: How to Runn applications in NON Qt machines

  1. #1
    Join Date
    Nov 2006
    Posts
    8
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Question How to Runn applications in NON Qt machines

    Hello ,
    I guess probably many others too have solved this problem that i'm stuck with even now. I have made an application ints running fine in my machine and the machines already having Qt installed but on the other machines it doesn't even start up and when i try and run it using the console it shows libQtGui_Debug.so not found ... Please Help me with this. I have also tried the Release i.e. trying to make theapplication using release version using option make -release but the problem still persists..

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: How to Runn applications in NON Qt machines

    Start with reading Deploying Qt applications. Make sure you follow the platform specific link at the bottom of the page.
    J-P Nurmi

  3. #3
    Join Date
    Nov 2006
    Posts
    8
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: How to Runn applications in NON Qt machines

    I have ! .... but as it says I'd have to make everything statically linked is that the only way... a word would be a gr8 help ! my cause of concern is the size of the application which would be generated after statically linking... as of now I have tried checking the the shared libraries using ldd -v in the destination machine and it shows libQtGui_debug.so.4 not found and that is the only one so which it requires and is not able to find. what should i do !?..help needed here plzz
    Last edited by sudeepdua; 18th November 2006 at 10:41.

  4. #4
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: How to Runn applications in NON Qt machines

    An application using Qt cannot be run without Qt libraries.

    You have two options:
    1. either redistribute appropriate shared libraries along with the application
    2. or link them statically into the application binary.

    Only the latter method requires building of a static version of Qt. This is all clearly stated in the documentation.
    So, let's say you choose to go with the first approach (shared libs). On *nix there are a few ways to do this. As the docs say:
    • You can install the Qt libraries in one of the system library paths (e.g. /usr/lib on most systems).
    • You can pass a predetermined path to the -rpath command-line option when linking the application. This will tell the dynamic linker to look in this directory when starting your application.
    • You can write a startup script for your application, where you modify the dynamic linker configuration (e.g. adding your application's directory to the LD_LIBRARY_PATH environment variable).
    Deploying an application on Qt/X11 - Shared libraries - Creating the application package.
    J-P Nurmi

  5. #5
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: How to Runn applications in NON Qt machines

    It'd also compile against a release version of Qt. It is much smaller than debug.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.