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 5.14.1 won't compile anything on my CentOS-7

Qt 5.14.1 won't compile anything on my CentOS-7

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
6 Posts 4 Posters 1.6k Views 2 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.
  • B Offline
    B Offline
    Bob Fachetti
    wrote on last edited by
    #1

    I installed 5.14.1 on Centos-7 a couple days ago. Problem is that nothing, not even the simplest example code will build. Every attempt to compile anything generates the following error:

    #error “Qt requires C++11 support”

    I have tried the obvious fixes, but they have no effect:

    CONFIG += c++11
    QMAKE_CXXFLAGS += -std=c++11

    I have zero issues building with 5.12.4 or 5.12.6, but I have been waiting for a fix that is only in 5.14.1. Here is the relevant information from my CentOS-7 system:

    cat /etc/os-release
    NAME="CentOS Linux"
    VERSION="7 (Core)"
    ID="centos"
    ID_LIKE="rhel fedora"
    VERSION_ID="7"

    uname -r
    3.10.0-693.21.1.el7.x86_64

    gcc --version
    gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-39)
    Copyright (C) 2015 Free Software Foundation, Inc.

    I have also tried it on another CentOS-7 machine with the same result. Is anyone else experiencing an issue with 5.14.1 on CentOS-7?

    B 1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      According to GCC themselves, it has pretty much full C++11 support (https://gcc.gnu.org/gcc-4.8/cxx0x_status.html). So I think this is something you should raise on Qt bugtracker.

      I think CentOS allows upgrading GCC (some devel package or something, sorry I don't remember the name), maybe you should try that?

      (Z(:^

      1 Reply Last reply
      1
      • B Bob Fachetti

        I installed 5.14.1 on Centos-7 a couple days ago. Problem is that nothing, not even the simplest example code will build. Every attempt to compile anything generates the following error:

        #error “Qt requires C++11 support”

        I have tried the obvious fixes, but they have no effect:

        CONFIG += c++11
        QMAKE_CXXFLAGS += -std=c++11

        I have zero issues building with 5.12.4 or 5.12.6, but I have been waiting for a fix that is only in 5.14.1. Here is the relevant information from my CentOS-7 system:

        cat /etc/os-release
        NAME="CentOS Linux"
        VERSION="7 (Core)"
        ID="centos"
        ID_LIKE="rhel fedora"
        VERSION_ID="7"

        uname -r
        3.10.0-693.21.1.el7.x86_64

        gcc --version
        gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-39)
        Copyright (C) 2015 Free Software Foundation, Inc.

        I have also tried it on another CentOS-7 machine with the same result. Is anyone else experiencing an issue with 5.14.1 on CentOS-7?

        B Offline
        B Offline
        Bob Fachetti
        wrote on last edited by
        #3

        @Bob-Fachetti
        5.14.1 requires gcc > 5.0 even though the official documentation says it supports gcc > 4.8.5 . for generic Linux (CentOS-7).

        1 Reply Last reply
        1
        • Christian EhrlicherC Offline
          Christian EhrlicherC Offline
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on last edited by Christian Ehrlicher
          #4

          @Bob-Fachetti said in Qt 5.14.1 won't compile anything on my CentOS-7:

          Qt requires C++11 support

          Where exactly do you get this message? From qbasicatomic.h ? Can you show us all compiler options?

          See https://codereview.qt-project.org/c/qt/qtbase/+/288702 and https://codereview.qt-project.org/c/qt/qtbase/+/285582

          /edit: ok - gcc < 5 is not supported with Qt5.14 anymore: https://codereview.qt-project.org/c/qt/qtdoc/+/288825

          Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
          Visit the Qt Academy at https://academy.qt.io/catalog

          1 Reply Last reply
          1
          • YanChenyuY Offline
            YanChenyuY Offline
            YanChenyu
            wrote on last edited by
            #5

            我尝试后也遇到了此问题。
            centos 7 2003
            qt5.14.2

            Christian EhrlicherC 1 Reply Last reply
            0
            • YanChenyuY YanChenyu

              我尝试后也遇到了此问题。
              centos 7 2003
              qt5.14.2

              Christian EhrlicherC Offline
              Christian EhrlicherC Offline
              Christian Ehrlicher
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @YanChenyu Please post in english.

              Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
              Visit the Qt Academy at https://academy.qt.io/catalog

              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