Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Where is qmake.exe



  • Edit: I figured that maybe the extension is just a tool to bind VS and QT, and I need to install QT, as the extension seems to be too small. I'm installing QT and will see what happens.


    OK I spent an hour and gave up, and searching on this forum doesn't really help (Somehow this seems to be a routine issue by the look of it).

    Long story short, I installed QT for VS2019 through...well, VS2019. I then clicked Options->Qt->Version and it asked me to find qmake.exe (why doesn't it know by itself?).

    But I couldn't find it. It's nowhere to be found. I even searched in WIndows explorer and the only thing I got is some qmakefilereader.exe under the extension folder. Can you please let me know where it is? Do I need to re-install the plugin maybe? Thanks~~

    BTW neither contains a solution:
    https://doc.qt.io/qtvstools/qtvstools-managing-projects.html#managing-qt-versions
    https://doc.qt.io/qtvstools/qtvstools-getting-started.html


  • Moderators

    Hi, welcome to the forum

    @Q74r3wq said in Where is qmake.exe:

    Long story short, I installed QT for VS2019 through...well, VS2019

    No, there's no way to install Qt(the library) through VS2019. You installed a Qt extension for VS, not Qt itself. This adds integration, wizards etc, but it doesn't install the library. That's also why it doesn't fill your Qt information for you - you might have multiple versions installed, or, like in your case, none.

    The links you posted will be of use after you install the Qt library.

    The easiest way to install Qt is to use the online installer. Just make sure you only select one version, the one for VS2019, because there's a lot of them there to choose from.
    After you install Qt you can set it up in the VS extension. The qmake.exe will be located in the bin folder in the installation directory for the version you choose to install.



  • When Qt is installed, there is a path setting. What did you set? Reinstall Qt and write down your path.


  • Moderators

    Hi, welcome to the forum

    @Q74r3wq said in Where is qmake.exe:

    Long story short, I installed QT for VS2019 through...well, VS2019

    No, there's no way to install Qt(the library) through VS2019. You installed a Qt extension for VS, not Qt itself. This adds integration, wizards etc, but it doesn't install the library. That's also why it doesn't fill your Qt information for you - you might have multiple versions installed, or, like in your case, none.

    The links you posted will be of use after you install the Qt library.

    The easiest way to install Qt is to use the online installer. Just make sure you only select one version, the one for VS2019, because there's a lot of them there to choose from.
    After you install Qt you can set it up in the VS extension. The qmake.exe will be located in the bin folder in the installation directory for the version you choose to install.



  • @JoeCFD Hi (I just edited the question) I just realized that maybe QT extension does NOT include QT, but simply provides me a way to bind VS2019 and QT. I'm isntalling QT and will see what happens. But I'm sure it should solve my issue. Thanks for the help~~



  • @Chris-Kawa Thanks (I just edited the question) I just realized that maybe QT extension does NOT include QT, but simply provides me a way to bind VS2019 and QT. I'm isntalling QT right now and it should solve my issue. Thanks!

    BTW is it possible to add an one-liner on VS2019 extension page (please ignore if it's already there) saying that "Please install QT before you can use this product."


  • Moderators

    @Q74r3wq said in Where is qmake.exe:

    BTW is it possible to add an one-liner on VS2019 extension page (please ignore if it's already there) saying that "Please install QT before you can use this product."

    Well technically you can use it without Qt, it just doesn't do anything interesting in that case :)
    But yeah, a mention that it doesn't install the library wouldn't hurt. You can post a suggestion for the extension project team on bugreports.qt.io.



  • This post is deleted!

  • Moderators

    @JoeCFD That's a wrong link. You linked to the Qt Installer Framework. That's not the Qt library. I already posted a link to the online installer for the library.
    Also OP has already installed the VS extension and that can be done directly from VS, so there's no need to use the standalone installer.



  • @Chris-Kawa Sorry. My bad. I posted the wrong link. Thanks.


Log in to reply