Chromium on IMX8

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Chromium on IMX8

跳至解决方案
19,422 次查看
Giacomo_
Contributor II

Hello community,
I am trying to compile the chromium-ozone-wayland based on Yocto hardknott (imx-5.10.35-2.0.0.xml) on IMX8MQEVK board, but the compilation fails with the error:

| Package dri was not found in the pkg-config search path.
| Perhaps you should add the directory containing `dri.pc'
| to the PKG_CONFIG_PATH environment variable
| No package 'dri' found
|
| See //content/gpu/BUILD.gn:141:18: which caused the file to be included.
| configs += [ "//build/config/linux/dri" ]
| ^-------------------------
| WARNING: exit code 1 from a shell command.

In my previous version (Yocto Warrior) I was able to fix it by adding this dependency:

DEPENDS += " mesa "

but this trick no longer works, has anyone successfully compiled chromium?
I know... There is no support for Chromium, I am just asking.

 

 

标签 (2)
标记 (1)
0 项奖励
回复
1 解答
19,383 次查看
Jeroen_H
Contributor III

Just to let you know, I'm trying to buildby using this patch right now:

https://github.com/OSSystems/meta-browser/issues/528

Seach for "0013-Only-DRI-for-x11.txt" and adapt to your code version.

But, it takes a while to build Chromium, I'll post my finding later.

Hopefully DRI isn't needed on iMX8 and Wayland.

Cheers,

Jeroen.

在原帖中查看解决方案

12 回复数
10,039 次查看
karl1688
Contributor II

I've seen the similar problem when compile 117.0.5938.132.

And this problem has been resolved by following https://github.com/OSSystems/meta-browser/issues/528#issuecomment-2123583852

Looking for the last if condition, add more condition "ozone_platform_x11" then recompile Chromium browser.

 

117.0.5938.132

19,375 次查看
Rita_Wang
NXP TechSupport
NXP TechSupport
0 项奖励
回复
19,346 次查看
Jeroen_H
Contributor III

Hi!

Thanks for pointing us out to the document. I've already gone through these steps.

Unfortunately, adding mesa to the depends, and building seperately still produced errors during do_configure().

Kind regards,

Jeroen.

0 项奖励
回复
19,364 次查看
Giacomo_
Contributor II

Backporting? Yes, I can evaluate this too, thanks.

0 项奖励
回复
19,404 次查看
Giacomo_
Contributor II

here you are my bbappend:

chromium-ozone-wayland_83.0.4103.116.bbappend

it contains only one line:

DEPENDS += " mesa "

0 项奖励
回复
19,395 次查看
Jeroen_H
Contributor III

Okay, thanks, I'll have a look

0 项奖励
回复
19,384 次查看
Jeroen_H
Contributor III

Just to let you know, I'm trying to buildby using this patch right now:

https://github.com/OSSystems/meta-browser/issues/528

Seach for "0013-Only-DRI-for-x11.txt" and adapt to your code version.

But, it takes a while to build Chromium, I'll post my finding later.

Hopefully DRI isn't needed on iMX8 and Wayland.

Cheers,

Jeroen.

19,365 次查看
Giacomo_
Contributor II

Yes please, let me know the outcome.

0 项奖励
回复
19,347 次查看
Jeroen_H
Contributor III

Hi,

Building succeeded, I have chromium (83.0.4103.116) running now on iMX8M Mini, weston-wayland, and using the GPU of the iMX.

I'm using Zeus btw.

Performance looks good.

Still doing some testing, but I think you can take it from here

Jeroen.

0 项奖励
回复
18,818 次查看
r_trivedi123
Contributor IV

Hi Jeroen,
Can you share,

Which BSP you used ?
How did you build (for wayland running on GPU ) ? , basically build step doc or pointers.
Any performance statistics or issues you found ?

Appreciate your guidance.

--
Thanks
Rutvij

0 项奖励
回复
19,311 次查看
Giacomo_
Contributor II

Kudos to Jeroen (not the button only).

This is the way to go.

Thank you for helping!

0 项奖励
回复
19,408 次查看
Jeroen_H
Contributor III

Hi,

I have the same issue (iMX8M Mini, using Zeus 5.4.47) , no solution found yet.
Can you tell me the exact version of Yocto Warrior (or actually the version of Chromium) you've been using previously?

Just wanted to have a look at the differences....

0 项奖励
回复