Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Compile the Qt project in windows
Qt 6.11 is out! See what's new in the release blog

Compile the Qt project in windows

Scheduled Pinned Locked Moved General and Desktop
8 Posts 5 Posters 7.9k 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    Hello,
    I am new to QT development.
    I have run the qmake command to compile my Qt project.

    qmake -o makefile myfirst.pro

    It works well and Makefile, Makefile.Debug and Makefile.release also created in the folder.
    Then I tried to compile the project using make command.

    make makefile myfirst.pro

    but it gives this error.

    'make' is not recognized as an internal or external command,
    operable program or batch file.

    it would be great if someone can helpme

    Thank you.

    1 Reply Last reply
    0
    • G Offline
      G Offline
      GentooXativa
      wrote on last edited by
      #2

      You should use mingw32-make on windows if you are using the console.

      edit: to correct the make executable name

      Jose Vicente Giner Sanchez - Senior Mobile Developer

      www.gigigo.com

      C/ Dr. Zamenhof 36bis, 1ºA 28027 Madrid
      T: +34 917431436

      1 Reply Last reply
      0
      • ? Offline
        ? Offline
        A Former User
        wrote on last edited by
        #3

        Also you don't have to give the .pro file name to make, execute as

        mingw32-make makefile

        1 Reply Last reply
        0
        • ? Offline
          ? Offline
          A Former User
          wrote on last edited by
          #4

          One more idea is to have a visual studio plugin installed for Qt in your windows machine. By this way you can create your Qt project from visual studio and it willl be having .sln file that you can compile using your standard way.
          It helped me a lot for my build automization point of view as well.

          Might not fit for your current problem , but it is very good addin for future.

          Note :- Even you can export .pro file from that plugin also , so that moving across the plattform will not be a big deal.

          1 Reply Last reply
          0
          • ? Offline
            ? Offline
            A Former User
            wrote on last edited by
            #5

            Thank you all. I successfully compile the project. [solved]

            1 Reply Last reply
            0
            • ? Offline
              ? Offline
              A Former User
              wrote on last edited by
              #6

              If your problem is solved then please change the post by prefixing it with [SOLVED]

              1 Reply Last reply
              0
              • ? Offline
                ? Offline
                A Former User
                wrote on last edited by
                #7

                no the solved should be infront of the topic e.g.
                [Solved] compile the Qt project in windows

                1 Reply Last reply
                0
                • ? Offline
                  ? Offline
                  A Former User
                  wrote on last edited by
                  #8

                  I mean same thing only.

                  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
                  • Unsolved