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. Multi-project "Solution" in QT Creator (conversion form Visual Studio).
QtWS25 Last Chance

Multi-project "Solution" in QT Creator (conversion form Visual Studio).

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
10 Posts 5 Posters 557 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.
  • P Offline
    P Offline
    Perdrix
    wrote on 3 Aug 2024, 15:32 last edited by Perdrix 8 Mar 2024, 15:33
    #1

    Right now my application runs only on Windows. However I am getting closer to completing the code changes that should allow it to run under Linux and MacOS.

    With that in mind, I can't continue to use MS Visual Studio as the build environment.

    At present Visual Studio allows me to build all the parts of my application as separate "Projects" So I have a few projects that create static libraries, then a project for the GUI version of the application, the Command Line version, and the "Live" version. In addition there's a project to build test cases.

    When I want to build everything I just tell Visual Studio to build the solution and it sorts out the correct build order from the dependencies, and does it.

    Can I do this with Qt Creator? If so how to do so.

    Is there a neat tool to convert a Visual Studio Solution to use Qt Creator?

    Thanks
    David

    C 1 Reply Last reply 3 Aug 2024, 17:29
    0
    • P Perdrix
      3 Aug 2024, 15:32

      Right now my application runs only on Windows. However I am getting closer to completing the code changes that should allow it to run under Linux and MacOS.

      With that in mind, I can't continue to use MS Visual Studio as the build environment.

      At present Visual Studio allows me to build all the parts of my application as separate "Projects" So I have a few projects that create static libraries, then a project for the GUI version of the application, the Command Line version, and the "Live" version. In addition there's a project to build test cases.

      When I want to build everything I just tell Visual Studio to build the solution and it sorts out the correct build order from the dependencies, and does it.

      Can I do this with Qt Creator? If so how to do so.

      Is there a neat tool to convert a Visual Studio Solution to use Qt Creator?

      Thanks
      David

      C Offline
      C Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on 3 Aug 2024, 17:29 last edited by
      #2

      @Perdrix said in Multi-project "Solution" in QT Creator (conversion form Visual Studio).:

      Can I do this with Qt Creator?

      I don't see what an IDE has to do with build dependencies

      If so how to do so.

      Use a proper build system like cmake, define the correct dependencies (e.g. through target_link_libraries()) and you're done.

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      1 Reply Last reply
      2
      • C Offline
        C Offline
        Chris Kawa
        Lifetime Qt Champion
        wrote on 3 Aug 2024, 17:37 last edited by
        #3

        Both Visual Studio and Qt Creator are just IDEs. A "solution" and "project" are concepts of a build system, particularly of MSBuild, which is used by default in Visual Studio. It's the build system that handles dependencies and build order, not the IDE.

        MSBuild is not cross platform, so you need to switch to something that is. A popular choice is CMake, which is also the default build system used by Qt itself starting from Qt6. While MSBuild uses .sln and .vcproj files for its solution and projects, CMake does not have a notion of solution, just a tree-like hierarchy of projects (a top level project is kinda solution equivalent).

        Since CMake is a very broadly used build system most IDEs support it, including both Qt Creator and Visual Studio, so you don't really need to switch IDEs if you don't want to.

        1 Reply Last reply
        2
        • P Offline
          P Offline
          Perdrix
          wrote on 4 Aug 2024, 05:27 last edited by
          #4

          So I have to go back to the stone age and build make files by hand rather that have the IDE do that for me.

          Surely there must be some automation around this?

          1 Reply Last reply
          0
          • A Offline
            A Offline
            Axel Spoerl
            Moderators
            wrote on 4 Aug 2024, 06:10 last edited by
            #5

            Hi David,
            No Makefiles by hand! CMake is the right solution for deep sky stacker.
            Here is a tool that I often use, it should do most of the work for you. However, you might want to polish the CMake files manually.
            Cheers
            Axel

            Software Engineer
            The Qt Company, Oslo

            P 1 Reply Last reply 4 Aug 2024, 08:24
            4
            • A Axel Spoerl
              4 Aug 2024, 06:10

              Hi David,
              No Makefiles by hand! CMake is the right solution for deep sky stacker.
              Here is a tool that I often use, it should do most of the work for you. However, you might want to polish the CMake files manually.
              Cheers
              Axel

              P Offline
              P Offline
              Perdrix
              wrote on 4 Aug 2024, 08:24 last edited by Perdrix 8 Apr 2024, 08:27
              #6

              @Axel-Spoerl said in Multi-project "Solution" in QT Creator (conversion form Visual Studio).:

              Hi David,
              No Makefiles by hand! CMake is the right solution for deep sky stacker.
              Here is a tool that I often use, it should do most of the work for you. However, you might want to polish the CMake files manually.
              Cheers
              Axel

              Axel, You are a star ... Huge thanks for the pointer.

              Is there an equivalent one for qmake?

              S 1 Reply Last reply 4 Aug 2024, 08:39
              1
              • P Perdrix
                4 Aug 2024, 08:24

                @Axel-Spoerl said in Multi-project "Solution" in QT Creator (conversion form Visual Studio).:

                Hi David,
                No Makefiles by hand! CMake is the right solution for deep sky stacker.
                Here is a tool that I often use, it should do most of the work for you. However, you might want to polish the CMake files manually.
                Cheers
                Axel

                Axel, You are a star ... Huge thanks for the pointer.

                Is there an equivalent one for qmake?

                S Offline
                S Offline
                SGaist
                Lifetime Qt Champion
                wrote on 4 Aug 2024, 08:39 last edited by
                #7

                @Perdrix hi,

                qmake has reach its EOL as of Qt 6. You really should go with cmake as it has now also used as the Qt build system.

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                1 Reply Last reply
                2
                • P Offline
                  P Offline
                  Perdrix
                  wrote on 4 Aug 2024, 12:28 last edited by
                  #8

                  OK, I wasn't aware you'd deprecated qmake. Thanks for clarification

                  S 1 Reply Last reply 4 Aug 2024, 15:00
                  0
                  • P Perdrix
                    4 Aug 2024, 12:28

                    OK, I wasn't aware you'd deprecated qmake. Thanks for clarification

                    S Offline
                    S Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on 4 Aug 2024, 15:00 last edited by
                    #9

                    @Perdrix said in Multi-project "Solution" in QT Creator (conversion form Visual Studio).:

                    OK, I wasn't aware you'd deprecated qmake. Thanks for clarification

                    I don't have such power 😁

                    Interested in AI ? www.idiap.ch
                    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                    P 1 Reply Last reply 4 Aug 2024, 15:10
                    0
                    • S SGaist
                      4 Aug 2024, 15:00

                      @Perdrix said in Multi-project "Solution" in QT Creator (conversion form Visual Studio).:

                      OK, I wasn't aware you'd deprecated qmake. Thanks for clarification

                      I don't have such power 😁

                      P Offline
                      P Offline
                      Perdrix
                      wrote on 4 Aug 2024, 15:10 last edited by
                      #10

                      @SGaist said in Multi-project "Solution" in QT Creator (conversion form Visual Studio).:

                      I don't have such power 😁

                      ROFL

                      1 Reply Last reply
                      0

                      4/10

                      4 Aug 2024, 05:27

                      • Login

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