qmake set correct windows sdk version



  • 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.


  • Moderators

    @OlegK The content of your pro file is not visible



  • @jsulm I fixed post issue.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.