Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. qmake set correct windows sdk version
Forum Updated to NodeBB v4.3 + New Features

qmake set correct windows sdk version

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 3 Posters 1.1k 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.
  • O Offline
    O Offline
    OlegK
    wrote on last edited by OlegK
    #1

    I am trying to generate visual studio solution with qmake
    That is my qt_button.pro file

    TEMPLATE = vcapp
    TARGET = qt_button
    LANGUAGE = C++
    
    QT += widgets
    CONFIG += stl warn_on c++11 precompile_header
    
    PRECOMPILED_HEADER = src/pch.h
    
    RESOURCES += img.qrc
    SOURCES += src/main.cpp
    

    I am invoking qmake in this way:

    qmake -tp vc qt_button.pro
    

    It generates vc project well but when I try to build it I have compile time error:

    0_1523885994872_178.150.81.2423389 - Подключение к удаленному рабочему столу.jpg

    As far as I understood I need to set correct windows sdk version here:

    0_1523886223976_178.150.81.2423389 - Подключение к удаленному рабочему столу.jpg

    Is there a way to do it programmatically via cmake or specify some variable in *.pro file?

    Thanks.

    jsulmJ 1 Reply Last reply
    0
    • O OlegK

      I am trying to generate visual studio solution with qmake
      That is my qt_button.pro file

      TEMPLATE = vcapp
      TARGET = qt_button
      LANGUAGE = C++
      
      QT += widgets
      CONFIG += stl warn_on c++11 precompile_header
      
      PRECOMPILED_HEADER = src/pch.h
      
      RESOURCES += img.qrc
      SOURCES += src/main.cpp
      

      I am invoking qmake in this way:

      qmake -tp vc qt_button.pro
      

      It generates vc project well but when I try to build it I have compile time error:

      0_1523885994872_178.150.81.2423389 - Подключение к удаленному рабочему столу.jpg

      As far as I understood I need to set correct windows sdk version here:

      0_1523886223976_178.150.81.2423389 - Подключение к удаленному рабочему столу.jpg

      Is there a way to do it programmatically via cmake or specify some variable in *.pro file?

      Thanks.

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @OlegK The content of your pro file is not visible

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • O Offline
        O Offline
        OlegK
        wrote on last edited by OlegK
        #3

        @jsulm I fixed post issue.

        1 Reply Last reply
        0
        • P Offline
          P Offline
          pkissel 0
          wrote on last edited by
          #4

          Hi,

          I know this has been a while but did you ever figure out the solution. I'm running into the same problem.

          Thank you!

          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