银河麒麟(arm64)编译CEF3

1.下载代码http://opensource.spotify.com/cefbuilds/index.html

2.安装libgtkglext1-dev

如果机器可以连接互联网,直接apt-get安装

sudo apt-get install libgtkglext1-dev

如果机器无法连接互联网,可以从https://pkgs.org/下载以下安装包,拷贝到目标机离线安装:

libpangox-1.0-0_0.0.2-5_arm64.deb
libpangox-1.0-dev_0.0.2-5_arm64.deb
libxmu-dev_1.1.2-2_arm64.deb
libxmu-headers_1.1.2-2_all.deb
libxmu6_1.1.2-2_arm64.deb
libgtkglext1-dev_1.2.0-3.2fakesync1ubuntu1_arm64.deb

3.编译

进入解压后的源码目录:
cmake . -DPROJECT_ARCH="arm64" //生成Makefile
make //编译

等待编译结束,如果没有报错,说明编译完成。

4.测试

cd tests/cefclient/Release
./cefclient --single-process --no-sandbox --disable-gpu-compositing --url="https://www.baidu.com/"

评论

Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×