Firefly开源社区

12
发表新贴
打印 上一主题 下一主题

[技术讨论] SDK编译问题

23

积分

0

威望

0

贡献

技术小白

积分
23

SDK编译问题

发表于 2022-5-7 11:13:29      浏览:4897 | 回复:15        打印      只看该作者   [复制链接] 楼主
  • 固件类型: 官方提供的固件
  • 固件文件名称: 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

br.zip

1.42 MB, 下载次数: 0, 下载积分: 灯泡 -1 , 经验 -1

回复

使用道具 举报

1万

积分

7

威望

0

贡献

技术大神

Rank: 8Rank: 8

积分
11377

突出贡献

发表于 2022-5-7 11:56:48        只看该作者  沙发
直接执行全编译 ./build.sh 能顺利编译吗
回复

使用道具 举报

23

积分

0

威望

0

贡献

技术小白

积分
23
发表于 2022-5-7 11:57:37        只看该作者  板凳
799959745 发表于 2022-5-7 11:56
直接执行全编译 ./build.sh 能顺利编译吗

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

使用道具 举报

1万

积分

7

威望

0

贡献

技术大神

Rank: 8Rank: 8

积分
11377

突出贡献

发表于 2022-5-7 14:13:52        只看该作者  地板
jiesu.zju 发表于 2022-5-7 11:57
不能,和这个顺序执行步骤一样的位置出现bug

看一下当前的版本
  1. cd path-to-sdk/
  2. realpath .repo/manifest.xml
复制代码

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

使用道具 举报

23

积分

0

威望

0

贡献

技术小白

积分
23
发表于 2022-5-7 14:16:03        只看该作者  5#
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
回复

使用道具 举报

1万

积分

7

威望

0

贡献

技术大神

Rank: 8Rank: 8

积分
11377

突出贡献

发表于 2022-5-7 14:35:18        只看该作者  6#
jiesu.zju 发表于 2022-5-7 14:16
执行结果如下:
/home/j/v/carton_det/1126_linux_release/.repo/manifests/rv1126_rv1109/rv1126_rv110 ...

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

使用道具 举报

23

积分

0

威望

0

贡献

技术小白

积分
23
发表于 2022-5-7 14:39:08        只看该作者  7#
799959745 发表于 2022-5-7 14:35
看log似乎是缺少time程序。试着安装time相关的程序解决。

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

使用道具 举报

1万

积分

7

威望

0

贡献

技术大神

Rank: 8Rank: 8

积分
11377

突出贡献

发表于 2022-5-7 14:48:24        只看该作者  8#
本地路径有 /usr/bin/time 程序吗
回复

使用道具 举报

23

积分

0

威望

0

贡献

技术小白

积分
23
发表于 2022-5-7 14:49:19        只看该作者  9#
799959745 发表于 2022-5-7 14:48
本地路径有 /usr/bin/time 程序吗

ls过了,有的
回复

使用道具 举报

1万

积分

7

威望

0

贡献

技术大神

Rank: 8Rank: 8

积分
11377

突出贡献

发表于 2022-5-7 14:50:27        只看该作者  10#
  1. 2022-05-07T09:34:11 CMake Error in CMakeLists.txt:
  2. 2022-05-07T09:34:11 Imported target "PkgConfig::GLIB" includes non-existent path
复制代码

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

使用道具 举报

返回列表
12
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

友情链接 : 爱板网 电子发烧友论坛 云汉电子社区 粤ICP备14022046号-2
快速回复 返回顶部 返回列表