How to compile the Chromium browser using Yocto on Linux version 6.6.36

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

How to compile the Chromium browser using Yocto on Linux version 6.6.36

Jump to solution
324 Views
logic887
Contributor III


My current platform is IMX8MP, and I downloaded the Linux version 6.6.36 of Yocto, but how do I compile the Chromium browser?

I added `IMAGE_INSTALL:append = "chromium-ozone-wayland"` to `conf/local.conf`, and then executed `bitbake chromium-ozone-wayland`, which resulted in the following error.

logic887_0-1765184746906.png

 

0 Kudos
Reply
1 Solution
6 Replies
323 Views
logic887
Contributor III

logic887_0-1765185113628.png

Setting `CORE_IMAGE_EXTRA_INSTALL += "chromium-ozone-wayland"` will result in the following error:

logic887_1-1765185213355.png

 

0 Kudos
Reply
291 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello,


1. Initialize the repository with the proper manifest:
```
repo init -u https://github.com/nxp-imx/imx-manifest -b imx-linux-mickledore -m imx-6.6.36-2.2.2.xml
```

2. Synchronize the repository:
```
repo sync
```

3. Set up the build environment:
```
MACHINE=imx8mp-lpddr4-evk DISTRO=fsl-imx-wayland source ./imx-setup-release.sh -b build_imx8mp
```

4. Add Chromium to your image by adding this line to your `conf/local.conf`:
```
IMAGE_INSTALL:append = " chromium-ozone-wayland"
```

5. Build your image with Chromium included:
```
bitbake imx-image-multimedia
```

Alternatively, you can build just the Chromium package:
```
bitbake chromium-ozone-wayland
```

## Important Notes:
- Use `DISTRO=fsl-imx-wayland` instead of `fsl-imx-xwayland` for proper Chromium implementation
- The default chromium layer provided in NXP Yocto should be used rather than manually downloading meta-chromium
- If you're encountering build issues with an existing build, use `bitbake -f chromium-ozone-wayland` to force a rebuild
- Chromium will not work with `core-image-minimal`; use a more complete image like `imx-image-multimedia` or `imx-image-full`

This configuration should resolve the compilation error you encountered with the Chromium browser on your IMX8MP platform.

regards

0 Kudos
Reply
262 Views
logic887
Contributor III
This only has version 6.1.36, not 6.6.36. I can compile Chromium using 6.1.36, but Yocto using 6.6.36 won't work.
https://github.com/nxp-imx/meta-imx/tree/scarthgap-6.6.36-2.1.0
I pulled yocto here
0 Kudos
Reply
281 Views
logic887
Contributor III

are you sure?This only has version 6.1.36, not 6.6.36. I can compile Chromium using 6.1.36, but Yocto using 6.6.36 won't work.

logic887_0-1765243077156.png

 

