SDK编译问题

固件类型:官方提供的固件
固件文件名称:rv1126_rv1109_linux_release_20211022.tgz
固件下载地址:百度网盘
Log日志:br.zip

操作系统环境:ubuntu 20.04 lts
用户:普通用户

运行软件环境:conda激活python 2.7软件环境
执行命令顺序:按照https://wiki.t-firefly.com/zh_CN/CORE-1126-JD4/Source_code.html的操作顺序,依次执行:
1、.repo/repo/repo sync -l

 .repo/repo/repo sync -c --no-tags

 .repo/repo/repo start firefly --all

2、sudo apt-get install repo git-core gitk git-gui gcc-arm-linux-gnueabihf u-boot-tools device-tree-compiler gcc-aarch64-linux-gnu mtools parted libudev-dev libusb-1.0-0-dev python-linaro-image-tools linaro-image-tools autoconf autotools-dev libsigsegv2 m4 intltool libdrm-dev curl sed make binutils build-essential gcc g++ bash patch gzip gawk bzip2 perl tar cpio python unzip rsync file bc wget libncurses5 libqt4-dev libglib2.0-dev libgtk2.0-dev libglade2-dev cvs git mercurial rsync openssh-client subversion asciidoc w3m dblatex graphviz python-matplotlib libc6:i386 libssl-dev expect fakeroot cmake flex bison liblz4-tool libtool keychain

3、./build.sh device/rockchip/rv1126_rv1109/aio-rv1126-jd4-BE-45-tb-v11.mk
4. ./build.sh uboot #这一步顺利完成

./build.sh kernel #这一步顺利完成

./build.sh rootfs #这一步报错了,错误信息如下:

2022-05-07T09:34:11 – Found PkgConfig: /home/j/v/carton_det/1126_linux_release/buildroot/output/firefly_rv1126_rv1109/host/bin/pkgconf (found version “0.28”)
2022-05-07T09:34:11 – Checking for module ‘glib-2.0’
2022-05-07T09:34:11 – Found glib-2.0, version 2.64.4
2022-05-07T09:34:11 – Checking for module ‘dbus-1’
2022-05-07T09:34:11 – Found dbus-1, version 1.12.2
2022-05-07T09:34:11 – Configuring done
2022-05-07T09:34:11 CMake Error in CMakeLists.txt:
2022-05-07T09:34:11 Imported target “PkgConfig::GLIB” includes non-existent path
2022-05-07T09:34:11
2022-05-07T09:34:11 “/home/j/v/carton_det/1126_linux_release/buildroot/output/firefly_rv1126_rv1109/host/arm-buildroot-linux-gnueabihf/sysroot/home/j/v/carton_det/1126_linux_release/buildroot/output/firefly_rv1126_rv1109/host/include/glib-2.0”
2022-05-07T09:34:11
2022-05-07T09:34:11 in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:
2022-05-07T09:34:11
2022-05-07T09:34:11 * The path was deleted, renamed, or moved to another location.
2022-05-07T09:34:11
2022-05-07T09:34:11 * An install or uninstall procedure did not complete successfully.
2022-05-07T09:34:11
2022-05-07T09:34:11 * The installation package was faulty and references files it does not
2022-05-07T09:34:11 provide.
2022-05-07T09:34:11
2022-05-07T09:34:11
2022-05-07T09:34:11
2022-05-07T09:34:11 – Generating done
2022-05-07T09:34:11 CMake Warning:
2022-05-07T09:34:11 Manually-specified variables were not used by the project:
2022-05-07T09:34:11
2022-05-07T09:34:11 BUILD_DOC
2022-05-07T09:34:11 BUILD_DOCS
2022-05-07T09:34:11 BUILD_EXAMPLE
2022-05-07T09:34:11 BUILD_EXAMPLES
2022-05-07T09:34:11 BUILD_TEST
2022-05-07T09:34:11 BUILD_TESTING
2022-05-07T09:34:11 BUILD_TESTS
2022-05-07T09:34:11
2022-05-07T09:34:11
2022-05-07T09:34:11 CMake Generate step failed. Build files cannot be regenerated correctly.
2022-05-07T09:34:11 make[1]: *** [package/pkg-generic.mk:221: /home/j/v/carton_det/1126_linux_release/buildroot/output/firefly_rv1126_rv1109/build/libgdbus/.stamp_configured] Error 1
2022-05-07T09:34:11 make: *** [/home/j/v/carton_det/1126_linux_release/buildroot/output/firefly_rv1126_rv1109/Makefile:16: _all] Error 2
Command exited with non-zero status 1
you take 50:04.51 to build builroot
ERROR: Running build_buildroot failed!
ERROR: exit code 1 from line 742:
/usr/bin/time -f “you take %E to build builroot” $COMMON_DIR/mk-buildroot.sh $BOARD_CONFIG
tchip_askquestions
br.zip (1.42 MB)

