I have a question about programming in QT under Linux 16.04LTS and CUDA. I am trying to develop an OpenGL application and I'm struggling when I'm trying to build app. It gives me this error:
This application failed to start because it could not find or load the
Qt platform plugin "xcb" in "".
Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, webgl, xcb.
Reinstalling the application may fix this problem. can't find linker symbol for virtual table for 'MainWindow' value
I've already checked other suggestions from previous post but this is slightly different. As I figured out this error is caused by Opengl GLU libraries.
LIBS += -L/usr/lib/x86_64-linux-gnu \
-lGLU \
-lglut \
-lGL
Every time when I include it to .pro file I got this problem. Without GLU libraries it is working but I can't use gluPerspective
or gluLookAt
.
However, the strange issue is happening when I built application without GLU libraries after building it with GLU libraries. So basically I build app with GLU and then without. Then I can run app but after rebuilding it (using clean or rebuilt option) I got error of missing GLU libraries.
Also I've already included QTOpenGl to .pro file.
QT += opengl
Do you have any suggestions about this issue? Can I use different libraries then GLU libraries to avoid this situation?
EDIT: Problem solved. Linux is installing default qt libraries which is causing collision. It seems GL libraries was linked to default libraries.