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. Build Qt 5.8 on RHEL 6.9
Qt 6.11 is out! See what's new in the release blog

Build Qt 5.8 on RHEL 6.9

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
5 Posts 3 Posters 2.2k 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.
  • D Offline
    D Offline
    DanF
    wrote on last edited by
    #1

    I am attempting to build Qt 5.8 on a RHEL 6.9 Workstation.

    Upgraded GCC to 4.9.4 (verified through gcc --version)
    Installed libcxx

    When trying to to run ./configure, an error comes up : .cc1plus: error: unrecognized command line option "-std=c++11"

    I am guess that is because while I have updated to GCC 4.9.4, cc1plus is still using 4.4.4 in libexec.

    Has anyone gotten 5.8 to work on RHEL 6.9 successfully and can provide some guidance?

    Thank you

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

      Hi and welcome to devnet,

      Might be a silly question but do you also have g++ installed ?

      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
      • D DanF

        I am attempting to build Qt 5.8 on a RHEL 6.9 Workstation.

        Upgraded GCC to 4.9.4 (verified through gcc --version)
        Installed libcxx

        When trying to to run ./configure, an error comes up : .cc1plus: error: unrecognized command line option "-std=c++11"

        I am guess that is because while I have updated to GCC 4.9.4, cc1plus is still using 4.4.4 in libexec.

        Has anyone gotten 5.8 to work on RHEL 6.9 successfully and can provide some guidance?

        Thank you

        A Offline
        A Offline
        ambershark
        wrote on last edited by
        #3

        @DanF Sounds like it's still picking up your older g++. On some distributions you have to switch compilers using something like http://stackoverflow.com/questions/14677108/how-to-set-default-g.

        My L-GPL'd C++ Logger github.com/ambershark-mike/sharklog

        1 Reply Last reply
        0
        • D Offline
          D Offline
          DanF
          wrote on last edited by
          #4

          g++ --version shows 4.9.4.

          If I dont have a symlink to the version of cc1plus in libexec, I get an execvp error. The only way to get by that is to symlink to the older cc1plus. Building GCC 4.9.4 doesnt look like it builds cc1plus in.

          So, I am guessing it has something to do with how I am building GCC (which I am only updating to get QT 5.8). I was hoping someone has gone through this already and gotten Qt 5.8 to work on RHEL 6.

          A 1 Reply Last reply
          0
          • D DanF

            g++ --version shows 4.9.4.

            If I dont have a symlink to the version of cc1plus in libexec, I get an execvp error. The only way to get by that is to symlink to the older cc1plus. Building GCC 4.9.4 doesnt look like it builds cc1plus in.

            So, I am guessing it has something to do with how I am building GCC (which I am only updating to get QT 5.8). I was hoping someone has gone through this already and gotten Qt 5.8 to work on RHEL 6.

            A Offline
            A Offline
            ambershark
            wrote on last edited by
            #5

            @DanF Ah yea I haven't... I really don't use ancient linux versions at all. So I haven't touched redhat in a long time. I prefer cutting edge stuff like gentoo, arch, etc.

            As for your gcc update, yea it sounds like that wasn't a complete upgrade if it's not picking up your cc1plus.

            My L-GPL'd C++ Logger github.com/ambershark-mike/sharklog

            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