2016-05-31 8 views
1

Schritte Ich habe versucht, laufen Stand-Alone-Web-AnwendungKann die Qt-Anwendung als Stand-alone-Anwendung

Host-PC ist Ubuntu 14.04, 64-Bit-Betriebssystem zu erstellen.

Qt-Version - Qt5.6.

Testen auf der virtuellen Box Ubuntu 14.04, 64-Bit-Betriebssystem.

Die Anwendung funktioniert ordnungsgemäß auf dem Host-PC.

Ich kopierte alle webabhängigen Dateien & Prozess, plattformabhängige Dateien und die Lib-Dateien, wo die ausführbare Datei vorhanden ist, dann leitete ich den Bibliothekspfad zum aktuellen Arbeitsverzeichnis der ausführbaren Datei um.

command used : chrpath -r ./lib AppName 

dann, wenn ich die Anwendung seines Bruch als

This application failed to start because it could not find or load the Qt platform plugin "xcb". 
Available platform plugins are: xcb. 
Reinstalling the application may fix this problem. 
Aborted (core dumped) 

laufen lief ich die LDD auf libqxcb.so die abhängigen Dateien zu finden.

command : ldd libqxcb.so 

Ich löste dies manuell die "nicht gefundenen Dateien"/usr/lib Pfad fertig

libQt5XcbQpa.so.5 
libQt5DBus.so.5 
libQt5Core.so.5 
libQt5Gui.so.5 

Nun ist die Anwendung aufgrund der folgenden Fehler bricht:

QXcbIntegration: Cannot create platform OpenGL context, neither GLX nor EGL are enabled 
Qt WebEngine data directory not found at location /home/user/Qt5.5.1/5.5/gcc_64. Trying application directory... 
Qt WebEngine Plugins directory not found. Trying fallback directory... Plugins as for example video codecs MAY NOT work. 
Installed Qt WebEngine locales directory not found at location /home/user/Qt5.5.1/5.5/gcc_64/translations/qtwebengine_locales. Trying application directory... 
Qt WebEngine data directory not found at location /home/user/Qt5.5.1/5.5/gcc_64. Trying application directory... 
Qt WebEngine Plugins directory not found. Trying fallback directory... Plugins as for example video codecs MAY NOT work. 
Installed Qt WebEngine locales directory not found at location /home/user/Qt5.5.1/5.5/gcc_64/translations/qtwebengine_locales. Trying application directory... 
QXcbIntegration: Cannot create platform OpenGL context, neither GLX nor EGL are enabled 
QXcbIntegration: Cannot create platform OpenGL context, neither GLX nor EGL are enabled 
QOpenGLWidget: Failed to create context 
QXcbIntegration: Cannot create platform OpenGL context, neither GLX nor EGL are enabled 
QOpenGLWidget: Failed to create context 
composeAndFlush: makeCurrent() failed 
composeAndFlush: makeCurrent() failed 
composeAndFlush: makeCurrent() failed 
Segmentation fault (core dumped) 

Kann mir jemand helfen, das obige Problem zu lösen.

Vielen Dank im Voraus.

Antwort

0

Haben Sie eine Desktop-Version von Ubuntu in der virtuellen Box?

Haben Sie "Aktivierte 3D-Beschleunigung" in den VM-Optionen aktiviert.

Haben Sie die Virtualbox-Grafiktreiber installiert?

Das Problem ist QtWebengine OpenGL arbeiten muss, weshalb Sie diesen Fehler erhalten:

QXcbIntegration: Cannot create platform OpenGL context, neither GLX nor EGL are enabled