centos下运行B2G

本文档详细介绍了如何在Linux环境下安装必要的软件包,包括GCC、Git等,以搭建B2G(Boot to Gecko)系统的开发环境,并提供了设置环境变量及配置SSH密钥的具体步骤。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

yum install gcc gcc-c++ make autoconf213

yum install glibc.x86_64 glibc.i686 glibc-devel.x86_64 glibc-devel.i686 zlib.x86_64 zlib-devel.x86_64 zlib-devel.i686 ncurses ncurses-devel ncurses-libs.i686 ncurses-devel.i686  libX11 libX11-devel libX11.i686 libX11-devel.i686

yum install gcc gcc-c++  libstdc++.so.6 libstdc++.i686 readline-devel.i686  libXext.i686 libao.i686 alsa-lib.i686 openssl-devel.i686 expat-devel.i686 SDL-devel.i686 mesa-libGL.i686 mesa-libGLU.i686

yum install patch glibc-static perl-devel flex bison gperf glibc libstdc++ libX11 libXext libao alsa-lib glibc-devel zlib-devel libX11-devel expat-devel openssl-devel SDL-devel  valgrind

ln -s /usr/lib/libGL.so.1 /usr/lib/libGL.so

==============================================================
http://wikiserver.spreadtrum.com/Projects/SoftwareSystem/wiki/%E5%A6%82%E4%BD%95%E4%B8%8B%E8%BD%BDgitb2g
yum install git
安装repo
cd ~
mkdir bin
curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
chmod a+x ~/bin/repo

把repo的路径加入.bashrc
PATH=$PATH:~/bin

修改which repo输出的repo中REPO_URL变量
根据which repo找repo路径
编辑repo文件修改REPO_URL
REPO_URL='ssh://gitb2g@sprdroid.git.spreadtrum.com.cn/tools/repo.git'

先将adb加入.bashrc 如 PATH=$PATH:~/yourpath/B2G/out/host/linux-x86/bin
source /home/zdf/.bashrc
set
echo $PATH

在把其加入到sudo vi /etc/bashrc  
在最后一行加入 PATH=$PATH:~/yourpath/B2G/out/host/linux-x86/bin
sudo source /etc/bashrc
在/home/zdf和在/root(在root用户下的~下)下都做下面的操作
mkdir .android
echo 0x1782 > ~/.android/adb_usb.ini
cat ~/.android/adb_usb.ini


配置密钥
To generate your SSH key:
ssh-keygen -t rsa

This will generate two files under ~/.ssh: 'id_rsa' and 'id_rsa.pub'. Keep 'id_rsa' private. But you may distribute 'id_rsa.pub'. In fact, the git repository needs your 'id_rsa.pub' to add you into access control.
In order to have your SSH key remembered in your terminal session so that you don't have to input your key every time when using git, do the following procedures:
       Add the following line to your ~/.bashrc file:

       eval `ssh-agent`

       Note the quotation mark is back quote.
       After you log in from a remote terminal, add your private key into management:

       ssh-add ~/.ssh/id_rsa

       After adding the key, you will not be asked for passphrase anymore in your current terminal session. You have to do it for each login.

yum list autoconf*
yum install autoconf213.noarch

注意 git的目录一定要要为~/  下再编译,否则会有路径问题


git-core libreadline6-dev libxml2-utils python-markdown tofrodos xsltproc


/opt/firefox-nightly/firefox -profile /home/zdf/B2G/gaia/profile/ -no-remote /home/zdf/B2G/gaia/customize_apps/memo/index.html -width 480 -height 800

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值