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




你可能感兴趣的:(yocto)