Results 1 to 7 of 7

Thread: qt in vc++ debug problem

  1. #1
    Join Date
    Feb 2009
    Posts
    189
    Thanks
    2

    Default qt in vc++ debug problem

    Dear Friends
    I have cofigured QT in VC++ and trying to build in debug mode
    when I am pressing F5 it gives and error
    "Theapplication has failed to start because QtGuid4.dll was not found. Re-installing the application may fix this problem"

    After searching I found that I nee to build qt in debug mode by "qvars.bat compile_debug" but there's no qvars.bat file in the \Qt\2009.04\qt\bin directory or anywhere under Qt.

    So what should I do for building application in debg mode.
    In release mode it runs fine but Ctrl+F5 is not working I need to goto the release folder and click the exe that runs the application.

    Please guide me someone to fix this.

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

    Default Re: qt in vc++ debug problem

    qtvars.bat not qvars.bat

  3. #3
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    6
    Thanked 348 Times in 333 Posts

    Default Re: qt in vc++ debug problem

    QtGuid4.dll is probably built already and is in qt/bin directory. Either copy it to your application debug directory, and preferably configure your path variable. If you don't have the file, recompile Qt as you did before for VC++, but this time specify -debug flag instead of -release flag.

  4. #4
    Join Date
    Feb 2009
    Posts
    189
    Thanks
    2

    Default Re: qt in vc++ debug problem

    configure -no-sql-sqlite -no-qt3support -no-opengl -platform win32-msvc2008
    -no-libtiff -no-dbus -no-phonon -no-phonon-backend -no-webkit

    I dint mention -debug flag or release flag. and I can see QtGuid4.dl is present in the
    \Qt\200904\qt\bin and \Qt\200904\qt\lib both the directories.

  5. #5
    Join Date
    Feb 2009
    Posts
    189
    Thanks
    2

    Default Re: qt in vc++ debug problem

    Friends
    I am now able to debug I have copied the QtGuid4.dll into the debug directory. And then i am able to build and debug.

    But do I need every time for every project I need to copy this dll into the debug directory ?

    And one more problem is there when I build in release mode by pressing CTRL+F5 it doensnt excute the application it says system cannot find the path Release\Hello.exe

    what could be the problem for this ?

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

    Default Re: qt in vc++ debug problem

    Configure Your system to have \Qt\2009.04\qt\bin in PATH

  7. #7
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    6
    Thanked 348 Times in 333 Posts

    Default Re: qt in vc++ debug problem

    No, as I said above, copying the file there just proves that it works fine with it. You should configure your path variable.

Similar Threads

  1. Replies: 1
    Last Post: 18th November 2009, 21:51
  2. Debug issues
    By lyucs in forum Qt Tools
    Replies: 4
    Last Post: 13th November 2009, 22:59
  3. Problem using Qt debug frameworks on Mac
    By bibbinator in forum Qt Programming
    Replies: 2
    Last Post: 5th November 2009, 07:50
  4. Debug / Release Problem
    By messifanboy in forum Newbie
    Replies: 8
    Last Post: 7th October 2009, 16:23
  5. Problem when triyng to debug
    By Platoon in forum Qt Programming
    Replies: 4
    Last Post: 30th September 2009, 07:54

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
  •  
Qt is a trademark of The Qt Company.