zoukankan      html  css  js  c++  java
  • QT5环境搭建

    Ubuntu版本:测试用12.04,尽可能最新推荐14.04.
    板级支持包:fsl-release-bsp.tar.gz 
    /***************************************ReadMe*************************************************/
    Freescale's Community Yocto BSP
    ===============================
    
    To get the BSP you need to have `repo` installed and use it as:
    
    Install the `repo` utility:
    
    $: mkdir ~/bin
    $: curl http://commondatastorage.googleapis.com/git-repo-downloads/repo  > ~/bin/repo
    $: chmod a+x ~/bin/repo
    $: PATH=${PATH}:~/bin
    
    Download the BSP Yocto Project Environment
    
    $: mkdir fsl-arm-yocto-bsp
    $: cd fsl-arm-yocto-bsp
    $: repo init -u git://git.freescale.com/imx/fsl-arm-yocto-bsp.git -b imx-3.14.28-1.0.0_ga
    $: repo sync
    
    Setup and Build for X11
    $: MACHINE=imx6qsabresd source fsl-setup-release.sh -b build-x11 -e x11
    
    For all backends
    Build without QT
    $: bitbake fsl-image-gui
    
    Build with QT5 for X11, FB and Wayland (unsupported for DirectFB)
    $: bitbake fsl-image-qt5
    
    Setup and Build for FB 
    $: MACHINE=<machine name> source fsl-setup-release.sh -b build-fb -e fb
    
    Setup and Build for Wayland 
    $: MACHINE=<machine name> source fsl-setup-release.sh -b build-wayland -e wayland
    
    Setup and Build for DirectFB
    $: MACHINE=<machine name> source fsl-setup-release.sh -b build-dfb -e dfb

    /**********************************************************************************************/

    /****************************************系统配置************************************************/

    • A) Yocto
    $ sudo apt-get update
    
    $ sudo apt-get install sed wget cvs subversion git-core coreutils unzip texi2html texinfo libsdl1.2-dev docbook-utils gawk python-pysqlite2 diffstat help2man make gcc build-essential g++ desktop-file-utils chrpath libgl1-mesa-dev libglu1-mesa-dev mercurial autoconf automake groff curl
    
    $ sudo apt-get install lzop
    
    $ sudo apt-get install asciidoc
    
    $ cd ~
    
    $ mkdir bin
    以下代码需要翻墙,可以先跳过。原始网页介绍how to download the source tree for a specific Android code-line
    $ curl http://git-repo.googlecode.com/files/repo-1.19> ./repo
    
    $ chmod a+x repo
    
    • B) LTIB
    $ sudo apt-get update
    
    $ sudo apt-get install gettext libgtk2.0-dev rpm bison m4 libfreetype6-dev
    
    $ sudo apt-get install libdbus-glib-1-dev liborbit2-dev intltool
    
    $ sudo apt-get install ccache ncurses-dev zlib1g zlib1g-dev gcc g++ libtool
    
    $ sudo apt-get install uuid-dev liblzo2-dev
    
    $ sudo apt-get install tcl dpkg
    
    $ sudo apt-get install asciidoc texlive-latex-base dblatex xutils-dev
    
    $ sudo apt-get install texlive texinfo
    
    $ sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0
    
    $ sudo apt-get install libc6-dev-i386
    
    $ sudo apt-get install u-boot-tools
    
    $ sudo apt-get install scrollkeeper
    
    $ sudo ln -s /usr/lib/x86_64-linux-gnu/librt.so   /usr/lib/librt.so
    
    $ sudo apt-get install gparted
    
    $ sudo apt-get install nfs-common nfs-kernel-server
    
    $ sudo apt-get install git-core git-doc git-email git-gui gitk
    
    $ sudo apt-get install meld atftpd
    
    $ mkdir fsl-release-bsp
    
    $ cd fsl-release-bsp
    
    $ git config --global user.name "Your Name"
    
    $ git config --global user.email "Your Email"
    
    $ git config --list
    
    $ repo init -u git://git.freescale.com/imx/fsl-arm-yocto-bsp.git -b imx-3.14.28-1.0.0_ga
    
    $ repo sync
     
     

    整合后:

    sudo apt-get update
    
    sudo apt-get upgrade
    
    sudo apt-get install sed wget cvs subversion git-core coreutils unzip texi2html texinfo libsdl1.2-dev docbook-utils gawk python-pysqlite2 diffstat help2man make gcc build-essential g++ desktop-file-utils chrpath libgl1-mesa-dev libglu1-mesa-dev mercurial autoconf automake groff curl lzop asciidoc  gettext libgtk2.0-dev rpm bison m4 libfreetype6-dev libdbus-glib-1-dev liborbit2-dev intltool ccache ncurses-dev zlib1g zlib1g-dev gcc g++ libtool uuid-dev liblzo2-dev tcl dpkg asciidoc texlive-latex-base dblatex xutils-dev texlive texinfo lib32z1 lib32ncurses5 lib32bz2-1.0 libc6-dev-i386 u-boot-tools scrollkeeper -y
    
    sudo ln -s /usr/lib/x86_64-linux-gnu/librt.so   /usr/lib/librt.so
    
    sudo apt-get install gparted nfs-common nfs-kernel-server git-core git-doc git-email git-gui gitk meld atftpd -y
    mkdir ~/bin
    
    echo 'PATH=~/bin:$PATH' >>~/.bashrc
    
    source ~/.bashrc
    
     
    curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
    
    chmod a+x ~/bin/repo
    
    mkdir fsl-release-bsp
    
    cd fsl-release-bsp
    git config --global user.name "Null"
    git config --global user.email "hetaoos@gmail.com"
    git config --list
    repo init -u git://git.freescale.com/imx/fsl-arm-yocto-bsp.git -b imx-3.14.28-1.0.0_ga
    repo sync
    
    MACHINE=imx6qsabresd source fsl-setup-release.sh -b build-x11 -e x11
    bitbake fsl-image-qt5

    /**********************************************************************************************/

    备注:lib32z1 lib32ncurses5 lib32bz2-1.0 libc6-dev-i386 没安装

    /****************************************安装过程************************************************/

    bjx@bjx-virtual-machine:~/$Desktop/tar xvfz fsl-release-bsp.tar.gz
    bjx@bjx-virtual-machine:~/$cd ~/home/bjx/Desktop
    bjx@bjx-virtual-machine:~/Desktop/fsl-release-bsp$./fsl-setup-release.sh
    bash: ./fsl-setup-release.sh: Permission denied
    bjx@bjx-virtual-machine:~/Desktop/fsl-release-bsp$ ls -al
    total 36
    drwxr-xr-x  4 bjx bjx 4096 May 25 11:06 .
    drwxr-xr-x  3 bjx bjx 4096 May 25 14:25 ..
    -r--r--r--  1 bjx bjx 6342 May 25 11:06 fsl-setup-release.sh
    -r--r--r--  1 bjx bjx 2104 May 25 11:06 README
    drwxr-xr-x  7 bjx bjx 4096 May 25 11:06 .repo
    -r-xr-xr-x  1 bjx bjx 6555 May 25 11:06 setup-environment
    drwxr-xr-x 11 bjx bjx 4096 May 25 11:06 sources
    bjx@bjx-virtual-machine:~/Desktop/fsl-release-bsp$ ./setup-environment 
    -e 
    Usage: source setup-environment <build-dir>
        <build-dir>: specifies the build directory location (required)
    
    If undefined, this script will set $MACHINE to 'imx6qsabresd'.
    
    -e 
    Supported machines: 
    	imx23evk
    	imx28evk
    	imx31pdk
    	imx35pdk
    	imx51evk
    	imx53ard
    	imx53qsb
    	imx6dlsabreauto
    	imx6dlsabresd
    	imx6qsabreauto
    	imx6qsabresd
    	imx6slevk
    	imx6solosabreauto
    	imx6solosabresd
    	ls1021aqds
    	ls1021atwr
    	twr-vf65gs10
    	cfa10036
    	cfa10037
    	cfa10049
    	cfa10055
    	cfa10056
    	cfa10057
    	cfa10058
    	cgtqmx6
    	cubox-i
    	imx233-olinuxino-maxi
    	imx233-olinuxino-micro
    	imx233-olinuxino-mini
    	imx233-olinuxino-nano
    	imx6dl-riotboard
    	imx6qsabrelite
    	m28evk
    	m53evk
    	nitrogen6x
    	nitrogen6x-lite
    	pcl052
    	pcm052
    	quartz
    	wandboard-dual
    	wandboard-quad
    	wandboard-solo
    
    To build for a machine listed above, run this script as:
    MACHINE=<machine> source setup-environment <build-dir>
    
    bjx@bjx-virtual-machine:~/Desktop/fsl-release-bsp$ MACHINE=imx6qsabresd source fsl-setup-release.sh -b build-x11 -e x11
    
    
    Build directory is  build-x11
    
     Using X11 backend with poky DIST_FEATURES
    Configuring for imx6qsabresd
    
    Some BSPs depend on libraries and packages which are covered by Freescale's
    End User License Agreement (EULA). To have the right to use these binaries in
    your images, you need to read and accept the following...
    
    LA_OPT_FSL_OPEN_3RD_PARTY_IP v6 February 2015
    
    IMPORTANT.  Read the following Freescale Semiconductor Software License
    Agreement ("Agreement") completely.    By selecting the "I Accept" button at
    the end of this page, you indicate that you accept the terms of the Agreement
    and you acknowledge that you have the authority, for yourself or on behalf of
    your company, to bind your company to these terms.  You may then download or
    install the file.
    
    FREESCALE SEMICONDUCTOR SOFTWARE LICENSE AGREEMENT
    
    This is a legal agreement between you, as an authorized representative of your
    employer, or if you have no employer, as an individual (together "you"), and
    Freescale Semiconductor, Inc. ("Freescale") and its Affiliates.  It concerns
    your rights to use the software identified in the Software Content Register
    and provided to you in binary or source code form and any accompanying written
    materials (the "Licensed Software"). The Licensed Software may include any
    updates or error corrections or documentation relating to the Licensed Software
    provided to you by Freescale under this License. In consideration for Freescale
    allowing you to access the Licensed Software, you are agreeing to be bound by
    the terms of this Agreement. If you do not agree to all of the terms of this
    Agreement, do not download or install the Licensed Software. If you change your
    mind later, stop using the Licensed Software and delete all copies of the
    Licensed Software in your possession or control. Any copies of the Licensed
    Software that you have already distributed, where permitted, and do not destroy
    will continue to be governed by this Agreement. Your prior use will also
    continue to be governed by this Agreement.
    
    1.       DEFINITIONS
    
    1.1.             "Affiliates" means, any corporation, or entity directly or
    indirectly controlled by, controlling, or under common control with Freescale.
    
    1.2.             "Essential Patent" means a patent to the limited extent that
    infringement of such patent cannot be avoided in remaining compliant with the
    technology standards implicated by the usage of any of the Licensed Software,
    including optional implementation of the standards, on technical but not
    commercial grounds, taking into account normal technical practice and the state
    of the art generally available at the time of standardization.
    [Press 'h' for instructions.]
    Most commands optionally preceded by integer argument k.  Defaults in brackets.
    Star (*) indicates argument becomes new default.
    -------------------------------------------------------------------------------
    <space>                 Display next k lines of text [current screen size]
    z                       Display next k lines of text [current screen size]*
    <return>                Display next k lines of text [1]*
    d or ctrl-D             Scroll k lines [current scroll size, initially 11]*
    q or Q or <interrupt>   Exit from more
    s                       Skip forward k lines of text [1]
    f                       Skip forward k screenfuls of text [1]
    b or ctrl-B             Skip backwards k screenfuls of text [1]
    '                       Go to place where previous search started
    =                       Display current line number
    /<regular expression>   Search for kth occurrence of regular expression [1]
    n                       Search for kth occurrence of last r.e [1]
    !<cmd> or :!<cmd>       Execute <cmd> in a subshell
    v                       Start up /usr/bin/vi at current line
    ctrl-L                  Redraw screen
    :n                      Go to kth next file [1]
    :p                      Go to kth previous file [1]
    :f                      Display current file name and line number
    .                       Repeat previous command
    -------------------------------------------------------------------------------
    [Press 'h' for instructions.]
    Most commands optionally preceded by integer argument k.  Defaults in brackets.
    Star (*) indicates argument becomes new default.
    -------------------------------------------------------------------------------
    <space>                 Display next k lines of text [current screen size]
    z                       Display next k lines of text [current screen size]*
    <return>                Display next k lines of text [1]*
    d or ctrl-D             Scroll k lines [current scroll size, initially 11]*
    q or Q or <interrupt>   Exit from more
    s                       Skip forward k lines of text [1]
    f                       Skip forward k screenfuls of text [1]
    b or ctrl-B             Skip backwards k screenfuls of text [1]
    '                       Go to place where previous search started
    =                       Display current line number
    /<regular expression>   Search for kth occurrence of regular expression [1]
    n                       Search for kth occurrence of last r.e [1]
    !<cmd> or :!<cmd>       Execute <cmd> in a subshell
    v                       Start up /usr/bin/vi at current line
    ctrl-L                  Redraw screen
    :n                      Go to kth next file [1]
    :p                      Go to kth previous file [1]
    :f                      Display current file name and line number
    .                       Repeat previous command
    -------------------------------------------------------------------------------
    
    Do you accept the EULA you just read? (y/n)

    EULA has been accepted.

    Welcome to Freescale Community BSP

    The Yocto Project has extensive documentation about OE including a
    reference manual which can be found at:
        http://yoctoproject.org/documentation

    For more information about OpenEmbedded see their website:
        http://www.openembedded.org/

    You can now run 'bitbake <target>'

    Common targets are:
        core-image-minimal
        meta-toolchain
        meta-toolchain-sdk
        adt-installer
        meta-ide-support

    Your build environment has been configured with:

        MACHINE=imx6qsabresd
        SDKMACHINE=i686
        DISTRO=poky
        EULA=1
    bjx@bjx-virtual-machine:~/Desktop/fsl-release-bsp/build-x11$

    bjx@bjx-virtual-machine:~/Desktop/fsl-release-bsp/build-x11$ bitbake fsl-image-qt5

    ERROR:  OE-core's config sanity checker detected a potential misconfiguration.
        Either fix the cause of this error or at your own risk disable the checker (see sanity.conf).
        Following is the list of potential problems / advisories:
    
        Unable to execute git --version, exit code 32512
    Please install the following missing utilities: diffstat,makeinfo,git,gawk,chrpath
    libsdl-native is set to be ASSUME_PROVIDED but sdl-config can't be found in PATH. Please either install it, or configure qemu not to require sdl.
    
    Summary: There was 1 ERROR message shown, returning a non-zero exit code.
    bjx@bjx-virtual-machine:~/Desktop/fsl-release-bsp/build-x11$ 
    ERROR:缺少Linux系统配置
    按照系统配置安装步骤操作。
     
     
    安装出现问题:

    E: Package 'lib32z1' has no installation candidate
    E: Package 'lib32ncurses5' has no installation candidate
    E: Package 'lib32bz2-1.0' has no installation candidate
    E: Package 'libc6-dev-i386' has no installation candidate
    bjx@bjx:-virtual-machine:~$

    解决办法:

    sudo apt-get install libc6:i386
    sudo -i
    cd /etc/apt/sources.list.d
    echo "deb http://old-releases.ubuntu.com/ubuntu/ raring main restricted universe multiverse" >ia32-libs-raring.list
    apt-get update
    apt-get install ia32-libs
    rm /etc/apt/sources.list.d/ia32-libs-raring.list
    apt-get update
    exit
    sudo apt-get install gcc-multilib
  • 相关阅读:
    Tensorflow从入门到精通之——Tensorflow基本操作
    Tensorflow从入门到精通之——Tensorflow基本操作
    卷积神经网络概述-七月在线机器学习集训营手把手教你从入门到精通卷积神经网络
    梳理百年深度学习发展史-七月在线机器学习集训营助你把握深度学习浪潮
    K-means聚类 的 Python 实现
    我在 B 站学习深度学习(生动形象,跃然纸上)
    我在 B 站学机器学习(Machine Learning)- 吴恩达(Andrew Ng)【中英双语】
    Eclipse新建Java工程出现红色感叹号怎么解决?
    SQL Server 2012安装时报错,错误 0x80070422怎么解决?解决方法。
    Shift键的三个妙用!Word又现神操作!
  • 原文地址:https://www.cnblogs.com/yechuang/p/4527791.html
Copyright © 2011-2022 走看看