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 to generate visual studio solution
QtWS25 Last Chance

qmake to generate visual studio solution

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 3.8k 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 16 Apr 2018, 11:40 last edited by
    #1

    Hi all,
    I am going to generate visual studio solution for simple project, this is 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
    

    That is how I do it from command line:

    qmake -tp vc qt_button.pro
    

    It works without errors.

    But When I open qt_button.vcxproj file visual studio gives me error:

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

    Could you tell me please what am I doing wrong and where is my mistake. Thanks a lot.

    My environment:
    Visual Studio 2017
    Qt 5.10.1
    QMake version 3.1

    1 Reply Last reply
    0
    • O Offline
      O Offline
      OlegK
      wrote on 16 Apr 2018, 12:08 last edited by
      #2

      Path to qmake.exe was set incorrectly.

      1 Reply Last reply
      2
      • A Offline
        A Offline
        aha_1980
        Lifetime Qt Champion
        wrote on 16 Apr 2018, 12:32 last edited by
        #3

        @OlegK Then please mark this topic as SOLVED (button Topic Tools). Thanks.

        Qt has to stay free or it will die.

        1 Reply Last reply
        0

        1/3

        16 Apr 2018, 11:40

        • Login

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