Results 1 to 3 of 3

Thread: How you distribute the application? Dynamic or static linking?

  1. #1
    Join Date
    Jul 2007
    Posts
    27
    Thanks
    4
    Thanked 1 Time in 1 Post

    Question How you distribute the application? Dynamic or static linking?

    Hello,

    Interests, how you distribute the application writen in Qt?
    You build them statically?
    Dynamically and in package include necessary libraries?
    Or in an source code also specify demanded version Qt?

    The question under platforms interests: Windows, Linux, Mac OS X.

    Thanks.
    Excuse me for English, I from Russia

  2. #2
    Join Date
    Feb 2007
    Location
    Philadelphia, USA
    Posts
    255
    Thanks
    43
    Thanked 21 Times in 21 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: How you distribute the application? Dynamic or static linking?

    There's an important difference between Windows and Linux: Windows always looks first for dlls in the directory of the executable, whereas Linux does not look at that directory at all (unless specifically commanded). For this reason I believe that there is never an advantage to releasing static builds for Windows (because you may as well just throw all the dlls in the bin directory). Dynamic builds, on the other hand, have several advantages. I release dynamic on Windows.

    I still don't understand how to tell whether my Linux binaries will run on another person's linux box (but I would really like to know if somebody has some info regarding this)... so for now I just release source for Linux.

  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How you distribute the application? Dynamic or static linking?

    Quote Originally Posted by magland View Post
    I still don't understand how to tell whether my Linux binaries will run on another person's linux box
    The LSB standard is supposed to fix that. See: http://labs.trolltech.com/blogs/2006...ions-on-linux/

Similar Threads

  1. static & dynamic linking
    By mickey in forum General Programming
    Replies: 6
    Last Post: 11th June 2010, 09:57
  2. Replies: 16
    Last Post: 23rd May 2008, 11:12
  3. dynamic linking on mac
    By munna in forum General Discussion
    Replies: 4
    Last Post: 1st January 2007, 19:39
  4. Replies: 4
    Last Post: 20th February 2006, 10:11

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.