I use Yocto sucucessfully build the bsp with the qt6 browser installed in evk board.
I use the command : bitbake imx-image-full
After I flash the wic to the kernel, I find the qt6 browser under /usr/share/qt6/examples/webenginewidgets, however I can not open the browser, this is the output both in my display and minicom:
imx8mm-lpddr4-evk:/usr/share/examples/webenginewidgets/cookiebrowser$ ./cookiebrowser
drmModeGetResources failed (Operation not supported)
no screens available, assuming 24-bit color
Path override failed for key base::DIR_APP_DICTIONARIES and path '/usr/share/examples/webenginewidgets/cookiebrowser/qt
webengine_dictionaries'
Cannot create window: no screens available
Aborted (core dumped)
Do you have any suggestion regarding this, I tried to set up the enviroment, exported a lot of changes to the enviroment, still can not run the browser, why?
Solved! Go to Solution.
Hi
Please refer 5.6.6 Qt 6 and QtWebEngine browsers in https://www.nxp.com.cn/docs/en/user-guide/IMX_YOCTO_PROJECT_USERS_GUIDE.pdf
Best Regards
Zhiming
Hi,
Thanks for your reply. I followed the instructions from "5.6.6 Qt 6 and QtWebEngine browsers" , it built the browsers but I can not open it. The same error occured when I was trying to open the browser as I described before. How can I resolve this?
Thank you very much!
Hi
No such issue on L6.6.23, i.MX8MM EVK.
Best Regards
Zhiming
Thank you very much Zhiming, I added "export QTWEBENGINE_DISABLE_SANDBOX=1" as you described and it works! Awsome!