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

Can I mix Qt VS Tools with Visual Studio's "Linux development with C++" to build a Qt app on Linux?



  • In my searching, I haven't found anything directly on topic about this. So, I thought I'd post here. Full disclosure: I am quite new and green with respect to Qt.

    I've tinkered enough to be able to use the Qt VS Tools to create a Qt project that builds for Windows using Visual Studio 2017.
    And I've created a C++ project using the "Linux development with C++" that builds on Linux using Visual Studio 2017.

    Now I'd like to mix the two in order to build my Qt app on both Windows and Linux using Visual Studio 2017 to perform both builds.

    The Qt VS Tools documentation talks about creating a .pro file and exporting the project in order to build on other platforms. This would seem to indicate that it is not possible to do what I'd like. But, I'm not sure whether this is a hard requirement or just reflects the state of things when the documentation was written.

    So, is it possible to mix the two and build a Qt app from Visual Studio for both Windows and Linux platforms? If so, can someone give me an outline of the steps to follow to achieve this?

    Many Thanks


  • Moderators

    Hi @D-Shinaberry, and welcome!

    I don't know if this is possible, so I'll let someone else reply. If you don't get any responses here within a week, try subscribing to the Interest mailing list and asking there. Qt Company engineers are active on that list.



  • Hi,

    is it possible to mix the two and build a Qt app from Visual Studio for both Windows and Linux platforms?

    Short answer is no, not yet. But it will be in relative short order. We’re planning on expanding the existing Qt/MSBuild targets so that they can also be used for cross-compilation. This will allow creating Qt-enabled MSVC projects that target “linux” (read: an SSH -accessible compilation server with GNU toolchain).

    At the moment, the plan is to release this new feature by the summer of 2020.

    Regards,
    --Miguel Costa


  • Lifetime Qt Champion

    @micosta

    This will allow creating Qt-enabled MSVC projects that target “linux” (read: an SSH -accessible compilation server with GNU toolchain).

    Wow. That is not even possible with Creator ATM, though there is a suggestion open for long time: QTCREATORBUG-16246

    Regards



  • Quick update: we've just added a post on the Qt blog about this topic.
    Please check it out and feel free to leave any comments/questions/suggestions there.

    Regards,
    --Miguel Costa



  • @micosta as you mentioned above, the plan to having a release in this summer, which supports QT development Linux application on VS - windows platform. Any update on this?


Log in to reply