Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. C++ 14 support missing with Qt 5.6
Forum Updated to NodeBB v4.3 + New Features

C++ 14 support missing with Qt 5.6

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
5 Posts 3 Posters 2.6k Views 1 Watching
  • 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.
  • R Offline
    R Offline
    Rubin Stove
    wrote on last edited by
    #1

    I upgraded Qt to 5.6 on my machine. It suddenly started complaining about the code written for C++ 14 & its an issue only on android. The same code builds well for ios(clang). I have my CONFIG set as "CONFIG += c++14" in .pro. But it still seems to be forcing back to C++11.

    I upgraded my ndk to r11 & updated qt preferences to use ndk r11 with ndk version 24 that is latest . But still does not help.

    Is there any upgrade coming up or any work around for this ?

    1 Reply Last reply
    0
    • Tom NaerlandT Offline
      Tom NaerlandT Offline
      Tom Naerland
      wrote on last edited by
      #2

      I have this problem too in both Qt 5.6.0-rc and Qt 5.6.0. So far I've found no workarounds.

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi,

        The NDK CPP Support page talks about c++11 but not c++14 so it might not be supported. How there seems to be a ndk alternative named Crystax. I don't know it but might be worth a look.

        Hope it helps

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        0
        • Tom NaerlandT Offline
          Tom NaerlandT Offline
          Tom Naerland
          wrote on last edited by
          #4

          Hi,

          what seems to be the error here is that flag CONFIG += C++14 in the .pro file doesn't produce the-std=c++1y argument in the call to GCC. It is also the case that using Qt 5.5.1 with it CONFIG += c++14 yields the correct-std=c++1y. See:
          https://forum.qt.io/topic/64796/qt-5-6-qmake-and-config-c-11-is-it-safe-to-remove-this/5

          I think there is some erroneous parsing of the config flag C++14 in Qt 5.6 that is responsible for this, and thus Crystax NDK wouldn't really help.

          Regards,
          Tom

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            The parsing isn't wrong. It's c++14 with a lower case c.

            Did you check that Android provides support for C++14 ?

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            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