Results 1 to 5 of 5

Thread: Problem using QT from VS 2013

  1. #1
    Join Date
    Feb 2014
    Location
    Romania
    Posts
    25
    Thanks
    3
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt5
    Platforms
    Windows

    Default Re: Problem using QT from VS 2013

    Hello everyone,

    I've installed VS2010 and VS2013 on a clean machine and I'm trying to get my dev environment to work.

    I've installed QT 5.3 and the Qt5 VS Add-in 1.2.3

    As far as I remember I need to create an evironment envariable which points to the installation folder of QT. I've done this.
    e.g.
    Variable name: QT_DIR
    Variable value: C:\Qt\5.3\msvc2010_opengl;C:\Qt\5.3\C:\Qt\5.3\msvc 2013_opengl

    I can create a dummy Qt project in VS2010 and can built it. It works as expected.

    However, in VS2013 it is not working. Followed the wizard to create a dummy Qt project in VS2013, but when I try to buit it I get this error:
    error LNK2038: mismatch detected for '_MSC_VER': value '1600' doesn't match value '1800' in moc_test.obj

    As I said, the same steps are done when creating the Qt project in VS 2010. This is working.

    Can you please tell me what I need to do in order to get this working as expected in VS 2013?

    Sincerely,
    Dan


    Added after 5 minutes:


    Hi,

    I've tried to use other value for the environment variable but the behavior persists. Searching to other forums, didn't helped either.
    Last edited by nimrod1989; 14th November 2014 at 19:34.

  2. #2
    Join Date
    Feb 2014
    Location
    Romania
    Posts
    25
    Thanks
    3
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt5
    Platforms
    Windows

    Default Re: Problem using QT from VS 2013

    Hi,

    A similar error appears when trying to build from Vs 2012:
    error LNK2038: mismatch detected for '_MSC_VER': value '1600' doesn't match value '1700' in moc_testapp.obj

    Does any have any idea how should I get this working?

  3. #3
    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: Problem using QT from VS 2013

    Because You try to link OBJ file generated by VS 2010 to EXE/DLL generated by VS 2012/2013. Yours Qt and application both should be build with this same version of VS. Ask uncle Google and read this article. This has nothing to do with Qt.

  4. The following user says thank you to Lesiok for this useful post:

    nimrod1989 (19th November 2014)

  5. #4
    Join Date
    Feb 2014
    Location
    Romania
    Posts
    25
    Thanks
    3
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt5
    Platforms
    Windows

    Default Re: Problem using QT from VS 2013

    Thank you for providing these details.
    I also thought it does not have something to do with QT.

    I've read on the internet, however, I'm not able to fix this. Do you have/know any straightforward way to fix this?

  6. #5
    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: Problem using QT from VS 2013

    You need to have two installations of Qt - one for VS2010 and second for VS2013. Variable QT_DIR should point to one directory appropriate for your environment.

Similar Threads

  1. Replies: 3
    Last Post: 19th November 2014, 19:44
  2. Replies: 4
    Last Post: 29th April 2014, 16:20
  3. : error: [\NokiaQtSDK\Symbian\SDK\epoc32\release\gcce\udeb\V ideo.exe] Error 1
    By ranjit.kadam in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 1st May 2011, 22:11
  4. Replies: 3
    Last Post: 23rd January 2011, 12:15
  5. fatal error C1001: An internal error has occurred in the compiler
    By noodles in forum Installation and Deployment
    Replies: 0
    Last Post: 12th August 2010, 11:24

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.