Results 1 to 6 of 6

Thread: How to deploy Qt-dlls for windows

  1. #1
    Join Date
    Jan 2006
    Posts
    105
    Thanks
    21
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question How to deploy Qt-dlls for windows

    Hello,

    I'm currently creating an installer using NSIS - so far it was fairly easy.
    But one question: where should i install the Qt-dlls?
    QtCore4.dll, QtGui4.dll etc...
    Installing them in the application folder means every qt application has to install his own version of them (WengoPhone does it like that).

    Wouldn't it make more sense to install them in c:/windows/system32?

    Would it cause troubles when any other installer updates them?

    thanks,
    niko

  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 deploy Qt-dlls for windows

    Quote Originally Posted by niko View Post
    But one question: where should i install the Qt-dlls?
    QtCore4.dll, QtGui4.dll etc...
    Installing them in the application folder means every qt application has to install his own version of them (WengoPhone does it like that).
    Yes, I think that's quite common way do deploy the libs on Windows.

    Wouldn't it make more sense to install them in c:/windows/system32?

    Would it cause troubles when any other installer updates them?
    The problem is that any other installation overwriting them with older versions could even prevent your application from launching. For example, let's say your application depends on new functions introduced in Qt 4.2 and some other installer overwrites the dll's with 4.1 ones.
    J-P Nurmi

  3. The following user says thank you to jpn for this useful post:

    niko (18th March 2007)

  4. #3
    Join Date
    Jan 2006
    Posts
    105
    Thanks
    21
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to deploy Qt-dlls for windows

    Quote Originally Posted by jpn View Post
    The problem is that any other installation overwriting them with older versions could even prevent your application from launching. For example, let's say your application depends on new functions introduced in Qt 4.2 and some other installer overwrites the dll's with 4.1 ones.
    and installers actually do this? this is crazy!

    ok, so i'll pack them into my installation folder - no problem for me

    thanks!
    niko

  5. #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 deploy Qt-dlls for windows

    Quote Originally Posted by niko View Post
    and installers actually do this? this is crazy!
    Well, depending on the installer, usually the user is prompted with a question like "A newer version of this file exists, blaablaa?" But you never can be sure what people answer to them, if they even bother to read the popups..
    J-P Nurmi

  6. #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: How to deploy Qt-dlls for windows

    If there is only one executable, you might consider statically linking it. Then you don't have to bother with DLLs.

  7. #6
    Join Date
    Jan 2006
    Posts
    105
    Thanks
    21
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to deploy Qt-dlls for windows

    Quote Originally Posted by Brandybuck View Post
    If there is only one executable, you might consider statically linking it. Then you don't have to bother with DLLs.
    hmm.. yes, that would be another option i will cosider...

Similar Threads

  1. Replies: 2
    Last Post: 22nd February 2007, 08:08
  2. My application can't connect to database when deploy it???
    By gtthang in forum Installation and Deployment
    Replies: 1
    Last Post: 15th February 2006, 11:01

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.