Results 1 to 6 of 6

Thread: Debugging win x64 application in QtCreator

  1. #1
    Join Date
    May 2010
    Posts
    53
    Thanks
    2
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Debugging win x64 application in QtCreator

    I have Qt 4.6.2 built for x64 using the vs2008 x64 command line and am able to compile an run applications built in Qt 1.3.83 using win32-msvc2008 for mkspec. However I am unable to debug. I downloaded and installed "Debugging Tools for Windows (x64)" and set the Cdb path to "C:\Program Files\Debugging Tools for Windows (x64)" in the debugger menu in QtCreator. When I try to debug it states that Cdb is not enabled. When I go back to the debugger options menu I see the following error:
    Unable to load the debugger engine library 'C:\Program Files\Debugging Tools for Windows (x64)\dbghelp.dll': Cannot load library C:\Program Files\Debugging Tools for Windows (x64)\dbghelp.dll:
    I double checked and dbghelp.dll does exist at that location. Does anybody have any ideas?

  2. #2
    Join Date
    Jun 2010
    Posts
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Debugging win x64 application in QtCreator

    Hello, I am getting this same problem in 32bit windows. Any Solution recommended?

  3. #3
    Join Date
    May 2010
    Posts
    53
    Thanks
    2
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Debugging win x64 application in QtCreator

    I know this is not a solution but I just switched to VS2008 and everything works fine. I would much rather be using Qt Creator though, so if anybody has any ideas it would be appreciated.

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

    Default Re: Debugging win x64 application in QtCreator

    I'm suffering from this issue as well

    version info

    Qt Creator 2.0.0

    from revision 1cf52a091
    built on Jun 18, 2010
    based on Qt 4.7.0 (32 bit)
    Last edited by MobiArdy; 1st July 2010 at 01:45.

  5. #5
    Join Date
    May 2010
    Posts
    53
    Thanks
    2
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Debugging win x64 application in QtCreator

    From what I have been reading you need to build Qt creator for x64 from source to be able to debug x64 applications: Link. However I keep getting compilation errors.

    link /LIBPATH:"c:\Qt\qt-src-4.6.2\lib" /NOLOGO /DEBUG /MANIFEST /MANIFES
    TFILE:"debug\qtcdebugger.intermediate.manifest" /SUBSYSTEM:WINDOWS "/MANIFESTDEP
    ENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0'
    publicKeyToken='6595b64144ccf1df' language='*' processorArchitecture='*'" /OUT:.
    .\..\..\bin\qtcdebugger.exe @C:\Users\agerlach\AppData\Local\Temp\nm7C91.tmp
    qtmaind.lib(qtmain_win.obj) : fatal error LNK1103: debugging information corrupt
    ; recompile module
    NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 8\VC
    \BIN\amd64\link.EXE"' : return code '0x44f'
    Stop.
    NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 8\VC
    \BIN\amd64\nmake.exe"' : return code '0x2'
    Stop.
    NMAKE : fatal error U1077: 'cd' : return code '0x2'
    Stop.
    NMAKE : fatal error U1077: 'cd' : return code '0x2'
    Stop.
    NMAKE : fatal error U1077: 'cd' : return code '0x2'
    Stop.

    c:\Qt\qtcreator-1.3.1(x64)>
    does anybody have any advice?
    Last edited by agerlach; 6th July 2010 at 17:43.

  6. #6
    Join Date
    May 2010
    Posts
    53
    Thanks
    2
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Debugging win x64 application in QtCreator

    OK, I was able to compile Qt Creator 2.0 and verify that it is able to debug x64 applications. I used the following steps: First build Qt 4.7 from source for x64, then build Qt Creator 2.0 from source for x64 (see this forum post: Link). I built a sample application and was able to debug! Unfortunetly the application that I need to debug will not debug. When I start the debugger Qt Creator become unresponsive for some time and then finally comes back without ever running my application. Even when it worked with my sample application it was extremely slow in displaying the application, on the order of minutes and Qt Creator was unresponsive during that time.

Similar Threads

  1. 64 bit application using QTCreator on windows?
    By eyeofhell in forum Qt Tools
    Replies: 1
    Last Post: 21st September 2010, 04:06
  2. Debugging Qt Application ActiveX on IE8
    By Robson Ramiro in forum Qt Programming
    Replies: 3
    Last Post: 5th July 2010, 22:27
  3. Debugging a console application
    By Lorthirk in forum Qt Tools
    Replies: 1
    Last Post: 26th September 2009, 12:49
  4. qtcreator debugging problem in windowXP
    By nagare in forum Newbie
    Replies: 1
    Last Post: 15th June 2009, 19:04
  5. Debugging in QtCreator
    By Carlton in forum Qt Tools
    Replies: 1
    Last Post: 4th June 2009, 00:29

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.