This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM3358: cross compile the qt with opengl-es2

Part Number: AM3358

hi:

  my sdk versionis : ti-processor-sdk-linux-rt-am335x-evm-07.03.00.005(qt5.14.2)

         hardware:      beaglebone black

   I am going to use the qt's new feature webgl ,  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.

 

it seems that my libqwebgl.so can't work, 

Is the prebuilt -qt in the sdk compiled with opengl-es2 ? 

if I want to built qt with libwebgl, can you give some advices?

and I just need a libqwebgl.so