ubuntu 12.04 yocto build Qt5.8.0 for imx6Q

备忘记录:

mkdir ~/bin
PATH=~/bin:$PATH
curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
curl https://mirrors.tuna.tsinghua.edu.cn/git/git-repo -o repo
chmod a+x ~/bin/repo

repo的运行过程中会尝试访问官方的git源更新自己,如果想使用tuna的镜像源进行更新,可以将如下内容复制到你的~/.bashrc里
export REPO_URL='https://mirrors.tuna.tsinghua.edu.cn/git/git-repo/'

mkdir fsl-release-bsp
cd fsl-release-bsp
repo init -u git://git.freescale.com/imx/fsl-arm-yocto-bsp.git -b imx-4.1-krogoth

repo sync


遇到一些问题:需要安装python3.4.X版本,tar-1.29版本,gcc4.8.0版本

sudo apt-get install -y build-essential libncursesw5-dev libreadline6-dev \
                        libssl-dev libgdbm-dev libc6-dev libsqlite3-dev \
                        tk-dev bzip2 libbz2-dev
                        

https://www.python.org/ftp/python/3.4.3/

编译python3.4.3

export FORCE_UNSAFE_CONFIGURE=1
 ./configure
 make

 make install

安装gcc4.8版本

sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
apt-get install gcc-4.8
apt-get install g++-4.8
sudo apt-get install gcc-4.8-multilib

sudo apt-get install g++-4.8-multilib

update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.6 50

update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.6 50
update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 30
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 30

设置切换gcc4.8和gcc4.6 方法

update-alternatives --config g++

update-alternatives --config gcc




  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值