Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Install Qt v4.7.2 with visual studio 2010

Install Qt v4.7.2 with visual studio 2010

Scheduled Pinned Locked Moved Installation and Deployment
7 Posts 3 Posters 9.8k 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.
  • J Offline
    J Offline
    john s
    wrote on last edited by
    #1

    Hello,

    I am a beginner in using Qt and I am using windows7 (64bit), with visual studio 2010 (SP3) and win32 command prompt.I have download the source code for version Qt-4.7.2.I have unzipped the source code in this directory C:\Qt\source, and I have create a bin file to take the results in this directory
    C:\Qt\bin. In the command prompt opened by vs2010 I type:

    C:\Qt\source>configure -webkit -debug-and-release -nomake examples -nomake demos -prefix

    And I get this message: Unample to detect the platform from enviroment. Use -platform command linearargument or set the QMAKESPEC enviroment variable and run configure again

    What must I change in my writings, and how the command PATH is used?
    If someone installed Qt recently I hope could help me
    Thanks

    1 Reply Last reply
    0
    • K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

      What do you mean with following sentence?
      [quote author="john s" date="1304461631"]I have create a bin file to take the results in this directory
      C:\Qt\bin. [/quote]

      The command line
      [quote author="john s" date="1304461631"]
      C:\Qt\source>configure -webkit -debug-and-release -nomake examples -nomake demos -prefix
      [/quote]

      should probably read
      @C:\Qt\source>configure -webkit -debug-and-release -nomake examples -nomake demos -prefix c:\Qt\bin @

      However, is the compiler directory set in the environment path?

      Vote the answer(s) that helped you to solve your issue(s)

      1 Reply Last reply
      0
      • J Offline
        J Offline
        john s
        wrote on last edited by
        #3

        Yes, the directory is set in the invironment path but now I have problem in using nmake. To understand what I have done, I will show you a review of my steps in this link http://thomasstockx.blogspot.com/2011/03/qt-472-in-visual-studio-2010.html?showComment=1304494077571#c4984020789278180571

        Until step 11 everything is fine, but then the procedure is stoped and I get this message:
        Creating qmake...
        execute:File or path is not found (nmake)
        execute:File or path is not found (nmake)
        Cleaning qmake failed,return code -1

        Doyou know how to solve this?

        thanks in advance

        1 Reply Last reply
        0
        • K Offline
          K Offline
          koahnig
          wrote on last edited by
          #4

          What does happen, if you run nmake instead of configure?

          Vote the answer(s) that helped you to solve your issue(s)

          1 Reply Last reply
          0
          • J Offline
            J Offline
            john s
            wrote on last edited by
            #5

            When I type nmake in the command prompt it says that: nmake is not recognized as internal or external command or executable program.
            Are there any steps to intall and use nmake?

            1 Reply Last reply
            0
            • K Offline
              K Offline
              koahnig
              wrote on last edited by
              #6

              nmake is part of visual studio and it is installed together with visual studio. You should find it in the directory where you have installed vc.
              I guess there is still a problem and the vc installation directory is not part of your "path" setting. Call the command "path" on the prompt and see if the installation directory is really set in your environment.
              However, this is all I can help you. I am using an older visual studio version. So, if there are differences to MSVC 2010 I cannot know.

              Vote the answer(s) that helped you to solve your issue(s)

              1 Reply Last reply
              0
              • ZlatomirZ Offline
                ZlatomirZ Offline
                Zlatomir
                wrote on last edited by
                #7

                Use the shortcut they provide for suck things: Start -> All Programs -> Microsoft Visual Studio 2010 -> Visual Studio Tools -> Visual Studio Command Prompt (2010)

                https://forum.qt.io/category/41/romanian

                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