最新版OpenWrt编译教程,解决依赖问题
2017-08-20 18:07
711 查看
-
Install
git
, to conveniently download the OpenWrt source code, andbuild tools
to do the cross-compilation process: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 viasubversion
(short:svn
) ormercurial
. 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) -
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/
我在第一次编译OpenWRT时,出现例如以下错误提示:
gconvert.c:66:2: error: #error GNU libiconv not in use but included iconv.h is from libiconv
我在网上找解决方式,结果一致地都是说,又一次 ./configure 一下:
./configure --enable-iconv=no --with-libiconv=gnu make
可问题的关键是:OpenWRT的trunk路径下没见有个 configure 呀!
后来,经过细致推敲,发现是在编glib时没通过。
$ find -name "gconvert.c" ./build_dir/host/pkg-config-0.28/glib/glib/gconvert.c
那我就直接进到 ./build_dir/host/pkg-config-0.28/glib/ 路径下。发现该路径下有 configure 文件。
那我说直接在该路径下编译 glib
$ cd build_dir/host/pkg-config-0.28/glib/ ./configure --enable-iconv=no --with-libiconv=gnu make
这样。glib 就顺利通过了编译。
再回到 OpenWRT的trunk路径下,继续 make.
相关文章推荐
- 最新版OpenWrt/Lede编译教程,解决依赖问题,最新gcc问题
- maven 编译报依赖错误的问题及解决方法
- 重写kinect2_viewer,编译高博kinect2在orbslam2上跑的程序(解决cmakefile中库依赖和头文件的问题)
- 高通AR增强现实最新教程unity3d遇见的问题和解决办法
- openwrt编译自己的package时遇到缺失libpthread.so.0依赖的问题
- centOS6.5-64位系统下编译hadoop2.2.0源码解决依赖本地库问题
- Jetson TX1刷机教程(解决Auvidea carrier boards(2x USB3.0)+ 源码编译安装opencv3.2存储空间不足问题)
- Linphone android 最新版编译(解决android5.0以上无法运行问题)
- 2017年最新cocoapods安装教程(解决淘宝镜像源无效以及其他源下载慢问题)
- 交叉编译库依赖问题的解决方法
- rsyslog编译依赖问题解决
- Maven教程-解决web项目发布到tomcat中没有lib依赖的问题
- 编译OpenWRT过程问题解决
- 解决TensorFlow最新代码编译错误问题
- 手动编译LUCI 到 openwrt中 并且解决'/bin/po2lmo': Permission denied问题
- redhat 安装yum教程(解决依赖关系)-bash: yum: command not found 问题解决
- Maven教程-解决web项目发布到tomcat中没有lib依赖的问题
- AndEngine最新环境配置教程 解决ADT17及以上AndEngine启动崩溃问题
- ubuntu解决程序编译运行的依赖问题方法论
- 交叉编译库依赖问题的解决方法