0 Kudos
Reply
280 Views
logic887
Contributor III
0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2257013%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EHow%20to%20compile%20the%20Chromium%20browser%20using%20Yocto%20on%20Linux%20version%206.6.36%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2257013%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CBR%20%2F%3EMy%20current%20platform%20is%20IMX8MP%2C%20and%20I%20downloaded%20the%20Linux%20version%206.6.36%20of%20Yocto%2C%20but%20how%20do%20I%20compile%20the%20Chromium%20browser%3F%3CBR%20%2F%3E%3CBR%20%2F%3EI%20added%20%60IMAGE_INSTALL%3Aappend%20%3D%20%22chromium-ozone-wayland%22%60%20to%20%60conf%2Flocal.conf%60%2C%20and%20then%20executed%20%60bitbake%20chromium-ozone-wayland%60%2C%20which%20resulted%20in%20the%20following%20error.%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22logic887_0-1765184746906.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22logic887_0-1765184746906.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F368933i0A2993DFE222FB38%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22logic887_0-1765184746906.png%22%20alt%3D%22logic887_0-1765184746906.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-2257580%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%20How%20to%20compile%20the%20Chromium%20browser%20using%20Yocto%20on%20Linux%20version%206.6.36%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2257580%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EThis%20only%20has%20version%206.1.36%2C%20not%206.6.36.%20I%20can%20compile%20Chromium%20using%206.1.36%2C%20but%20Yocto%20using%206.6.36%20won't%20work.%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fnxp-imx%2Fmeta-imx%2Ftree%2Fscarthgap-6.6.36-2.1.0%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2Fnxp-imx%2Fmeta-imx%2Ftree%2Fscarthgap-6.6.36-2.1.0%3C%2FA%3E%3CBR%20%2F%3EI%20pulled%20yocto%20here%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2257510%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%20How%20to%20compile%20the%20Chromium%20browser%20using%20Yocto%20on%20Linux%20version%206.6.36%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2257510%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fnxp-imx%2Fmeta-imx%2Ftree%2Fscarthgap-6.6.36-2.1.0%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2Fnxp-imx%2Fmeta-imx%2Ftree%2Fscarthgap-6.6.36-2.1.0%3C%2FA%3E%3CBR%20%2F%3EI%20pulled%20yocto%20here%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2257508%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%20How%20to%20compile%20the%20Chromium%20browser%20using%20Yocto%20on%20Linux%20version%206.6.36%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2257508%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3Eare%20you%20sure%EF%BC%9FThis%20only%20has%20version%206.1.36%2C%20not%206.6.36.%20I%20can%20compile%20Chromium%20using%206.1.36%2C%20but%20Yocto%20using%206.6.36%20won't%20work.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22logic887_0-1765243077156.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22logic887_0-1765243077156.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F369020iED87EE6AB3862ECE%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22logic887_0-1765243077156.png%22%20alt%3D%22logic887_0-1765243077156.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-2257216%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%20How%20to%20compile%20the%20Chromium%20browser%20using%20Yocto%20on%20Linux%20version%206.6.36%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2257216%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3C%2FP%3E%0A%3CP%3E%3CSPAN%3E%3CBR%20%2F%3E1.%20Initialize%20the%20repository%20with%20the%20proper%20manifest%3A%3CBR%20%2F%3E%60%60%60%3CBR%20%2F%3Erepo%20init%20-u%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fnxp-imx%2Fimx-manifest%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2Fnxp-imx%2Fimx-manifest%3C%2FA%3E%20-b%20imx-linux-mickledore%20-m%20imx-6.6.36-2.2.2.xml%3CBR%20%2F%3E%60%60%60%3CBR%20%2F%3E%3CBR%20%2F%3E2.%20Synchronize%20the%20repository%3A%3CBR%20%2F%3E%60%60%60%3CBR%20%2F%3Erepo%20sync%3CBR%20%2F%3E%60%60%60%3CBR%20%2F%3E%3CBR%20%2F%3E3.%20Set%20up%20the%20build%20environment%3A%3CBR%20%2F%3E%60%60%60%3CBR%20%2F%3EMACHINE%3Dimx8mp-lpddr4-evk%20DISTRO%3Dfsl-imx-wayland%20source%20.%2Fimx-setup-release.sh%20-b%20build_imx8mp%3CBR%20%2F%3E%60%60%60%3CBR%20%2F%3E%3CBR%20%2F%3E4.%20Add%20Chromium%20to%20your%20image%20by%20adding%20this%20line%20to%20your%20%60conf%2Flocal.conf%60%3A%3CBR%20%2F%3E%60%60%60%3CBR%20%2F%3EIMAGE_INSTALL%3Aappend%20%3D%20%22%20chromium-ozone-wayland%22%3CBR%20%2F%3E%60%60%60%3CBR%20%2F%3E%3CBR%20%2F%3E5.%20Build%20your%20image%20with%20Chromium%20included%3A%3CBR%20%2F%3E%60%60%60%3CBR%20%2F%3Ebitbake%20imx-image-multimedia%3CBR%20%2F%3E%60%60%60%3CBR%20%2F%3E%3CBR%20%2F%3EAlternatively%2C%20you%20can%20build%20just%20the%20Chromium%20package%3A%3CBR%20%2F%3E%60%60%60%3CBR%20%2F%3Ebitbake%20chromium-ozone-wayland%3CBR%20%2F%3E%60%60%60%3CBR%20%2F%3E%3CBR%20%2F%3E%23%23%20Important%20Notes%3A%3CBR%20%2F%3E-%20Use%20%60DISTRO%3Dfsl-imx-wayland%60%20instead%20of%20%60fsl-imx-xwayland%60%20for%20proper%20Chromium%20implementation%3CBR%20%2F%3E-%20The%20default%20chromium%20layer%20provided%20in%20NXP%20Yocto%20should%20be%20used%20rather%20than%20manually%20downloading%20meta-chromium%3CBR%20%2F%3E-%20If%20you're%20encountering%20build%20issues%20with%20an%20existing%20build%2C%20use%20%60bitbake%20-f%20chromium-ozone-wayland%60%20to%20force%20a%20rebuild%3CBR%20%2F%3E-%20Chromium%20will%20not%20work%20with%20%60core-image-minimal%60%3B%20use%20a%20more%20complete%20image%20like%20%60imx-image-multimedia%60%20or%20%60imx-image-full%60%3CBR%20%2F%3E%3CBR%20%2F%3EThis%20configuration%20should%20resolve%20the%20compilation%20error%20you%20encountered%20with%20the%20Chromium%20browser%20on%20your%20IMX8MP%20platform.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3Eregards%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2257021%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%20How%20to%20compile%20the%20Chromium%20browser%20using%20Yocto%20on%20Linux%20version%206.6.36%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2257021%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22logic887_0-1765185113628.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22logic887_0-1765185113628.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F368934iEDE1E4635CB2995A%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22logic887_0-1765185113628.png%22%20alt%3D%22logic887_0-1765185113628.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3ESetting%20%60CORE_IMAGE_EXTRA_INSTALL%20%2B%3D%20%22chromium-ozone-wayland%22%60%20will%20result%20in%20the%20following%20error%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22logic887_1-1765185213355.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22logic887_1-1765185213355.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F368935i5BA626BE0E4153E9%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22logic887_1-1765185213355.png%22%20alt%3D%22logic887_1-1765185213355.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E