Results 1 to 12 of 12

Thread: qt and vs

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default qt and vs

    hello,

    I'd like to add Qt 4.7 to VS2010 with the Qt add in 1.1.7.
    I've already installed VS2010 and Qt and the add in.
    When I make a new project, the compilation ends correctly but the executable doesn't work.
    The error that is displayed by Windows is : "this application could not be launched because the configuration of this application is incorrect". Reinstalling the application could solve the problem."
    I didn't make any special configuration.
    What did I miss during the installation/configuration process ?

    Thanks.

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows
    Thanks
    21
    Thanked 418 Times in 411 Posts

    Default Re: qt and vs

    I think Problem is that your exe can't find the qt dlls.
    Either copy them to the exe location or (better) add their location to your projects search path.
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

  3. #3

    Default Re: qt and vs

    Hello,

    yes you're probably right, because I didn't copy any dll or added anything to the search path.
    How can I do the latter, exactly? (what to add, and where)
    Besides, it seems weird to me that the error displayed by Windows is not 'missing dll' or something similar, as I've already seen this error displayed before.

    thanks

  4. #4
    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 and vs

    "configuration of this application is incorrect" is more common to incorrect VC run time DLLs like MSVCRT.

    Maybe your application is expecting VS2010 DLLs but finding VS2008 DLLs.

  5. #5

    Default Re: qt and vs

    okay... so how do I fix this ?

  6. #6

    Default Re: qt and vs

    Where do I find these dlls?

  7. #7
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows
    Thanks
    21
    Thanked 418 Times in 411 Posts

    Default Re: qt and vs

    Are you sure you installed Qt built by VS and not the MinGW build?
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

  8. #8

    Default Re: qt and vs

    Yes, although it's not the 2010 version. The installer is called "qt-win-opensource-4.7.0-vs2008.exe".

  9. #9
    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 and vs

    Run something like dependency walker and then copy the specific MS DLLs from your VS installation to the directory of the executable, or download the redistributable from MS Website.

  10. #10

    Default Re: qt and vs

    I don't really understand, what do I have to download exactly ?
    I’ve copied All the dlls (including QtGuid4.dll) of the bin folder into my executable directory, it’s still not working.
    The same error appears

  11. #11
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows
    Thanks
    21
    Thanked 418 Times in 411 Posts

    Default Re: qt and vs

    Yes, although it's not the 2010 version. The installer is called "qt-win-opensource-4.7.0-vs2008.exe".
    This could very well be the problem.
    The VS2010 Dll's are probably not binary compatible with those of 2008.
    You can test it by trying to run this with VS2008.
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

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.