Results 1 to 6 of 6

Thread: preparing program for release

  1. #1
    Join Date
    Jan 2006
    Location
    Riverside, Rhode Island, USA
    Posts
    245
    Thanks
    52
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default preparing program for release

    I have a small program that I have compiled in Qt4. I am using "designer" for my layout.

    In windows I used "installSheild" to setup a program for release.
    What and/or where is the procedure for linux. I want to be able to demo the program on Knoppix as well as run in liinux that the Qt4 libraries havd not been loaded.

    will the same procedure work for a windows' version?

    Thanks for any help.

  2. #2
    Join Date
    Mar 2006
    Location
    Mountain View, California
    Posts
    489
    Thanks
    3
    Thanked 74 Times in 54 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: preparing program for release

    There is an InstallShield version for Linux, but it isn't widely used. The Linux (and Unix) installation philosophy is much different. Package managers and building from source are used instead. Unfortunately, every Linux distribution is slightly different from the rest, so a package made for one distribution won't always work on another. Because of this, most developers just release the source code, and let the individual distributions handle the packaging issues. You can still create a Knoppix package yourself, but creating a package for every distribution is far too much work, so don't even bother.

    If the program is simple enough, and can run with everything in one directory, you might want to just create a "tarball". Statically link the program with Qt, put everything in one directory, then compress it into a tar.gz (tarball) file. Then someone can uncompress it to their home directory and and just click the binary to run. You don't want to do this for a package though, but it is suitable for distributing a prebuilt demo.

  3. #3
    Join Date
    Jan 2006
    Location
    Riverside, Rhode Island, USA
    Posts
    245
    Thanks
    52
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: preparing program for release

    Thanks for the reply,
    It seems to me that I read where there is a Line or lines that I can add to the foo.pro file thal qmake will put all the libraries and othe stuff in the "exe" file so the program doesn't need Qt libraries installed to run. I don't know if I want to install it or not at this time

    Thanks

  4. #4
    Join Date
    Jan 2006
    Posts
    109
    Thanks
    2
    Thanked 5 Times in 5 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: preparing program for release

    Then you need to link statically with the Qt libraries. First build Qt 4 as static library (configure -static).

    Also read Deploying Applications on Unix/X11. it was written for Qt 3 but the idea is there.

  5. #5
    Join Date
    Mar 2006
    Location
    Mountain View, California
    Posts
    489
    Thanks
    3
    Thanked 74 Times in 54 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: preparing program for release

    Quote Originally Posted by dimitri
    Also read Deploying Applications on Unix/X11. it was written for Qt 3 but the idea is there.
    That article has been updated and is now part of the Qt 4 documentation:
    http://doc.trolltech.com/4.1/deployment-x11.html

  6. #6
    Join Date
    Jan 2006
    Posts
    368
    Thanks
    14
    Thanked 18 Times in 17 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: preparing program for release

    There is an open source tool called "auto package" which provides something similar to install shield. I have never used it for packaging, but when I used programs packaged this way, I found it very interesting.

    I can also recommend the systems used to distribute Quake4 and Doom3, but I forgot it's name

Similar Threads

  1. QT MySQL
    By sabeeshcs in forum Newbie
    Replies: 6
    Last Post: 12th January 2007, 05:19

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.