Results 1 to 8 of 8

Thread: Vs2008 qmake requires conversion

  1. #1
    Join Date
    May 2007
    Posts
    90
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    40

    Question Vs2008 qmake requires conversion

    I have run qmake for years to generate projects for Visual Studio 2008 with no issues. Recently I had to install Visual Studio 2010 for another project. Ever since then whenever I open my Qmake made vcproj(s) in VS2008 I am required to convert.

    Everything works fine after the conversion, but it is annoying and creates a lot of junk files in the vcproj directory.

    I have QMAKESPEC=win32-msvc2008. I am using the Qt command shortcut to ensure it has the proper variables in the PATH and I have double checked in the command window's PATH to ensure it is not overwritten.

    Any thoughts/ideas?

    Thanks in advance.

  2. #2
    Join Date
    Sep 2011
    Posts
    1,241
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    3
    Thanked 127 Times in 126 Posts

    Default Re: Vs2008 qmake requires conversion

    uhm... change the QMAKESPEC?
    If you have a problem, CUT and PASTE your code. Do not retype or simplify it. Give a COMPLETE and COMPILABLE example of your problem. Otherwise we are all guessing the problem from a fabrication where relevant details are often missing.

  3. #3
    Join Date
    May 2007
    Posts
    90
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    40

    Default Re: Vs2008 qmake requires conversion

    Sorry but to what? I WANT to open the qmake generated vcproj in Visual Studio 2008 hence QMAKESPEC=win32-msvc2008

    The only difference on the system is that Visual Studio 2010 is now also installed, but not being used in this project. So does qmake grab some variable from somewhere other than the path or something that is putting something in it that VS2008 can't handle?

  4. #4
    Join Date
    May 2007
    Posts
    90
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    40

    Default Re: Vs2008 qmake requires conversion

    Information that may help is that the upgrade log claims it is adding UAC stuff to the vcproj. Does Qt not add this in qmake?

  5. #5
    Join Date
    Sep 2011
    Posts
    1,241
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    3
    Thanked 127 Times in 126 Posts

    Default Re: Vs2008 qmake requires conversion

    If you have two MSVS installed MS always wants to open in the most recent version. If you dont, then open 2008 first and open .vcproj. There shouldn't be any problem.
    If you have a problem, CUT and PASTE your code. Do not retype or simplify it. Give a COMPLETE and COMPILABLE example of your problem. Otherwise we are all guessing the problem from a fabrication where relevant details are often missing.

  6. #6
    Join Date
    May 2007
    Posts
    90
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    40

    Default Re: Vs2008 qmake requires conversion

    In this case I am opening VS2008 then opening the vcproj created using qmake with a win32-msvc2008 makespec and it is requiring conversion. Visual Studio 2010 is never opened, it just happens to be on the system and the problem did not start until it was installed.

  7. #7
    Join Date
    Sep 2011
    Posts
    1,241
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    3
    Thanked 127 Times in 126 Posts

    Default Re: Vs2008 qmake requires conversion

    never heard of that. if the project was in 2010 format, then it would not be able to convert back to 2008
    If you have a problem, CUT and PASTE your code. Do not retype or simplify it. Give a COMPLETE and COMPILABLE example of your problem. Otherwise we are all guessing the problem from a fabrication where relevant details are often missing.

  8. #8
    Join Date
    May 2007
    Posts
    90
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    40

    Default Re: Vs2008 qmake requires conversion

    Found solution. It was super simple and stupid. We were using a modified version of Qt and the qmakevars.bat did not have a PATH setter for the path to the appropriate visual studio piece. Adding the bin from Visual Studio's VC directory to path solved it.

Similar Threads

  1. Kapture installation requires qmake-qt4
    By saman_artorious in forum Installation and Deployment
    Replies: 0
    Last Post: 10th July 2012, 19:38
  2. Detect whether a server requires SSL connection
    By mentalmushroom in forum Qt Programming
    Replies: 0
    Last Post: 24th May 2012, 13:40
  3. using qmake for building app which requires non-qt libs.
    By coding_neo in forum Qt Programming
    Replies: 1
    Last Post: 4th October 2011, 12:37
  4. qt-4.5.0 requires glibc>=2.3.2?
    By mailtome in forum Installation and Deployment
    Replies: 1
    Last Post: 9th April 2009, 05:33

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