Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Can I mix Qt VS Tools with Visual Studio's "Linux development with C++" to build a Qt app on Linux?

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

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
10 Posts 5 Posters 1.5k 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.
  • D Offline
    D Offline
    D.Shinaberry
    wrote on 13 Jan 2020, 16:14 last edited by
    #1

    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

    J 1 Reply Last reply 15 Jan 2020, 03:21
    0
    • D D.Shinaberry
      13 Jan 2020, 16:14

      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

      J Offline
      J Offline
      JKSH
      Moderators
      wrote on 15 Jan 2020, 03:21 last edited by
      #2

      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.

      Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

      1 Reply Last reply
      2
      • M Offline
        M Offline
        micosta
        wrote on 3 Feb 2020, 10:21 last edited by
        #3

        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

        A 1 Reply Last reply 3 Feb 2020, 10:28
        3
        • M micosta
          3 Feb 2020, 10:21

          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

          A Offline
          A Offline
          aha_1980
          Lifetime Qt Champion
          wrote on 3 Feb 2020, 10:28 last edited by aha_1980 2 Mar 2020, 10:30
          #4

          @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

          Qt has to stay free or it will die.

          1 Reply Last reply
          0
          • M Offline
            M Offline
            micosta
            wrote on 10 Feb 2020, 15:30 last edited by
            #5

            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

            1 Reply Last reply
            3
            • F Offline
              F Offline
              Frank Zhang
              wrote on 6 Aug 2020, 00:39 last edited by
              #6

              @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?

              1 Reply Last reply
              0
              • M Offline
                M Offline
                micosta
                wrote on 25 Sept 2020, 07:15 last edited by micosta
                #7

                @D-Shinaberry said in Can I mix Qt VS Tools with Visual Studio's "Linux development with C++" to build a Qt app on Linux?:

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

                Yes!

                Quick update: we've now released version 2.6 of the Qt Visual Studio Tools; this new version allows Qt/MSBuild projects to be built both for Windows (msvc) and Linux (VS Linux development workload). We've posted part 1 of an extensive how-to that details the steps needed to create from scratch a multi-platform Qt project in Visual Studio (part 1) (part 2).

                Let us know if you have any comments/questions/suggestions.

                1 Reply Last reply
                2
                • F Offline
                  F Offline
                  Frank Zhang
                  wrote on 15 Oct 2020, 03:51 last edited by
                  #8

                  I cannot build my QT project and what I can see here is,
                  Capture.JPG

                  and even if I remove all "windows" targets, it's still not working.

                  1 Reply Last reply
                  0
                  • F Offline
                    F Offline
                    Frank Zhang
                    wrote on 15 Oct 2020, 04:18 last edited by
                    #9

                    ![0_1602733978371_1edbfefc-4b76-401a-951d-36ed0dbfc77b-image.png](Uploading 100%)

                    the picture above is showing some resource cannot be loaded correctly.

                    1 Reply Last reply
                    0
                    • F Offline
                      F Offline
                      Frank Zhang
                      wrote on 15 Oct 2020, 05:07 last edited by
                      #10

                      23851487-db88-461f-8765-3403181dc29c-image.png

                      Just attached the picture again.

                      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