Run qml with webgl on beaglebone black
-
Hi:
I saw the Raspberry PI can run qml with webgl backend.
I am going to use webgl on BBB , but I did't found libqwebgl.so in the sdk root system (root/usr/lib/plugins/platforms),.
so I cross compile the qt5.14.2 with opengl-es2(webgl need es2),then I copy the libqwebgl.so to the root system.and run my qml, this is the log information:
Found metadata in lib /opt/libqwebgl.so, metadata=
{
"IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
"MetaData": {
"Keys": [
"webgl"
]
},
"archreq": 0,
"className": "QWebGLIntegrationPlugin",
"debug": false,
"version": 331264
}Got keys from plugin meta data ("eglfs")
QFactoryLoader::QFactoryLoader() looking at "/usr/lib/plugins/platforms/libqlinuxfb.so"
Found metadata in lib /usr/lib/plugins/platforms/libqlinuxfb.so, metadata=
{
"IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
"MetaData": {
"Keys": [
"linuxfb"
]
},
"archreq": 0,
"className": "QLinuxFbIntegrationPlugin",
"debug": false,
"version": 331264
}Got keys from plugin meta data ("linuxfb")
QFactoryLoader::QFactoryLoader() looking at "/usr/lib/plugins/platforms/libqminimal.so"
Found metadata in lib /usr/lib/plugins/platforms/libqminimal.so, metadata=
{
"IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
"MetaData": {
"Keys": [
"minimal"
]
},
"archreq": 0,
"className": "QMinimalIntegrationPlugin",
"debug": false,
"version": 331264
}Got keys from plugin meta data ("webgl")
QFactoryLoader::QFactoryLoader() checking directory path "/opt/platforms" ...
Cannot load library /usr/lib/plugins/platforms/libqwebgl.so: (/usr/lib/plugins/platforms/libqwebgl.so: undefined symbol: ZNK20QPlatformIntegration28createPlatformSessionManagerERK7QStringS2, version Qt)
QLibraryPrivate::loadPlugin failed on "/usr/lib/plugins/platforms/" : "Cannot load library /usr/lib/plugins/platforms/libqwebgl.so: (/usr/lib/plugins/platforms/libqwebgl.so: undefined symbol:"
qt.qpa.plugin: Could not load the Qt platform plugin "webgl" in "/usr/lib/plugins" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, webgl.