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 build error
Qt 6.11 is out! See what's new in the release blog

Qt build error

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
11 Posts 3 Posters 3.8k 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.
  • P Offline
    P Offline
    prerna
    wrote on last edited by A Former User
    #1

    Hi,

    I am installing Qt 5.7 in RHEL6.6. I get the following error while run:
    g++ -c -pipe -g -std=gnu++11 -Wall -W -D_REENTRANT -fPIC -DQT_QML_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../../../chk/tr1 -I. -I/opt/Qt5.7.0/5.7/gcc_64/include -I/opt/Qt5.7.0/5.7/gcc_64/include/QtWidgets -I/opt/Qt5.7.0/5.7/gcc_64/include/QtGui -I/opt/Qt5.7.0/5.7/gcc_64/include/QtCore -I. -I. -I/opt/Qt5.7.0/5.7/gcc_64/mkspecs/linux-g++ -o main.o ../../../chk/tr1/main.cpp
    cc1plus: error: unrecognized command line option "-std=gnu++11"
    make: *** [main.o] Error 1
    make: Leaving directory `/home/Prerna/Desktop/example/ex2/tr1'
    11:37:33: The process "/usr/bin/make" exited with code 2.
    Error while building/deploying project tr1 (kit: Desktop Qt 5.7.0 GCC 64bit)
    When executing step "Make"

    11:37:33: Elapsed time: 00:00.

    1 Reply Last reply
    0
    • P Offline
      P Offline
      prerna
      wrote on last edited by
      #2

      sorry, i have already installed qt 5.7 and when i run a program i get this error

      1 Reply Last reply
      0
      • P Offline
        P Offline
        prerna
        wrote on last edited by
        #3

        can anyone please help me with this error?

        1 Reply Last reply
        0
        • N Offline
          N Offline
          nirh
          wrote on last edited by
          #4

          Hi @prerna ,

          I had just installed qt 5.7 on RHEL6.6 and the installation went perfect,

          Probably u have missed some installation steps...

          nirh

          1 Reply Last reply
          1
          • P Offline
            P Offline
            prerna
            wrote on last edited by
            #5

            i used offline installer and GCC is 4.4 maybe that is the prob i need GCC 4.7 i think

            1 Reply Last reply
            0
            • P Offline
              P Offline
              prerna
              wrote on last edited by
              #6

              could you please mention the steps you followed and from which file did you install? .run/.tar etc
              Also what necessary files should be downloaded for Qt to run without any problems?

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

                Hi,

                Either use a version of Qt that is smaller that 5.7 or upgrade your compiler.

                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
                1
                • P Offline
                  P Offline
                  prerna
                  wrote on last edited by
                  #8

                  Hi,
                  Thank you :)I figured out it was not working first because of gcc compiler (the version i had was an old one) i installed gcc4.8.1after that through devtoolset-2 and it worked fine.However there is new error LibGL error unable to load driver nouveau_dri.so
                  Can you tell me what is this error?

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

                    What OpenGL library do you have 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
                    1
                    • P Offline
                      P Offline
                      prerna
                      wrote on last edited by
                      #10

                      i did not install any. How to do that? which one should i install

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

                        Since you're on RedHat: yum install mesa-libGL-devel

                        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