Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. QMake generate bad solution version, 2019 needed, 2017 generated
Forum Updated to NodeBB v4.3 + New Features

QMake generate bad solution version, 2019 needed, 2017 generated

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
1 Posts 1 Posters 334 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    SebastienD
    wrote on last edited by
    #1

    Hi,

    I try to generate sln and vcxproj with QMake for VS2019 but the result is always for VS2017. I call correctly vcvarsall and VS2017 is uninstalled but some artifacts seems to be present.

    This is my bat to convert .pro to sln:

    call "%PROGFILES%\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" x64 10.0.19041.0
    
    %QTDIR%/bin/qmake.exe -t vclib -spec win32-msvc -d
    

    In the debug output I see some path with the bad SDK ( 10.0.16299.0 instead of 10.0.19041.0) , bad MSVC compiler (14.11.25503 instead of 14.27****) and bad VS version (2017 instead of 2019)

    DEBUG 1: C:/Qt/5.15.0/msvc2019_64/mkspecs/features/moc.prf:52: incvar := -IC:/Qt/5.15.0/msvc2019_64/mkspecs/win32-msvc -IC:/Users/SD/Documents/Studio/MyProjectName/Core -IC:/Users/SD/Documents/Studio/MyProjectName/Core/Tasks -IC:/Users/SD/Documents/Studio/MyProjectName/Core/Api -IC:/Users/SD/Documents/Studio/MyProjectName/Core/Data -IC:/Users/SD/Documents/Studio/MyProjectName/Core/TaskManager -IC:/Users/SD/Documents/Studio/MyProjectName/Core/Geometry -IC:/Users/SD/Documents/Studio/MyProjectName/Core/Models -IC:/Users/SD/Documents/Studio/MyProjectName/Core/Other -IC:/Users/SD/Documents/Studio/MyProjectName/Core/Toolkit -IC:/Users/SD/Documents/Studio/MyProjectName/Core/History -IC:/Users/SD/Documents/Studio/MyProjectName/External/Libs/Install/VTK-8.1.0/include/vtk-8.1 -IC:/Users/SD/Documents/Studio/MyProjectName/External/Libs/Install/OCCT/inc -IC:/Users/SD/Documents/Studio/MyProjectName/External/Libs/Install/BOOST-1.74.0/boost-build/include/boost-1_70 -IC:/Users/SD/Documents/Studio/MyProjectName/External/Libs/Install/GTEngine-4.6 -IC:/Users/SD/Documents/Studio/MyProjectName/External/opencv/build/include -IC:/Qt/5.15.0/msvc2019_64/include -IC:/Qt/5.15.0/msvc2019_64/include/QtWidgets -IC:/Qt/5.15.0/msvc2019_64/include/QtMultimedia -IC:/Qt/5.15.0/msvc2019_64/include/QtGui -IC:/Qt/5.15.0/msvc2019_64/include/QtANGLE -IC:/Qt/5.15.0/msvc2019_64/include/QtNetwork -IC:/Qt/5.15.0/msvc2019_64/include/QtCore "-I\"C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\VC\\Tools\\MSVC\\14.11.25503\\ATLMFC\\include\"" "-I\"C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\VC\\Tools\\MSVC\\14.11.25503\\include\"" "-I\"C:\\Program Files (x86)\\Windows Kits\\NETFXSDK\\4.6.1\\include\\um\"" "-I\"C:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.16299.0\\ucrt\"" "-I\"C:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.16299.0\\shared\"" "-I\"C:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.16299.0\\um\""
    

    Everything works fine in a fresh installed windows on a different computer without VS2017 installed.
    I already try to uninstall everything (Qt, all VS versions, SDKs) and use the tool from Visual Studio to clean the computer but I obtain the same result after the reinstallation.
    My colleague obtain the same problem

    Thanks,
    Sebastien

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved