Results 1 to 2 of 2

Thread: Make Qt application portable

  1. #1
    Join Date
    Sep 2015
    Posts
    23
    Thanks
    1

    Default Make Qt application portable

    I have developed a Qt application on Ubuntu. I'd like to test the application on different systems (Linux VMs). Do I have to install Qt on every VM or can I just statically link the qt libraries in Qt creator somehow and create a single package that I can execute on the VM?

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Make Qt application portable

    Do I have to install Qt on every VM
    No.
    can I just statically link the qt libraries in Qt creator
    Yes you can but it requires that you build and uncommon libraries you use, and Qt itself, for static linking and use that to build your application.

    It is much easier to produce a dynamically linked executable and bundle its required Qt/uncommon libs together with a wrapper script into a tar file. That file just needs to be untarred to "install". See http://doc.qt.io/qt-5/linux-deployme...cation-package

Similar Threads

  1. portable application in win
    By nima in forum Qt Programming
    Replies: 7
    Last Post: 24th February 2013, 18:10
  2. Mac OS X - portable Qt application
    By Frostorator in forum Installation and Deployment
    Replies: 1
    Last Post: 5th September 2011, 22:08
  3. Portable way to use PDF files for help?
    By frank100 in forum Qt Programming
    Replies: 1
    Last Post: 27th February 2011, 09:08
  4. portable qt application on windows
    By eleanor in forum Installation and Deployment
    Replies: 2
    Last Post: 11th November 2007, 17:57
  5. qt portable?
    By vermarajeev in forum General Discussion
    Replies: 1
    Last Post: 20th September 2007, 12:14

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.