编译源码时出现错误,TypeError: 'NoneType' object is not iterable
-
需要的软件和库都按照“编译固件章节”安装了,就是卡在这里过不了,不知道什么原因?
root@ubuntu:/home/jacky/Documents/openmv-master# sudo make -j$(nproc) -C src/micropython/mpy-cross
make: Entering directory '/home/jacky/Documents/openmv-master/src/micropython/mpy-cross'
Use make V=1 or set BUILD_VERBOSE in your environment to increase build verbosity.
Traceback (most recent call last):
File "../py/makeversionhdr.py", line 106, in
make_version_header(sys.argv[1])
File "../py/makeversionhdr.py", line 73, in make_version_header
omv_git_tag, omv_git_hash = get_version_info_from_git(omv_repo)
TypeError: 'NoneType' object is not iterable
../py/py.mk:241: recipe for target 'build/genhdr/mpversion.h' failed
make: *** [build/genhdr/mpversion.h] Error 1
make: Leaving directory '/home/jacky/Documents/openmv-master/src/micropython/mpy-cross'
root@ubuntu:/home/jacky/Documents/openmv-master#交叉编码工具版本:
root@ubuntu:/home/jacky/Documents/openmv-master# arm-none-eabi-gcc -v
Using built-in specs.
COLLECT_GCC=arm-none-eabi-gcc
COLLECT_LTO_WRAPPER=/usr/bin/../lib/gcc/arm-none-eabi/7.3.1/lto-wrapper
Target: arm-none-eabi
Configured with: /build/gcc-arm-none-eabi-Ubq5Xp/gcc-arm-none-eabi-7-2018q2/src/gcc/configure --target=arm-none-eabi --prefix=/build/gcc-arm-none-eabi-Ubq5Xp/gcc-arm-none-eabi-7-2018q2/install-native --libexecdir=/build/gcc-arm-none-eabi-Ubq5Xp/gcc-arm-none-eabi-7-2018q2/install-native/lib --infodir=/build/gcc-arm-none-eabi-Ubq5Xp/gcc-arm-none-eabi-7-2018q2/install-native/share/doc/gcc-arm-none-eabi/info --mandir=/build/gcc-arm-none-eabi-Ubq5Xp/gcc-arm-none-eabi-7-2018q2/install-native/share/doc/gcc-arm-none-eabi/man --htmldir=/build/gcc-arm-none-eabi-Ubq5Xp/gcc-arm-none-eabi-7-2018q2/install-native/share/doc/gcc-arm-none-eabi/html --pdfdir=/build/gcc-arm-none-eabi-Ubq5Xp/gcc-arm-none-eabi-7-2018q2/install-native/share/doc/gcc-arm-none-eabi/pdf --enable-languages=c,c++ --enable-plugins --disable-decimal-float --disable-libffi --disable-libgomp --disable-libmudflap --disable-libquadmath --disable-libssp --disable-libstdcxx-pch --disable-nls --disable-shared --disable-threads --disable-tls --with-gnu-as --with-gnu-ld --with-newlib --with-headers=yes --with-python-dir=share/gcc-arm-none-eabi --with-sysroot=/build/gcc-arm-none-eabi-Ubq5Xp/gcc-arm-none-eabi-7-2018q2/install-native/arm-none-eabi --with-host-libstdcxx='-static-libgcc -Wl,-Bstatic,-lstdc++,-Bdynamic -lm' --with-pkgversion='GNU Tools for Arm Embedded Processors 7-2018-q3-update' --with-multilib-list=rmprofile
Thread model: single
gcc version 7.3.1 20180622 (release) [ARM/embedded-7-branch revision 261907] (GNU Tools for Arm Embedded Processors 7-2018-q3-update)python3版本:
Python 3.5.2 (default, Jan 26 2021, 13:30:48)
[GCC 5.4.0 20160609] on linux
-
你可以按照这个文档来编译:https://github.com/openmv/openmv/tree/master/src