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. How can I generate makefile from my cmake project instead of ninja
QtWS25 Last Chance

How can I generate makefile from my cmake project instead of ninja

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
7 Posts 2 Posters 2.3k 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.
  • S Offline
    S Offline
    serkan_tr
    wrote on 5 Jan 2023, 07:47 last edited by
    #1

    OS: Windows 10
    Qt Version: 5.15

    Hi,
    I want to build a project in Qt Creator application. When building this project with qmake
    I'm making a Makefile using the " QMAKE_PROJECT_DEPTH = 0 " command. but how can i do that in cmake file.
    When I build it with cmake it creates a Ninja file. I want makefile instead of ninja how can i doScreenshot (10).png

    I write "Makefile , Unix Makefiles, NMake Makefiles, MinGW Makefiles" in the CMAKE_GENERATOR section and it gives an error.

    It gives an error when you give it as an option.

    J 1 Reply Last reply 5 Jan 2023, 07:51
    0
    • S serkan_tr
      5 Jan 2023, 07:47

      OS: Windows 10
      Qt Version: 5.15

      Hi,
      I want to build a project in Qt Creator application. When building this project with qmake
      I'm making a Makefile using the " QMAKE_PROJECT_DEPTH = 0 " command. but how can i do that in cmake file.
      When I build it with cmake it creates a Ninja file. I want makefile instead of ninja how can i doScreenshot (10).png

      I write "Makefile , Unix Makefiles, NMake Makefiles, MinGW Makefiles" in the CMAKE_GENERATOR section and it gives an error.

      It gives an error when you give it as an option.

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 5 Jan 2023, 07:51 last edited by
      #2

      @serkan_tr Select your Kit. Go to "CMake Generator" -> "Change...". Change the "Generator" entry there.

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

      S 1 Reply Last reply 5 Jan 2023, 08:17
      0
      • J jsulm
        5 Jan 2023, 07:51

        @serkan_tr Select your Kit. Go to "CMake Generator" -> "Change...". Change the "Generator" entry there.

        S Offline
        S Offline
        serkan_tr
        wrote on 5 Jan 2023, 08:17 last edited by serkan_tr 1 May 2023, 08:28
        #3

        @jsulm
        Screenshot (11).png
        thanks, i changed this part like this
        CMAKE_GENERATOR was typing ninja and still ninja file was createdScreenshot (12).png

        No Cmake configuration found !
        
        J 1 Reply Last reply 5 Jan 2023, 08:41
        0
        • S serkan_tr
          5 Jan 2023, 08:17

          @jsulm
          Screenshot (11).png
          thanks, i changed this part like this
          CMAKE_GENERATOR was typing ninja and still ninja file was createdScreenshot (12).png

          No Cmake configuration found !
          
          J Offline
          J Offline
          jsulm
          Lifetime Qt Champion
          wrote on 5 Jan 2023, 08:41 last edited by
          #4

          @serkan_tr Why don't you try what I suggested?

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

          S 1 Reply Last reply 5 Jan 2023, 09:08
          0
          • J jsulm
            5 Jan 2023, 08:41

            @serkan_tr Why don't you try what I suggested?

            S Offline
            S Offline
            serkan_tr
            wrote on 5 Jan 2023, 09:08 last edited by
            #5

            @jsulm i did what you said
            kit configuration -> Cmake generator -> Generator -> Makefiles

            J 1 Reply Last reply 5 Jan 2023, 09:13
            0
            • S serkan_tr
              5 Jan 2023, 09:08

              @jsulm i did what you said
              kit configuration -> Cmake generator -> Generator -> Makefiles

              J Offline
              J Offline
              jsulm
              Lifetime Qt Champion
              wrote on 5 Jan 2023, 09:13 last edited by
              #6

              @serkan_tr After doing this - did you also do a complete rebuild (delete build folder, run CMake and build)?

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

              S 1 Reply Last reply 5 Jan 2023, 10:32
              0
              • J jsulm
                5 Jan 2023, 09:13

                @serkan_tr After doing this - did you also do a complete rebuild (delete build folder, run CMake and build)?

                S Offline
                S Offline
                serkan_tr
                wrote on 5 Jan 2023, 10:32 last edited by
                #7

                @jsulm
                thank you very much, it worked

                1 Reply Last reply
                0

                2/7

                5 Jan 2023, 07:51

                5 unread
                • Login

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