微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

最新版OpenWrt编译教程,解决依赖问题

  1. Install  git ,to conveniently download the OpenWrt source code,and  build tools to do the cross-compilation process:
    sudo apt-get update
    sudo apt-get install git-core build-essential libssl-dev libncurses5-dev unzip
    Some Feeds might not available over git but only via  subversion (short:  svn) or  mercurial. If you want to obtain their source-code,you need to install svn and mercurial as well:
    sudo apt-get install subversion mercurial
  2. Download the OpenWrt bleeding edge(trunk Version) with  git ( see Downloading Sources for more options!):
    git clone git://git.openwrt.org/openwrt.git

    this creates a directory 'openwrt',which is the OpenWrt buildroot build-directory 
    the OpenWrt toolchain "OpenWrt buildroot" is included

  • ( optional) Download and install all available "Feeds" ( see OpenWrt Feeds for more options!):
    cd openwrt
    ./scripts/Feeds update -a
    ./scripts/Feeds install -a
  • Make OpenWrt buildroot check for missing packages on your build-system using one of the following commands:
    make defconfig
    make prereq
    make menuconfig

    There you will need to select what you want to compile.

  • Proceed with  build (i.e. cross-compile the downloaded sources to binaries)

    After the cross-compilation process the ''trunk''-directory contained 244,451 files with a total size of 3.2GiB!


  • 其他版本地址:http://git.openwrt.org/

    dl目录下载:http://downloads.openwrt.org.cn/sources/

    版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

    相关推荐