qt6 browser on imx8MM evk using yocto

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

qt6 browser on imx8MM evk using yocto

Jump to solution
1,931 Views
Blake001
Contributor III

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?

Labels (1)
0 Kudos
Reply
1 Solution
1,824 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi

No such issue on L6.6.23, i.MX8MM EVK.

Zhiming_Liu_0-1727337374702.png



Best Regards
Zhiming

View solution in original post

4 Replies
1,908 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

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

0 Kudos
Reply
1,874 Views
Blake001
Contributor III

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!

0 Kudos
Reply
1,825 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi

No such issue on L6.6.23, i.MX8MM EVK.

Zhiming_Liu_0-1727337374702.png



Best Regards
Zhiming

1,818 Views
Blake001
Contributor III

 

Thank you very much Zhiming,  I added "export QTWEBENGINE_DISABLE_SANDBOX=1" as you described and it works! Awsome!

Blake001_0-1727370090104.png

 

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-1953728%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3Eqt6%20browser%20on%20imx8MM%20evk%20using%20yocto%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1953728%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI%20use%20Yocto%20sucucessfully%20build%20the%20bsp%20with%20the%20qt6%20browser%20installed%20in%20evk%20board.%3C%2FP%3E%3CP%3EI%20use%20the%20command%20%3A%20bitbake%20imx-image-full%3C%2FP%3E%3CP%3EAfter%20I%20flash%20the%20wic%20to%20the%20kernel%2C%20I%20find%20the%20qt6%20browser%20under%26nbsp%3B%2Fusr%2Fshare%2Fqt6%2Fexamples%2Fwebenginewidgets%2C%20however%20I%20can%20not%20open%20the%20browser%2C%20this%20is%20the%20output%20both%20in%20my%20display%20and%20minicom%3A%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CEM%3E%3CSTRONG%3Eimx8mm-lpddr4-evk%3A%2Fusr%2Fshare%2Fexamples%2Fwebenginewidgets%2Fcookiebrowser%24%20.%2Fcookiebrowser%3C%2FSTRONG%3E%3C%2FEM%3E%3C%2FP%3E%3CP%3E%3CEM%3E%3CSTRONG%3EdrmModeGetResources%20failed%20(Operation%20not%20supported)%3C%2FSTRONG%3E%3C%2FEM%3E%3C%2FP%3E%3CP%3E%3CEM%3E%3CSTRONG%3Eno%20screens%20available%2C%20assuming%2024-bit%20color%3C%2FSTRONG%3E%3C%2FEM%3E%3C%2FP%3E%3CP%3E%3CEM%3E%3CSTRONG%3EPath%20override%20failed%20for%20key%20base%3A%3ADIR_APP_DICTIONARIES%20and%20path%20'%2Fusr%2Fshare%2Fexamples%2Fwebenginewidgets%2Fcookiebrowser%2Fqt%3C%2FSTRONG%3E%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3E%3CSTRONG%3Ewebengine_dictionaries'%3C%2FSTRONG%3E%3C%2FEM%3E%3C%2FP%3E%3CP%3E%3CEM%3E%3CSTRONG%3ECannot%20create%20window%3A%20no%20screens%20available%3C%2FSTRONG%3E%3C%2FEM%3E%3C%2FP%3E%3CP%3E%3CEM%3E%3CSTRONG%3EAborted%20(core%20dumped)%3C%2FSTRONG%3E%3C%2FEM%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EDo%20you%20have%20any%20suggestion%20regarding%20this%2C%20I%20tried%20to%20set%20up%20the%20enviroment%2C%20exported%20a%20lot%20of%20changes%20to%20the%20enviroment%2C%20still%20can%20not%20run%20the%20browser%2C%20why%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1953728%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3Ei.MX%208M%20%7C%20i.MX%208M%20Mini%20%7C%20i.MX%208M%20Nano%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1962841%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20qt6%20browser%20on%20imx8MM%20evk%20using%20yocto%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1962841%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CBR%20%2F%3E%3CP%3EThank%20you%20very%20much%20Zhiming%2C%26nbsp%3B%20I%20added%20%22export%20QTWEBENGINE_DISABLE_SANDBOX%3D1%22%20as%20you%20described%20and%20it%20works!%20Awsome!%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Blake001_0-1727370090104.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Blake001_0-1727370090104.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F301498i9DE44977B39EF31E%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Blake001_0-1727370090104.png%22%20alt%3D%22Blake001_0-1727370090104.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1962457%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20qt6%20browser%20on%20imx8MM%20evk%20using%20yocto%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1962457%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20%3C%2FP%3E%0A%3CP%3ENo%20such%20issue%20on%20L6.6.23%2C%20i.MX8MM%20EVK.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Zhiming_Liu_0-1727337374702.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Zhiming_Liu_0-1727337374702.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F301393iD795AF6BE562AF41%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Zhiming_Liu_0-1727337374702.png%22%20alt%3D%22Zhiming_Liu_0-1727337374702.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3E%3CBR%20%2F%3EBest%20Regards%3CBR%20%2F%3EZhiming%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1955778%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20qt6%20browser%20on%20imx8MM%20evk%20using%20yocto%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1955778%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3EThanks%20for%20your%20reply.%20I%20followed%20the%20instructions%20from%20%225.6.6%20Qt%206%20and%20QtWebEngine%20browsers%22%20%2C%20it%20built%20the%20browsers%20but%20I%20can%20not%20open%20it.%20The%20same%20error%20occured%20when%20I%20was%20trying%20to%20open%20the%20browser%20as%20I%20described%20before.%20How%20can%20I%20resolve%20this%3F%3C%2FP%3E%3CP%3EThank%20you%20very%20much!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1954039%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20qt6%20browser%20on%20imx8MM%20evk%20using%20yocto%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1954039%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20%3C%2FP%3E%0A%3CP%3EPlease%20refer%26nbsp%3B5.6.6%20Qt%206%20and%20QtWebEngine%20browsers%20in%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fwww.nxp.com.cn%2Fdocs%2Fen%2Fuser-guide%2FIMX_YOCTO_PROJECT_USERS_GUIDE.pdf%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.nxp.com.cn%2Fdocs%2Fen%2Fuser-guide%2FIMX_YOCTO_PROJECT_USERS_GUIDE.pdf%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3EBest%20Regards%3CBR%20%2F%3EZhiming%3C%2FP%3E%3C%2FLINGO-BODY%3E