webosose / build-webos

webOS OSE build layer
670 stars 126 forks source link

qtmultimedia is not compatible with the current version of Qt. #49

Closed Huyle1411 closed 2 months ago

Huyle1411 commented 2 months ago

I create built-in native app and got build error related to qtmultimedia when I add this module to .bb file. Error log as below:

qtmultimedia was skipped: Recipe will be skipped because: fails to build: qtmultimedia/6.0.0-r1/git/src/qtmultimediaquicktools/qsgvideonode_texture.cpp:56:30: error: 'class QSGRhiSupport' has no member named 'isRhiEnabled'. http://gecko.lge.com:8000/Errors/Details/565741
qtmultimedia was skipped: Recipe will be skipped because: fails to build: qtmultimedia/6.0.0-r1/git/src/qtmultimediaquicktools/qsgvideonode_texture.cpp:56:30: error: 'class QSGRhiSupport' has no member named 'isRhiEnabled'. http://gecko.lge.com:8000/Errors/Details/565741

There are no build errors with other modules like qtdeclarative or qtwayland. As far as I know, this error is due to incompatibility with the current Qt version. Please patch the code to update isRhiEnabled in the QSGRhiSupport class.

Additional information: I simply run the command build: bitbake qtmultimedia, and the same error occurs. So it must be an error of Qt in this build-webos

jaeyoonjung commented 2 months ago

Hi,

qtmultimedia has been revamped in Qt 6 with a number of API changes and since then it hasn't been working in webOS. So, unfortunately, it is not supported and there's no plan for that at the moment.

Huyle1411 commented 2 months ago

Hi,

qtmultimedia has been revamped in Qt 6 with a number of API changes and since then it hasn't been working in webOS. So, unfortunately, it is not supported and there's no plan for that at the moment.

Ok, so based on the information from https://www.webosose.org/docs/reference/ls2-api/com-webos-media/, it is highly recommended that developers avoid using com.webos.media directly. Therefore, what are alternative ways for using media APIs in developing a built-in native app if QtMultimedia is not an option?

Heeam-Shin commented 2 months ago

Please use https://www.webosose.org/docs/reference/umediaclient-api/umediaclient-api-reference/ in umediaclient library, instead of https://www.webosose.org/docs/reference/ls2-api/com-webos-media/.