Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Windows and mac development environment setup and sync?
Forum Update on Monday, May 27th 2025

Windows and mac development environment setup and sync?

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
7 Posts 4 Posters 515 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.
  • T Offline
    T Offline
    Taytoo
    wrote on 19 Sept 2024, 14:09 last edited by
    #1

    Working on a cross platform desktop software for mac and windows. Actively developing in Visual Studio w/Qt Extension, since I prefer VS and whole project is setup using Visual studio projects (not .pro files). Code is stored in a git repo.

    Now I need to compile and test on macOS - and also add some mac specific API calls. What's the best way to setup mac environment so I can add mac specific code/files, compile and test? After I'm done I'd like to check-in changes into git and sync my primary windows dev environment. That way I can keep doing primary development on Windows.

    J 1 Reply Last reply 19 Sept 2024, 14:14
    0
    • T Taytoo
      19 Sept 2024, 14:09

      Working on a cross platform desktop software for mac and windows. Actively developing in Visual Studio w/Qt Extension, since I prefer VS and whole project is setup using Visual studio projects (not .pro files). Code is stored in a git repo.

      Now I need to compile and test on macOS - and also add some mac specific API calls. What's the best way to setup mac environment so I can add mac specific code/files, compile and test? After I'm done I'd like to check-in changes into git and sync my primary windows dev environment. That way I can keep doing primary development on Windows.

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 19 Sept 2024, 14:14 last edited by
      #2

      @Taytoo said in Windows and mac development environment setup and sync?:

      What's the best way to setup mac environment so I can add mac specific code/files, compile and test?

      I would suggest to first switch to CMake - it is multi-platform, Visual Studio also supports it. I don't think you can use Visual Studio project/solution files on Mac. With CMake you can do things for specific platforms without breaking other platform builds.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      T 1 Reply Last reply 19 Sept 2024, 15:31
      1
      • J jsulm
        19 Sept 2024, 14:14

        @Taytoo said in Windows and mac development environment setup and sync?:

        What's the best way to setup mac environment so I can add mac specific code/files, compile and test?

        I would suggest to first switch to CMake - it is multi-platform, Visual Studio also supports it. I don't think you can use Visual Studio project/solution files on Mac. With CMake you can do things for specific platforms without breaking other platform builds.

        T Offline
        T Offline
        Taytoo
        wrote on 19 Sept 2024, 15:31 last edited by
        #3

        @jsulm looks like I can convert VS project files into .pro files. I guess if I check those into git repo, then I can pull it on Qt Creator in MacOS, make changes, compile code and push changes back into git.

        A 1 Reply Last reply 19 Sept 2024, 15:42
        1
        • T Taytoo
          19 Sept 2024, 15:31

          @jsulm looks like I can convert VS project files into .pro files. I guess if I check those into git repo, then I can pull it on Qt Creator in MacOS, make changes, compile code and push changes back into git.

          A Offline
          A Offline
          artwaw
          wrote on 19 Sept 2024, 15:42 last edited by
          #4

          @Taytoo qmake is in maintenance mode, do yourself a favour and don't use it? cmake is the way.

          For more information please re-read.

          Kind Regards,
          Artur

          T 1 Reply Last reply 21 Sept 2024, 10:10
          1
          • V Offline
            V Offline
            VRonin
            wrote on 19 Sept 2024, 16:21 last edited by VRonin
            #5

            Visual studio natively supports CMake so if you use that one you don't need to switch IDE: https://learn.microsoft.com/en-us/cpp/build/cmake-projects-in-visual-studio

            "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
            ~Napoleon Bonaparte

            On a crusade to banish setIndexWidget() from the holy land of Qt

            1 Reply Last reply
            1
            • A artwaw
              19 Sept 2024, 15:42

              @Taytoo qmake is in maintenance mode, do yourself a favour and don't use it? cmake is the way.

              T Offline
              T Offline
              Taytoo
              wrote on 21 Sept 2024, 10:10 last edited by
              #6

              @artwaw said in Windows and mac development environment setup and sync?:

              @Taytoo qmake is in maintenance mode, do yourself a favour and don't use it? cmake is the way.

              I didnt know that VS was using qmake. Is there a guide on how to switch VS QT project to cmake?

              A 1 Reply Last reply 22 Sept 2024, 12:23
              0
              • T Taytoo
                21 Sept 2024, 10:10

                @artwaw said in Windows and mac development environment setup and sync?:

                @Taytoo qmake is in maintenance mode, do yourself a favour and don't use it? cmake is the way.

                I didnt know that VS was using qmake. Is there a guide on how to switch VS QT project to cmake?

                A Offline
                A Offline
                artwaw
                wrote on 22 Sept 2024, 12:23 last edited by
                #7

                @Taytoo said in Windows and mac development environment setup and sync?:

                I didnt know that VS was using qmake.

                I don't know what VS is using - not my toolset. But you mentioned .pro files previously, those are for qmake and that's what I was referring to.

                https://cmake.org/cmake/help/book/mastering-cmake/chapter/Converting Existing Systems To CMake.html#converting-windows-based-workspaces

                For more information please re-read.

                Kind Regards,
                Artur

                1 Reply Last reply
                0

                1/7

                19 Sept 2024, 14:09

                • Login

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