bwgdl

Openwrt SDK交叉编译 最新版本aria2
下载SDK(下载openwrt对应版本的SDK)我的系统安装的是https://downloads.openwrt...
扫描右侧二维码阅读全文
12
2019/03

Openwrt SDK交叉编译 最新版本aria2

下载SDK(下载openwrt对应版本的SDK)

我的系统安装的是https://downloads.openwrt.org/releases/17.01.6/targets/oxnas/generic/
目录下的系统,所以下载此目录下对应的SDK

download

     1. wget https://downloads.openwrt.org/releases/17.01.6/targets/oxnas/generic/lede-sdk-17.01.6-oxnas_gcc-5.4.0_musl-1.1.16_eabi.Linux-x86_64.tar.xz
     2. tar xvf lede-sdk-17.01.6-oxnas_gcc-5.4.0_musl-1.1.16_eabi.Linux-x86_64.tar.xz
     3. cd lede-sdk-17.01.6-oxnas_gcc-5.4.0_musl-1.1.16_eabi.Linux-x86_64/

配置aria2下载的feed

安装必要的库

apt-get install gcc g++ binutils patch bzip2 flex bison make autoconf gettext texinfo unzip sharutils subversion libncurses5-dev ncurses-term zlib1g-dev gawk ccache

编译aria2 版本

./scripts/feeds update -a 
./scripts/feeds install aria2
vi feeds/packages/net/aria2/Makefile

修改版本 PKG_VERSION为1.34.0
注册掉PKG_MD5SUM

PKG_NAME:=aria2
PKG_VERSION:=1.34.0   
PKG_RELEASE:=1

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:=https://github.com/aria2/aria2/releases/download/release-$(PKG_VERSION)/
# PKG_MD5SUM:=8c22f569d3fb9e42c5fd9a95173b9b5f
PKG_INSTALL:=1

编译:

    make menuconfig

选择BT模块


按save后,一路exit退出

    make package/feeds/packages/aria2/compile V=99
    make package/feeds/packages/aria2/install V=99

编译完成

编译完成之后,ipk文件就在bin/packages/arm_mpcore/packages

版本切换 如果 Aria2 更新了,重新编译

A. 清理旧的编译版本

make package/feeds/packages/aria2/clean V=99

B. 修改 MakeFile

修改文件 feeds/packages/net/aria2/Makefile中的PKG_VERSION修改为你要的版本号,如:PKG_VERSION:=1.32.0

C. 重新编译

make package/feeds/packages/aria2/compile V=99

Last modification:March 16th, 2019 at 08:24 am
If you think my article is useful to you, please feel free to appreciate

Leave a Comment