首页 > 代码库 > Ubuntu下配置交叉编译环境

Ubuntu下配置交叉编译环境

ljz@ljz-ubuntu:~$ sudo apt-get update
# 如果不安装 gawk subversion wine1.6-dev 编译会报错
ljz@ljz-ubuntu:~$ sudo apt-get install git-core build-essential libssl-dev libncurses5-dev unzip gawk subversion wine1.6-dev
ljz@ljz-ubuntu:~$ git clone git://git.openwrt.org/openwrt.git
ljz@ljz-ubuntu:~$ cd openwrt
ljz@ljz-ubuntu:~$ make defconfig
ljz@ljz-ubuntu:~$ make prereq
ljz@ljz-ubuntu:~$ make menuconfig
 # 编译过程中会下载一些依赖库,最好在FQ的环境下进行编译,比如proxychains4 make V=s
ljz@ljz-ubuntu:~$ make V=s

 

Ubuntu下配置交叉编译环境