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 install lastest version qt in visual studio 2010 sp1

how to install lastest version qt in visual studio 2010 sp1

Scheduled Pinned Locked Moved Unsolved General and Desktop
9 Posts 5 Posters 1.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.
  • N Offline
    N Offline
    nguyenphongmmo
    wrote on 29 Nov 2018, 15:18 last edited by
    #1

    I want to install qt v5.6.x or later in vs 2010.
    But there are not a few guidelines. Can you guide me to do this?
    Thank you so much !!!!

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mrjj
      Lifetime Qt Champion
      wrote on 29 Nov 2018, 15:25 last edited by mrjj
      #2

      Hi and welcome to the forums
      You can get 5.4 for VS2010.
      else you have to compile Qt yourself and VS2010 is OLD now so you might run into issues. Newer Qt needs better compiler like 2013/2015/17

      Why cant you just download new visual studio ?

      Anyway, if you really must use vs2010
      http://doc.qt.io/qt-5/build-sources.html

      Make sure to read it slowly. If you haste it, it surely will fail.
      Make sure to install all requirements for your platform.
      And only try Qt5.6 or 5.9 Qt5.5 ( seems to be the last to support it)
      as 5.11+ wont like vs2010.

      1 Reply Last reply
      0
      • N Offline
        N Offline
        nguyenphongmmo
        wrote on 29 Nov 2018, 15:33 last edited by
        #3

        thank you so much

        M 1 Reply Last reply 29 Nov 2018, 15:54
        0
        • N nguyenphongmmo
          29 Nov 2018, 15:33

          thank you so much

          M Offline
          M Offline
          mrjj
          Lifetime Qt Champion
          wrote on 29 Nov 2018, 15:54 last edited by
          #4

          @nguyenphongmmo
          Can i ask why it must be 2010 ?
          Since you can now use the newest for free?

          J 1 Reply Last reply 29 Nov 2018, 16:34
          0
          • M mrjj
            29 Nov 2018, 15:54

            @nguyenphongmmo
            Can i ask why it must be 2010 ?
            Since you can now use the newest for free?

            J Offline
            J Offline
            JonB
            wrote on 29 Nov 2018, 16:34 last edited by JonB
            #5

            @mrjj
            Just for the record: I use VS 2010. I tried upgrading to 2017. After it took 2 days to install (yes, two days, day 1 was just Windows installing all the patches it needs to prepare for VS 2017, even though I keep my Windows Update up-to-date) , I took one look at the fact that VS had changed every icon in its UI from helpful colored to the "new" flat, black style so you struggle to tell one from another, not to mention the 10TB disk usage, and promptly uninstalled. VS 2010 works without a new PC or a new pair of eyes. (Though I do not doubt 2017 may be better for Qt development, so wouldn't want to dissuade the OP.) Just saying... :)

            M 1 Reply Last reply 29 Nov 2018, 16:59
            0
            • J JonB
              29 Nov 2018, 16:34

              @mrjj
              Just for the record: I use VS 2010. I tried upgrading to 2017. After it took 2 days to install (yes, two days, day 1 was just Windows installing all the patches it needs to prepare for VS 2017, even though I keep my Windows Update up-to-date) , I took one look at the fact that VS had changed every icon in its UI from helpful colored to the "new" flat, black style so you struggle to tell one from another, not to mention the 10TB disk usage, and promptly uninstalled. VS 2010 works without a new PC or a new pair of eyes. (Though I do not doubt 2017 may be better for Qt development, so wouldn't want to dissuade the OP.) Just saying... :)

              M Offline
              M Offline
              mrjj
              Lifetime Qt Champion
              wrote on 29 Nov 2018, 16:59 last edited by
              #6

              @JonB
              Yep the new "modern"/flat/uninspired style is also not my taste. I cant seem to get used to it.
              You can reduce its size with the new installer but yes, it very fat and
              intrusive but its also one of the best editors around. ( in terms of features)

              That said, VS 2010 compiler lacks some of the modern c++
              features and as such cannot be used in newer Qt. ( as far as i know)

              so i use Build Tools for Visual Studio 2017 and then Creator as IDE to avoid all the fat.
              its around 4GB.

              1 Reply Last reply
              0
              • C Offline
                C Offline
                Chris Kawa
                Lifetime Qt Champion
                wrote on 29 Nov 2018, 17:00 last edited by Chris Kawa
                #7

                Qt versions >= 5.6 use many C++11 features (which is conservative on its own in 2018) and simply won't compile on VS2010. You would have to do extensive patching or disable many modules. Compiler in VS2010 doesn't really support even C++03, not to mention horrible bugs in stl implementation and the compiler itself.

                @JonB Don't you think that staying on an outdated (in every sense of that word) technology because you don't like icon colors is a bit weak argument? My VS2017 installation is about 2.2GB in size, containing only desktop C++ workload, so maybe you just got trigger happy with the options in the installer and installed every possible component (C#, F#, game engines, whole .Net stack etc.)?
                Seriously, if icons are the only thing holding you back I would seriously reconsider. Compiler in VS2010 is just ancient. Nothing but problems using it in 2018.

                J 1 Reply Last reply 29 Nov 2018, 17:24
                2
                • C Chris Kawa
                  29 Nov 2018, 17:00

                  Qt versions >= 5.6 use many C++11 features (which is conservative on its own in 2018) and simply won't compile on VS2010. You would have to do extensive patching or disable many modules. Compiler in VS2010 doesn't really support even C++03, not to mention horrible bugs in stl implementation and the compiler itself.

                  @JonB Don't you think that staying on an outdated (in every sense of that word) technology because you don't like icon colors is a bit weak argument? My VS2017 installation is about 2.2GB in size, containing only desktop C++ workload, so maybe you just got trigger happy with the options in the installer and installed every possible component (C#, F#, game engines, whole .Net stack etc.)?
                  Seriously, if icons are the only thing holding you back I would seriously reconsider. Compiler in VS2010 is just ancient. Nothing but problems using it in 2018.

                  J Offline
                  J Offline
                  JonB
                  wrote on 29 Nov 2018, 17:24 last edited by JonB
                  #8

                  @Chris-Kawa
                  Obviously we don't want to make this a long one. The icons issue is not just me, there are lots of people I have spoken to & on the web who think they make the UI much harder now. We use VS 2010 mostly for C# & .NET, and for legacy non-C++11, with no problems at all, so our experience is doubtless different from yours. I did aim my remarks at @mrjj who asked about 2010 and knows me/my sense of humor, and I did put in a smiley :) But to be clear, as I said I would not truly want to dissuade the OP, I do accept that he would be best advised to move to a newer version of Qt and a newer version of VS.

                  1 Reply Last reply
                  0
                  • A Offline
                    A Offline
                    aha_1980
                    Lifetime Qt Champion
                    wrote on 29 Nov 2018, 18:27 last edited by
                    #9

                    Funny. Just today I set up a Qt 5.5.1 version with MSVC2010 support by the online installer. IIRC 5.5 is the last with prebuild binaries for MSVC2010.

                    I need this to still support a project that was started with Qt 4.8 long time ago. It uses QtScript and QtWebkit.

                    In the long run this will surely move to newer compilers and Qt versions, but for now I want to lift that project to Qt 5 first. After that is done and function is still ok, we will decide how to go further.

                    TLDR: there might always be reasons to use something older which has some drawbacks. But the new stuff has its perils too :)

                    Qt has to stay free or it will die.

                    1 Reply Last reply
                    1

                    1/9

                    29 Nov 2018, 15:18

                    • Login

                    • Login or register to search.
                    1 out of 9
                    • First post
                      1/9
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • Users
                    • Groups
                    • Search
                    • Get Qt Extensions
                    • Unsolved