Qt build error
-
wrote on 1 Nov 2016, 06:20 last edited by A Former User 11 Jan 2016, 11:35
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.
-
wrote on 1 Nov 2016, 06:32 last edited by
sorry, i have already installed qt 5.7 and when i run a program i get this error
-
wrote on 1 Nov 2016, 08:27 last edited by
can anyone please help me with this error?
-
wrote on 1 Nov 2016, 09:57 last edited by
i used offline installer and GCC is 4.4 maybe that is the prob i need GCC 4.7 i think
-
wrote on 1 Nov 2016, 10:03 last edited by
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? -
Hi,
Either use a version of Qt that is smaller that 5.7 or upgrade your compiler.
-
wrote on 2 Nov 2016, 04:20 last edited by
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? -
What OpenGL library do you have installed ?
-
wrote on 4 Nov 2016, 12:23 last edited by
i did not install any. How to do that? which one should i install
-
Since you're on RedHat:
yum install mesa-libGL-devel
1/11