Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to build the hello world apps in QT 4.7.4 with command line

How to build the hello world apps in QT 4.7.4 with command line

Scheduled Pinned Locked Moved General and Desktop
4 Posts 3 Posters 3.0k 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.
  • D Offline
    D Offline
    deepak_smcet
    wrote on last edited by
    #1

    hello all,

    i installed the QT 4.7.4 version on my windows xp machine. and i am trying out the hello world sample.
    the application works fine with the QTcreator. but i want to compile and link with command line.
    i have a tutorial that goes like this to make exe on windows

    go to the source directory.

    to create a platform-independent project file:

    qmake -project

    then to create a platform-specific makefile from the project file.

    qmake hello.pro

    now to build the program type

    make

    the above command does not work. i mean it does not recognize it as internal or external command

    any clue??

    regards
    Deepak

    1 Reply Last reply
    0
    • V Offline
      V Offline
      vsorokin
      wrote on last edited by
      #2

      If you using msvc try nmake command (necessarily from Visual Studio Command Prompt)
      If you using mingw try mingw32-make command (You should be sure, that you have path to mingw in your PATH variable)

      --
      Vasiliy

      1 Reply Last reply
      0
      • D Offline
        D Offline
        dangelog
        wrote on last edited by
        #3

        You probably want mingw32-make if using mingw, or nmake if using MSVC.

        Software Engineer
        KDAB (UK) Ltd., a KDAB Group company

        1 Reply Last reply
        0
        • D Offline
          D Offline
          deepak_smcet
          wrote on last edited by
          #4

          thanks you all.

          i got it working. i slightly modified my "qtenv2.bat" bat file in PATHTOQT to include visual studio things
          "call "C:\Program Files\Microsoft Visual Studio 9.0\VC\vcvarsall.bat" x86"

          regards
          Deepak

          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