Results 1 to 4 of 4

Thread: Help required in deploying window based qt application on non qt environment windows

  1. #1
    Join Date
    Jan 2011
    Posts
    9
    Qt products
    Qt3 Qt4 Qt/Embedded Qt Jambi PyQt3 PyQt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Help required in deploying window based qt application on non qt environment windows

    Hello,

    I urgently require help in deploying a window based qt application on a windows where qt is not installed. The application reads any file that the user wants to store and stores it in postgresql database in Bytea format. When the user wants to view the file, it imports the bytea data into a byte array in qt which in turn makes a file out of it. This file is then opened by Qt Desktop IO services. The problem is that this works perfect on my windows which has qt installed but when i try to use it on any non qt environment window, the application makes a corrupt file to view. I think i am missing some dll required to use for such action. I would appreciate all help in advance

  2. #2
    Join Date
    Sep 2010
    Location
    Poland
    Posts
    112
    Thanks
    8
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Maemo/MeeGo

    Default Re: Help required in deploying window based qt application on non qt environment wind

    (I am talking about default Qt's installation with shared libraries) basically You need QtGui4.dll and QtCore4.dll,libgcc_s_dw2-1.dll,mingwm10.dll these are necessity I guess and must be included along with binary.exe
    From my experience they must be inserted into system32 directory. Other files you have to add along with binary.exe depends on the project specification.

    You can set up testing environment in virtual machine with clean OS and install your application, check what's missing and successfully include missing dependencies.

    Postresql as far as I know is not default db driver, so You need to add appropriate dll(s) as well.
    Hope that helps

    additionally this article is very helpful [WIKI]Deploying Qt Applications[/WIKI]
    My schedule makes my cry
    My works makes my laugh
    My life makes... oh...no....

  3. #3
    Join Date
    Oct 2009
    Posts
    364
    Thanks
    10
    Thanked 37 Times in 36 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Help required in deploying window based qt application on non qt environment wind

    Quote Originally Posted by kornicameister View Post
    From my experience they must be inserted into system32 directory.
    This is not needed. You just have to put them in the same folder where the application executable resides.

    in short, you need to deploy your app as follows:
    <app>.exe
    <dlls mentioned by kornicameister>
    if you are using icons, then you need to create a subfolder 'imageformats' and within it, qico4.dll. If you use any other image formats, add addiontial dlls to this subfolder.
    if your app uses sql, then create a subfolder 'sqldrivers' and in it the appropriate dll according to the db you are using. Look at <Qt Install folder>\qt\plugins\sqldrivers

    in addition to the wiki link, I would suggest the following:
    http://doc.qt.nokia.com/latest/deployment.html
    Last edited by schnitzel; 20th February 2011 at 22:58. Reason: reworded

  4. #4
    Join Date
    Sep 2010
    Location
    Poland
    Posts
    112
    Thanks
    8
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Maemo/MeeGo

    Default Re: Help required in deploying window based qt application on non qt environment wind

    Quote Originally Posted by schnitzel View Post
    This is not needed. You just have to put them in the same folder where the application executable resides.

    in short, you need to deploy your app as follows:
    <app>.exe
    <dlls mentioned by kornicameister>
    if you are using icons, then you need to create a subfolder 'imageformats' and within it, qico4.dll. If you use any other image formats, add addiontial dlls to this subfolder.
    if your app uses sql, then create a subfolder 'sqldrivers' and in it the appropriate dll according to the db you are using. Look at <Qt Install folder>\qt\plugins\sqldrivers

    in addition to the wiki link, I would suggest the following:
    http://doc.qt.nokia.com/latest/deployment.html
    and than I learnt something as well
    My schedule makes my cry
    My works makes my laugh
    My life makes... oh...no....

Similar Threads

  1. Qt 4.7: why is QtHelpd4.dll required?! (Windows deployment)
    By agarny in forum Installation and Deployment
    Replies: 2
    Last Post: 8th January 2011, 01:55
  2. Windows SDK setup fails (required for phonon)
    By pospiech in forum Installation and Deployment
    Replies: 14
    Last Post: 28th January 2010, 13:37
  3. Deploying an application on windows
    By dmcr in forum Installation and Deployment
    Replies: 1
    Last Post: 23rd September 2009, 09:23
  4. problem with deploying static application in windows
    By remy06 in forum Installation and Deployment
    Replies: 3
    Last Post: 2nd June 2009, 06:46
  5. Deploying Qt 4.4 based Mac application
    By Ian_001 in forum Installation and Deployment
    Replies: 0
    Last Post: 31st October 2008, 15:13

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.