Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct


    Qt World Summit: Early-Bird Tickets

    Install Qt v4.7.2 with visual studio 2010

    Installation and Deployment
    3
    7
    9393
    Loading More Posts
    • 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
      john s last edited by

      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 Reply Quote 0
      • K
        koahnig last edited by

        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 Reply Quote 0
        • J
          john s last edited by

          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 Reply Quote 0
          • K
            koahnig last edited by

            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 Reply Quote 0
            • J
              john s last edited by

              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 Reply Quote 0
              • K
                koahnig last edited by

                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 Reply Quote 0
                • Zlatomir
                  Zlatomir last edited by

                  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 Reply Quote 0
                  • First post
                    Last post