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. Qt installation (with vs10)

Qt installation (with vs10)

Scheduled Pinned Locked Moved Installation and Deployment
37 Posts 2 Posters 27.3k 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.
  • G Offline
    G Offline
    goetz
    wrote on last edited by
    #23

    I don't know for the note. If you don't have MinGW or a bash or such installed, you probably don't need to take care of it.

    I never set a PATH variable when I compiled on Windows. Just start the Visual Studio Command prompt and enter:

    @
    cd C:\Qt\4.7.0\qt-everywhere-opensource-src-4.7.0
    .\configure.exe
    nmake
    @

    And then have a cup of coffee or better go for lunch or dinner - it takes a looooong time until everything is compiled :-)

    http://www.catb.org/~esr/faqs/smart-questions.html

    1 Reply Last reply
    0
    • J Offline
      J Offline
      jigfjifd
      wrote on last edited by
      #24

      Hello,
      so I typed it and here is the result :
      @
      C:\Qt\4.7.0\qt-everywhere-opensource-src-4.7.0>configure.exe
      Unable to detect the platform from environment. Use -platform command lineargument or set the QMAKES
      PEC environment variable and run configure again
      See the README file for a list of supported operating systems and compilers.
      Usage: (<<followed by hundreds of lines explaining its complicated usage>>)

      C:\Qt\4.7.0\qt-everywhere-opensource-src-4.7.0>@

      The default options seem to have failed ("Unable to detect the platform") and the usage of this executable seems quite complicated, so maybe you can help me once more :)

      1 Reply Last reply
      0
      • G Offline
        G Offline
        goetz
        wrote on last edited by
        #25

        @.\configure.exe -platform win32-msvc2010 @

        http://www.catb.org/~esr/faqs/smart-questions.html

        1 Reply Last reply
        0
        • J Offline
          J Offline
          jigfjifd
          wrote on last edited by
          #26

          thanks, it's working so far.

          1 Reply Last reply
          0
          • G Offline
            G Offline
            goetz
            wrote on last edited by
            #27

            Seems like you started cmd.exe, you must start the Visual Studio Command Prompt (in VS2005/2008 it's somewhere in the Start Menu / All Programs / MS Visual Studio 200x / as far a I remember); you'll have to look around...

            http://www.catb.org/~esr/faqs/smart-questions.html

            1 Reply Last reply
            0
            • J Offline
              J Offline
              jigfjifd
              wrote on last edited by
              #28

              yes you're absolutely right, I noticed a few seconds later and edited my post. Sorry for the stupid question

              1 Reply Last reply
              0
              • J Offline
                J Offline
                jigfjifd
                wrote on last edited by
                #29

                so...
                the compilation is done (finally!).
                What do I have to do now to link the framework to the vs add in, and are there any files that I don't need anymore ?

                1 Reply Last reply
                0
                • G Offline
                  G Offline
                  goetz
                  wrote on last edited by
                  #30

                  The VS addin does work independently from your Qt version. Just run the installer. You then must make your self compiled Qt visible to the plugin, there is an entry in the new Qt menu of Visual Studio - just look around. Some more info on the addin can be found "here":http://doc.qt.nokia.com/vs-add-in-1.0/index.html

                  Just play around :-)

                  http://www.catb.org/~esr/faqs/smart-questions.html

                  1 Reply Last reply
                  0
                  • J Offline
                    J Offline
                    jigfjifd
                    wrote on last edited by
                    #31

                    Hello again,

                    Can you give me a more detailed answer please ? I've been trying to look and play around but with no result.

                    • I don't really understand why you ask me to run the 'installer'.
                      I thought that "That's all. Qt is now installed.", once I have done nmake.
                    • I don't really understand either how to build a qt application from vs, it still seems not to be working.
                    • Finally, I didn't get which files or directories are part of the installation/compilation process and can be deleted.

                    Thanks.

                    1 Reply Last reply
                    0
                    • J Offline
                      J Offline
                      jigfjifd
                      wrote on last edited by
                      #32

                      I have added the path C:\Qt\4.7.0 to the qt options in the add in.
                      The qt keywords are not recognized by VS.

                      1 Reply Last reply
                      0
                      • G Offline
                        G Offline
                        goetz
                        wrote on last edited by
                        #33

                        What I meant is that you should run the installer for the Visual Studio AddIn, which is completely independent from your Qt library installations (may it be a precompiled or a self compiled one). You can even have multiple versions of the Qt libraries installed and choose which one will be used for your project.

                        As far as I understood from your previous posts, you should add C:\Qt\4.7.0\qt-everywhere-opensource-src-4.7.0 to the addin. It's in "Extras" menu (German version, the menu between "Debug" and "Windows"), then "Options...", then choose Qt.

                        Then you should follow the steps of the Getting Started guide of the "VS Addin Documentation":http://doc.qt.nokia.com/vs-add-in-1.0/index.html

                        http://www.catb.org/~esr/faqs/smart-questions.html

                        1 Reply Last reply
                        0
                        • J Offline
                          J Offline
                          jigfjifd
                          wrote on last edited by
                          #34

                          I've changed C:\Qt\4.7.0\qt-everywhere-opensource-src-4.7.0 to C:\Qt\4.7.0.
                          I've added C:\Qt\4.7.0 to the add in (which means that in the qt options of the vc addin, in the versions tab, I have a line called : version 4.7.0, path C:\Qt\4.7.0)
                          It's still not working.
                          The first line of my program is #include <QtGui/QApplication>, but it says the file can't be found.
                          Yet I have a file called qapplication.h in C:\Qt\4.7.0\include\QtGui, which contains #include "../../src/gui/kernel/qapplication.h", and I have indeed a file called qapplication.h in C:\Qt\4.7.0\src\gui\kernel.

                          1 Reply Last reply
                          0
                          • G Offline
                            G Offline
                            goetz
                            wrote on last edited by
                            #35

                            Did you set up your project using the wizard from "new project" / Qt appplication? If not you must add :\Qt\4.7.0\include to the include path of your project. The wizard adds that for you automatically, AFAIK.

                            http://www.catb.org/~esr/faqs/smart-questions.html

                            1 Reply Last reply
                            0
                            • J Offline
                              J Offline
                              jigfjifd
                              wrote on last edited by
                              #36

                              The project had been created with the wizard before the framework compilation which is probably why it didn't work.
                              I created a new project, and it works now.
                              Thanks a lot for your help.

                              I have one last question that hasn't been answered yet. Which files/directories were only part of the compilation process and can hence be deleted ?
                              Thanks.

                              1 Reply Last reply
                              0
                              • G Offline
                                G Offline
                                goetz
                                wrote on last edited by
                                #37

                                For the previously created project: As far as I know you can set the Qt version to be used afterwards, that should set the appropriate include paths.

                                You probably can delete the .cpp files. All of the .h files are definitely needed. But I won't do that. The disk space you gain is not that much and it's not worth the effort, IMHO. If you really want you can delete the examples subdir, but I won't do that either, because it's a good source to sneak how the trolls do certain things :-)

                                http://www.catb.org/~esr/faqs/smart-questions.html

                                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