Debian 10 编译安装chromium

ThanksView 2023-03-02 14:08:08
1,安装软件依赖包:apt-get install 

build-essential

2,  下载代码和debian打包配置文件

http://security.debian.org/debian-security/pool/updates/main/c/chromium-browser/chromium-browser_52.0.2743.116.orig.tar.xz
http://security.debian.org/debian-security/pool/updates/main/c/chromium-browser/chromium-browser_52.0.2743.116-1~deb8u1.debian.tar.xz

修改编译代码:

1. 解压

tar xf chromium-browser_52.0.2743.116.orig.tar.xz tar xf chromium-browser_52.0.2743.116-1~deb8u1.debian.tar.xz mv debian chromium-52.0.2743.116/

3. 修改编译规则

3.1 修改文件 debian/rules, defines中添加

symbol_level=0



3.2 修改debian/control, Architecture 都改成all, 除了Package: chromium-dbg, 我们不需要chromium的debug信息

 

3.3 修改debian/scripts/chromium, 删除下面的内容


osse2="\ The hardware on this system lacks support for the sse2 instruction set.

The upstream chromium project no longer supports this configuration.

For more information, please read and possibly provide input to their

bug tracking system at http://crbug.com/348761."  # Check whether this system supports sse2 if test -z "$(grep sse2 /proc/cpuinfo)"; then xmessage "$nosse2" exit 1 fi



因为我们copy的debian 配置文件都是针对x86平台的, arm平台没有sse,这个就不需要了


4. 编译debian pakcage

dpkg-buildpackage


第一次编译会出现dependence的问题,按照提示的要求把缺少的包安装下,然后就继续这条命令

中间有简单的问题调整的话,请使用

fakeroot debian/rules binary

回帖列表
4111111111111111 2025-03-30 09:39:23
1
4111111111111111 2025-03-30 09:39:22
1
4111111111111111 2025-03-30 09:39:22
1
4111111111111111 2025-03-30 09:39:22
1
4111111111111111 2025-03-30 09:39:10
1
4111111111111111 2025-03-30 09:39:10
1
4111111111111111 2025-03-30 09:39:10
1
4111111111111111 2025-03-30 09:39:09
1
4111111111111111 2025-03-30 09:39:00
1
4111111111111111 2025-03-30 09:38:55
1
上拉显示下一页
1/ 3
粤ICP备18089419号