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. Using Qt with Visual C++ Compiler November 2013 CTP
QtWS25 Last Chance

Using Qt with Visual C++ Compiler November 2013 CTP

Scheduled Pinned Locked Moved General and Desktop
12 Posts 5 Posters 4.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.
  • bedehoB Offline
    bedehoB Offline
    bedeho
    wrote on last edited by
    #1

    I have installed MSVC 2013 and Qt 5.4.0, and use QtCreator 3.3.0.

    I have a Qt project which needs to use an external static C++ library which is built by using the VC++ November 2013 CTP toolkit. The library requires this newer compiler since certain c++11 features are only enabled in this newer version of the compiler.

    To use the library in my Qt project I need to use some of its headers, which then introduces these new c++11 features into my Qt project, and therefore I can no longer built my Qt project since it uses the original MSVC compiler.

    I have two questions:

    1. Is it possible to some how get Qt/QtCreator to use the VC++ November 2013 CTP toolkit? if so, how?
    2. If not, does that mean I have to rebuild Qt/QtCreator with this new compiler? if so, how do I do this?
    Z 1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      First, check if you can add the new compiler to Qt Creator in preferences. If yes, then you may be able to simply select it as default for your Kit.

      If that does not work, try modifying the mkspecs (if this new compiler is compatible with the old one). Mkspecs are the compiler and environment definitions that Qt uses - you can find them in mkspecs folder in your Qt installation/ build dir. You definitely do not need to recompile Qt Creator - it is only an IDE.

      If the compiler is not compatible, you will have to recompile Qt. Info: link you can skip the git part and download a ready-made .zip from qt.io downloads page.

      (Z(:^

      1 Reply Last reply
      0
      • Chris KawaC Offline
        Chris KawaC Offline
        Chris Kawa
        Lifetime Qt Champion
        wrote on last edited by
        #3

        The November CTP is not compatible so you will have to rebuild Qt with it.

        But to be honest I would investigate if that library can't be rebuilt with something more sensible. 2013 November CTP is sorta pre-alpha quality. It's full of bugs and problems. I would think twice before shipping anything with it. If you need the newest c++ features I would consider the latest 2015 CTP as it's much more mature and closer to release quality (although not fully there yet either).

        bedehoB 1 Reply Last reply
        0
        • Chris KawaC Chris Kawa

          The November CTP is not compatible so you will have to rebuild Qt with it.

          But to be honest I would investigate if that library can't be rebuilt with something more sensible. 2013 November CTP is sorta pre-alpha quality. It's full of bugs and problems. I would think twice before shipping anything with it. If you need the newest c++ features I would consider the latest 2015 CTP as it's much more mature and closer to release quality (although not fully there yet either).

          bedehoB Offline
          bedehoB Offline
          bedeho
          wrote on last edited by
          #4

          @Chris-Kawa I just installed the MSVC2015, however the QtCreator did not detect it.

          I need to rebuilt my external library in this newer msvc, correct?

          Then I have to rebuild Qt as well with this new msvc?

          Should this be enough?

          How do I get QtCreator to actually use this newer version of vc?

          1 Reply Last reply
          0
          • Chris KawaC Offline
            Chris KawaC Offline
            Chris Kawa
            Lifetime Qt Champion
            wrote on last edited by
            #5

            VS2015 is still in development so there's no official support for it in Qt Creator yet and no auto-detection. I guess for now you could add a custom compiler by hand (although I haven't tried that myself).

            Yes, you would have to recompile that other library with VS2015.

            As for compiling Qt, the current Qt 5.4.1 doesn't have a VS2015 mkspec so you would have to create that by hand or look for it in the current dev branch. I think it's already there for the next Qt version.

            Just out of curiosity - which features of the compiler do you need with this? Latest VS2013 has partial support for c++11 and the most used features are there.

            1 Reply Last reply
            0
            • bedehoB Offline
              bedehoB Offline
              bedeho
              wrote on last edited by
              #6

              -Sorry for late reply @Chris-Kawa!!

              Im using a library which has very new C++11 language features in its header files, things like constexpr, which are not supported by msvc2013 out of the box, it needs msvc2013 november ctp or newer versions. However, Qt itself does not work with these. That is the problem.

              Z 1 Reply Last reply
              0
              • bedehoB bedeho

                I have installed MSVC 2013 and Qt 5.4.0, and use QtCreator 3.3.0.

                I have a Qt project which needs to use an external static C++ library which is built by using the VC++ November 2013 CTP toolkit. The library requires this newer compiler since certain c++11 features are only enabled in this newer version of the compiler.

                To use the library in my Qt project I need to use some of its headers, which then introduces these new c++11 features into my Qt project, and therefore I can no longer built my Qt project since it uses the original MSVC compiler.

                I have two questions:

                1. Is it possible to some how get Qt/QtCreator to use the VC++ November 2013 CTP toolkit? if so, how?
                2. If not, does that mean I have to rebuild Qt/QtCreator with this new compiler? if so, how do I do this?
                Z Offline
                Z Offline
                Zingam
                wrote on last edited by
                #7

                @bedeho
                I am using Visual Studio 2013 Community edition and Qt and Qt Creator without any issues.
                If you have installed Visual Studio 2013 CE and then install Qt 5.4 it should even install and setup everything right out of the box.

                bedehoB 1 Reply Last reply
                0
                • bedehoB bedeho

                  -Sorry for late reply @Chris-Kawa!!

                  Im using a library which has very new C++11 language features in its header files, things like constexpr, which are not supported by msvc2013 out of the box, it needs msvc2013 november ctp or newer versions. However, Qt itself does not work with these. That is the problem.

                  Z Offline
                  Z Offline
                  Zingam
                  wrote on last edited by Zingam
                  #8

                  @bedeho
                  I guess you'll have to wait for Qt version that supports Visual C++ 2015 officially.
                  Or you could try compiling Qt yourself.

                  Isn't MinGW not good for you for now?

                  1 Reply Last reply
                  0
                  • Z Zingam

                    @bedeho
                    I am using Visual Studio 2013 Community edition and Qt and Qt Creator without any issues.
                    If you have installed Visual Studio 2013 CE and then install Qt 5.4 it should even install and setup everything right out of the box.

                    bedehoB Offline
                    bedehoB Offline
                    bedeho
                    wrote on last edited by
                    #9

                    @Zingam I am not talking about Visual studio 2013 community edition, I am talking about the 2013 november technology preview, which has new features. Qt does not work with that out of the box, and needs to be rebuilt, also QtCreator does not detect it as a proper kit.

                    JKSHJ 1 Reply Last reply
                    0
                    • bedehoB bedeho

                      @Zingam I am not talking about Visual studio 2013 community edition, I am talking about the 2013 november technology preview, which has new features. Qt does not work with that out of the box, and needs to be rebuilt, also QtCreator does not detect it as a proper kit.

                      JKSHJ Offline
                      JKSHJ Offline
                      JKSH
                      Moderators
                      wrote on last edited by
                      #10

                      @bedeho said:

                      @Zingam I am not talking about Visual studio 2013 community edition, I am talking about the 2013 november technology preview, which has new features.

                      Are you sure that the tech preview has more features than the final release?

                      Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                      1 Reply Last reply
                      0
                      • Chris KawaC Offline
                        Chris KawaC Offline
                        Chris Kawa
                        Lifetime Qt Champion
                        wrote on last edited by
                        #11

                        @JKSH said:

                        Are you sure that the tech preview has more features than the final release?

                        It does. The details are in the announce blog post. But, as I said, it later on turned out it was quite buggy.

                        JKSHJ 1 Reply Last reply
                        0
                        • Chris KawaC Chris Kawa

                          @JKSH said:

                          Are you sure that the tech preview has more features than the final release?

                          It does. The details are in the announce blog post. But, as I said, it later on turned out it was quite buggy.

                          JKSHJ Offline
                          JKSHJ Offline
                          JKSH
                          Moderators
                          wrote on last edited by
                          #12

                          @Chris-Kawa said:

                          @JKSH said:

                          Are you sure that the tech preview has more features than the final release?

                          It does. The details are in the announce blog post. But, as I said, it later on turned out it was quite buggy.

                          Ah. I learnt something new today!

                          Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                          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