PDA

View Full Version : QT5.7 problem building examples and more with qtcreator



gig-raf
9th August 2016, 16:14
Hi all,

hope someone can please give me a hint here. I am stuck :-(

I am running Qt5.7 on Ubuntu 14.04 (64bit) in a virtualbox.




which qtcreator
/usr/bin/qtcreator

qtcreator -version

Qt Creator 3.0.1 based on Qt 5.2.1
...


and my qmake -query gives me



qmake -query
QT_SYSROOT:
QT_INSTALL_PREFIX:/opt/Qt5.7.0/5.7/gcc_64
QT_INSTALL_ARCHDATA:/opt/Qt5.7.0/5.7/gcc_64
QT_INSTALL_DATA:/opt/Qt5.7.0/5.7/gcc_64
QT_INSTALL_DOCS:/opt/Qt5.7.0/Docs/Qt-5.7
QT_INSTALL_HEADERS:/opt/Qt5.7.0/5.7/gcc_64/include
QT_INSTALL_LIBS:/opt/Qt5.7.0/5.7/gcc_64/lib
QT_INSTALL_LIBEXECS:/opt/Qt5.7.0/5.7/gcc_64/libexec
QT_INSTALL_BINS:/opt/Qt5.7.0/5.7/gcc_64/bin
QT_INSTALL_TESTS:/opt/Qt5.7.0/5.7/gcc_64/tests
QT_INSTALL_PLUGINS:/opt/Qt5.7.0/5.7/gcc_64/plugins
QT_INSTALL_IMPORTS:/opt/Qt5.7.0/5.7/gcc_64/imports
QT_INSTALL_QML:/opt/Qt5.7.0/5.7/gcc_64/qml
QT_INSTALL_TRANSLATIONS:/opt/Qt5.7.0/5.7/gcc_64/translations
QT_INSTALL_CONFIGURATION:/opt/Qt5.7.0/5.7/gcc_64
QT_INSTALL_EXAMPLES:/opt/Qt5.7.0/Examples/Qt-5.7
QT_INSTALL_DEMOS:/opt/Qt5.7.0/Examples/Qt-5.7
QT_HOST_PREFIX:/opt/Qt5.7.0/5.7/gcc_64
QT_HOST_DATA:/opt/Qt5.7.0/5.7/gcc_64
QT_HOST_BINS:/opt/Qt5.7.0/5.7/gcc_64/bin
QT_HOST_LIBS:/opt/Qt5.7.0/5.7/gcc_64/lib
QMAKE_SPEC:linux-g++
QMAKE_XSPEC:linux-g++
QMAKE_VERSION:3.0
QT_VERSION:5.7.0



now if I open qtcreator and compile one of the many examples (fails with all of the ones I have tried.....and i have tried a lot)

I get



libGL error: pci id for fd 12: 80ee:beef, driver (null)
OpenGL Warning: glFlushVertexArrayRangeNV not found in mesa table
OpenGL Warning: glVertexArrayRangeNV not found in mesa table
OpenGL Warning: glCombinerInputNV not found in mesa table
OpenGL Warning: glCombinerOutputNV not found in mesa table
OpenGL Warning: glCombinerParameterfNV not found in mesa table
OpenGL Warning: glCombinerParameterfvNV not found in mesa table
OpenGL Warning: glCombinerParameteriNV not found in mesa table
OpenGL Warning: glCombinerParameterivNV not found in mesa table
OpenGL Warning: glFinalCombinerInputNV not found in mesa table
OpenGL Warning: glGetCombinerInputParameterfvNV not found in mesa table
OpenGL Warning: glGetCombinerInputParameterivNV not found in mesa table
OpenGL Warning: glGetCombinerOutputParameterfvNV not found in mesa table
OpenGL Warning: glGetCombinerOutputParameterivNV not found in mesa table
OpenGL Warning: glGetFinalCombinerInputParameterfvNV not found in mesa table
OpenGL Warning: glGetFinalCombinerInputParameterivNV not found in mesa table
OpenGL Warning: glDeleteFencesNV not found in mesa table
OpenGL Warning: glFinishFenceNV not found in mesa table
OpenGL Warning: glGenFencesNV not found in mesa table
OpenGL Warning: glGetFenceivNV not found in mesa table
OpenGL Warning: glIsFenceNV not found in mesa table
OpenGL Warning: glSetFenceNV not found in mesa table
OpenGL Warning: glTestFenceNV not found in mesa table
libGL error: core dri or dri2 extension not found
libGL error: failed to load driver: vboxvideo
OpenGL Warning: XGetVisualInfo returned 0 visuals for 0xeaa2b0
OpenGL Warning: Retry with 0x8002 returned 0 visuals
The program has unexpectedly finished.



the stuff with openGL I guess are not critical, but the last line is bad..


I guess/hope that the problem is just a configuration problem inside qtcreator.

I have configured my kit to use the qmake in the /gcc_64/bin

the gcc that is being used now is the gcc in /usr/bin/gcc-4.8



/usr/bin/gcc-4.8 --version
gcc-4.8 (Ubuntu 4.8.5-2ubuntu1~14.04.1) 4.8.5
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.



can anybody advice me here?

d_stranz
10th August 2016, 04:55
I think the problem might be that your mesa library (which implements OpenGL on linux) might be old. You could try to update or switch to a different OpenGL implementation.