直接执行全编译 ./build.sh 能顺利编译吗

799959745 发表于 2022-5-7 11:56
直接执行全编译 ./build.sh 能顺利编译吗

不能,和这个顺序执行步骤一样的位置出现bug

jiesu.zju 发表于 2022-5-7 11:57
不能,和这个顺序执行步骤一样的位置出现bug

看一下当前的版本

cd path-to-sdk/
realpath .repo/manifest.xml

版本是最新的话还是编译过不了就只能用ubuntu18.04去编译了。

799959745 发表于 2022-5-7 14:13
看一下当前的版本

版本是最新的话还是编译过不了就只能用ubuntu18.04去编译了。

执行结果如下:
/home/j/v/carton_det/1126_linux_release/.repo/manifests/rv1126_rv1109/rv1126_rv1109_linux_release_20220324_v2.2.5b.xml

jiesu.zju 发表于 2022-5-7 14:16
执行结果如下:
/home/j/v/carton_det/1126_linux_release/.repo/manifests/rv1126_rv1109/rv1126_rv110 …

看log似乎是缺少time程序。试着安装time相关的程序解决。

799959745 发表于 2022-5-7 14:35
看log似乎是缺少time程序。试着安装time相关的程序解决。

具体是什么呢?我看log是包管理器关于GLIBC包含了一个不存在的路径的问题?

本地路径有 /usr/bin/time 程序吗

799959745 发表于 2022-5-7 14:48
本地路径有 /usr/bin/time 程序吗

ls过了,有的

jiesu.zju 发表于 2022-5-7 14:49
ls过了,有的

2022-05-07T09:34:11 CMake Error in CMakeLists.txt:
2022-05-07T09:34:11 Imported target "PkgConfig::GLIB" includes non-existent path

这一行有报错,查询一下怎么解决

799959745 发表于 2022-5-7 14:50
这一行有报错,查询一下怎么解决

正是因为这一行的报错不知道咋解决,才来打扰你们的

jiesu.zju 发表于 2022-5-7 14:53
正是因为这一行的报错不知道咋解决,才来打扰你们的

sudo apt install libglib2.0-dev

尝试一下安装glib相关的包吧,安装这个不行就把libglib相关的包都安装上看看行不

799959745 发表于 2022-5-7 15:05
尝试一下安装glib相关的包吧,安装这个不行就把libglib相关的包都安装上看看行不

sudo apt install libglib* -y
结果还是一样的,是否需要更改某个文件里面的路径指向?

jiesu.zju 发表于 2022-5-7 15:50
sudo apt install libglib* -y
结果还是一样的,是否需要更改某个文件里面的路径指向?

不需要,纯粹就是编译环境不一样。我们默认使用的是ubuntu18.04编译的。20.04编译需要自行解决问题

799959745 发表于 2022-5-7 17:23
不需要,纯粹就是编译环境不一样。我们默认使用的是ubuntu18.04编译的。20.04编译需要自行解决问题

你们可以在百度网盘上传你们的ubuntu18.04虚拟机,以保证编译环境的统一

18.04你就照着维基教程apt安装上面的应用就可以了