加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

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

发布时间:2020-12-14 05:16:45 所属栏目:百科 来源:网络整理
导读: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

  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
    • for information about the build tools see? make?and? build-essential
    • for information about git see? git(7)
    • for information about the subversion tool see? svn?and? subversion documentation (multiple languages)
  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/

    (编辑:李大同)

    【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

      推荐文章
        热点阅读