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
Forum Updated to NodeBB v4.3 + New Features

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.5k 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.
  • serkan_trS Offline
    serkan_trS Offline
    serkan_tr
    wrote on 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.

    jsulmJ 1 Reply Last reply
    0
    • serkan_trS serkan_tr

      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.

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

      serkan_trS 1 Reply Last reply
      0
      • jsulmJ jsulm

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

        serkan_trS Offline
        serkan_trS Offline
        serkan_tr
        wrote on last edited by serkan_tr
        #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 !
        
        jsulmJ 1 Reply Last reply
        0
        • serkan_trS serkan_tr

          @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 !
          
          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

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

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

          serkan_trS 1 Reply Last reply
          0
          • jsulmJ jsulm

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

            serkan_trS Offline
            serkan_trS Offline
            serkan_tr
            wrote on last edited by
            #5

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

            jsulmJ 1 Reply Last reply
            0
            • serkan_trS serkan_tr

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

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

              serkan_trS 1 Reply Last reply
              0
              • jsulmJ jsulm

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

                serkan_trS Offline
                serkan_trS Offline
                serkan_tr
                wrote on last edited by
                #7

                @jsulm
                thank you very much, it worked

                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