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?

Windows and mac development environment setup and sync?

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
7 Posts 4 Posters 1.1k Views 1 Watching
  • 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 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.

    jsulmJ 1 Reply Last reply
    0
    • T Taytoo

      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.

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on 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
      1
      • jsulmJ jsulm

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

        artwawA 1 Reply Last reply
        1
        • T Taytoo

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

          artwawA Offline
          artwawA Offline
          artwaw
          wrote on 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
          1
          • VRoninV Offline
            VRoninV Offline
            VRonin
            wrote on 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
            • artwawA artwaw

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

              artwawA 1 Reply Last reply
              0
              • T Taytoo

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

                artwawA Offline
                artwawA Offline
                artwaw
                wrote on 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

                • Login

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