Results 1 to 5 of 5

Thread: Qt 4.8.1 Cannot release debugged app for windows.

  1. #1
    Join Date
    May 2012
    Posts
    6
    Qt products
    Qt4
    Platforms
    Windows

    Exclamation Qt 4.8.1 Cannot release debugged app for windows.

    Hello everyone !

    I have working solution of client-side of my project ( calculator through winsocks ). Problem is that I cannot release my solution. Debugging works fine - no errors program runs ect.
    When Im releasing my app after adding all qt dll's to release folder and clicking on .exe I Get error :
    The procedure entry point ??4Qstring@@......@Z could not be located in the dynamic link library QtCore4.dll

    Please help me with this one. I'ts my second day I am trying to release this application. I've tried to add different qt dll's 4.7.2 and lower... nor of them works... :/
    I even reinstaled whole SDK, had 4.7. and thought maybe update went wrong ... I've made whole new project in 4.8 and copied source and it works fine in Qt Creator...

    I'm working on windows vista home premmium 32bit


    Thanks in advance,
    Yours,
    notes.
    Last edited by notes90; 31st May 2012 at 17:07.

  2. #2
    Join Date
    Mar 2008
    Location
    Kraków, Poland
    Posts
    1,536
    Thanked 284 Times in 279 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt 4.8.1 Cannot release debugged app for windows.

    DLL's for debug version have letter d in name. Ie. QtCore4.dll fo release mode and QtCore4d.dll for debug mode.

  3. #3
    Join Date
    May 2012
    Posts
    6
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Qt 4.8.1 Cannot release debugged app for windows.

    Quote Originally Posted by Lesiok View Post
    DLL's for debug version have letter d in name. Ie. QtCore4.dll fo release mode and QtCore4d.dll for debug mode.
    Yes, I have QtCore4.dll in my release folder and all other qt dll's needed for app, in this case network and gui.
    I've copied qtCored4.dll to debug folder and other dll's with 'd' letter and after clicking on .exe i get error :
    The procedure entry point ?checkStateSet@AbstractButton@@MAEXXZ could not be located in the dynamic link library QtGuid4.dll
    I want to underline that debug version is running well through Qt Creator...

    Anyone ?
    Last edited by notes90; 31st May 2012 at 19:42.

  4. #4
    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: Qt 4.8.1 Cannot release debugged app for windows.

    Exactly which DLLs (full paths) are you copying from the Qt SDK to deploy? You should be using the files from:
    Qt Code:
    1. QtSDK/Desktop/Qt/x.y.z/compiler/bin/ // for Qt core libraries
    2. QtSDK/Desktop/Qt/x.y.z/compiler/plugins // for Qt plugins
    To copy to clipboard, switch view to plain text mode 
    where x.y.z is the Qt version you built with and compiler is "mingw" if you used the bundled MingW compiler, and something else for each of MSVC 2008 and 2010. You must use the files matching the compiler you used to build your application. You deploy the release (i.e. QtCore4.dll, QtGui4.dll) libraries to match your application built in release mode.

    You definitely do not want the Qt dlls from the QtSDK/QtCreator directory. They are the libraries against which the Qt Creator was built (probably with MSVC) and may not match your program (certainly not if you used MingW).

  5. #5

    Default Re: Qt 4.8.1 Cannot release debugged app for windows.

    You can also try using Dependency Walker to see which ddl's your application is using.

    You need to check which directories DW is using or you may pick up a dll from an unrelated application.

    You can also try re-installing qt. The latest download seems to use MSVC10 for windows desktop applications. I tried using mingw and could not find the proper dlls. Re-installing switched me to MSVC10 and I got the release to work.

    There is a thread over in the Install / Development forums where I go into more detail: scroll to last post

Similar Threads

  1. Replies: 1
    Last Post: 18th November 2009, 21:51
  2. QtSingleApplication in Windows with release mode
    By Auryn in forum Qt Programming
    Replies: 2
    Last Post: 28th October 2009, 11:36
  3. Replies: 8
    Last Post: 8th September 2008, 09:46
  4. Strange QTcpSocket behavior (debugged with Ethereal)
    By mdecandia in forum Qt Programming
    Replies: 23
    Last Post: 28th May 2007, 20:44
  5. Qt 4.2.2 Cleanlooks debug vs. release (Windows XP)
    By Byngl in forum Qt Programming
    Replies: 6
    Last Post: 25th January 2007, 12:56

Tags for this Thread

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.