修改
PKG_MD5SUM:=d6dd661380adacdb12f41b926ec99545
为
PKG_MD5SUM:=d2d554c05fc07cfae7846d2aa205f12a
这个要跟具体下的包对应,每个版本对应md5值不一样,如果不知道,先不改PKG_MD5SUM然后编译,会提示错误
MD5 sum of the downloaded file does not match (file: d2d554c05fc07cfae7846d2aa205f12a, requested: d6dd661380adacdb12f41b926ec99545) - deleting download.
根据错误就知道怎么改了。
问题:
/home/zm/下载/guoxin/openwrt/build_dir/host/u-boot-2014.10/lib/rsa/rsa-sign.c: In function ‘rsa_get_exponent’:
/home/zm/下载/guoxin/openwrt/build_dir/host/u-boot-2014.10/lib/rsa/rsa-sign.c:279:21: error: dereferencing pointer to incomplete type ‘RSA {aka struct rsa_st}’
这个问题大致可以参考下面这个patch改,patch已经对应不上行号了,自己手动改吧
if (BN_num_bits(key->e) > 64)
make[5]: *** [scripts/Makefile.host:134: tools/lib/rsa/rsa-sign.o] Error 1
@@ -337,7 +357,8 @@ int rsa_get_params(RSA *key, uint64_t *exponent, uint32_t *n0_invp,
if (0 != rsa_get_exponent(key, exponent))
ret = -1;
- if (!BN_copy(n, key->n) || !BN_set_word(big1, 1L) ||
+ RSA_get0_key(key, NULL, &key_n, NULL);
+ if (!BN_copy(n, key_n) || !BN_set_word(big1, 1L) ||
!BN_set_word(big2, 2L) || !BN_set_word(big32, 32L))
ret = -1;
错误:
./scripts/dtc-version.sh: line 17: dtc: command not found
./scripts/dtc-version.sh: line 18: dtc: command not found
*** Your dtc is too old, please upgrade to dtc 1.4 or newer
解决:
系统中安装dtc命令
/usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such file or directory
compilation terminated.
make[7]: *** [Makefile:623: mdct.lo] Error 1
make[7]: Leaving directory '/home/zm/下载/guoxin/openwrt/build_dir/target-arm_cortex-a7+neon_glibc-2.22_eabi/libvorbis-1.3.5/lib'
需要安装glibc-devel-32bit
问题
[ 19%] Building CXX object Foundation/CMakeFiles/Foundation.dir/src/SignalHandler.cpp.o
checking for LIBUSB... no
configure: error: in `/home/zm/下载/guoxin/openwrt/build_dir/target-arm_cortex-a7+neon_glibc-2.22_eabi/usbutils-007':
configure: error: The pkg-config script could not be found or is too old. Make sure it
is in your PATH or set the PKG_CONFIG environment variable to the full
path to pkg-config.
Alternatively, you may set the environment variables LIBUSB_CFLAGS
and LIBUSB_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
[ 34%] Building C object CMakeFiles/blobmsg_json.dir/blobmsg_json.c.o
/home/zm/下载/guoxin/openwrt/build_dir/target-arm_cortex-a7+neon_glibc-2.22_eabi/libubox-2016-11-29/blobmsg_json.c:23:24: fatal error: json/json.h: No such file or directory
compilation terminated.
make[6]: *** [CMakeFiles/blobmsg_json.dir/build.make:63: CMakeFiles/blobmsg_json.dir/blobmsg_json.c.o] Error 1