按贵司wiki编译buildroot,出现下面错误

本帖最后由 深圳市豪微光电 于 2022-2-7 21:19 编辑

按贵司wiki编译buildroot,出现下面错误, 按你们教程系统ubuntu18.04, 该装的已装,该初始化的环境变量已初始化.

2022-01-29T19:12:13 – Installing: /home/shawn/rk3399_linux_release_v2.5.1_20210301/buildroot/output/rockchip_rk3399/target/usr/bin/vpu_api_test
2022-01-29T19:12:27 >>> gstreamer1-rockchip master Syncing from source dir /home/shawn/rk3399_linux_release_v2.5.1_20210301/buildroot/../external/gstreamer-rockchip
2022-01-29T19:12:27 rsync -au --chmod=u=rwX,go=rX --exclude .svn --exclude .git --exclude .hg --exclude .bzr --exclude CVS /home/shawn/rk3399_linux_release_v2.5.1_20210301/buildroot/../external/gstreamer-rockchip/ /home/shawn/rk3399_linux_release_v2.5.1_20210301/buildroot/output/rockchip_rk3399/build/gstreamer1-rockchip-master
2022-01-29T19:12:28 >>> gstreamer1-rockchip master Configuring
2022-01-29T19:12:28 >>> gstreamer1-rockchip master Gettextizing
2022-01-29T19:12:28 gettextize: *** Missing configure.in or configure.ac, please cd to your package first.
2022-01-29T19:12:28 gettextize: *** Stop.
2022-01-29T19:12:28 package/pkg-generic.mk:246: recipe for target ‘/home/shawn/rk3399_linux_release_v2.5.1_20210301/buildroot/output/rockchip_rk3399/build/gstreamer1-rockchip-master/.stamp_configured’ failed
2022-01-29T19:12:28 make[1]: *** [/home/shawn/rk3399_linux_release_v2.5.1_20210301/buildroot/output/rockchip_rk3399/build/gstreamer1-rockchip-master/.stamp_configured] Error 1
2022-01-29T19:12:28 /home/shawn/rk3399_linux_release_v2.5.1_20210301/buildroot/output/rockchip_rk3399/Makefile:16: recipe for target ‘_all’ failed
2022-01-29T19:12:28 make: *** [_all] Error 2
2022-02-02T04:51:55 umask 0022 && make -C /home/shawn/rk3399_linux_release_v2.5.1_20210301/buildroot O=/home/shawn/rk3399_linux_release_v2.5.1_20210301/buildroot/output/rockchip_rk3399
2022-02-02T04:52:28 /usr/bin/make -j1 O=/home/shawn/rk3399_linux_release_v2.5.1_20210301/buildroot/output/rockchip_rk3399 HOSTCC=“/usr/bin/gcc” HOSTCXX=“/usr/bin/g++” silentoldconfig
2022-02-02T04:52:28 GEN /home/shawn/rk3399_linux_release_v2.5.1_20210301/buildroot/output/rockchip_rk3399/Makefile
2022-02-02T04:52:37 >>> gstreamer1-rockchip master Configuring
2022-02-02T04:52:37 >>> gstreamer1-rockchip master Gettextizing
2022-02-02T04:52:37 gettextize: *** Missing configure.in or configure.ac, please cd to your package first.
2022-02-02T04:52:37 gettextize: *** Stop.
2022-02-02T04:52:37 package/pkg-generic.mk:246: recipe for target ‘/home/shawn/rk3399_linux_release_v2.5.1_20210301/buildroot/output/rockchip_rk3399/build/gstreamer1-rockchip-master/.stamp_configured’ failed
2022-02-02T04:52:37 make[1]: *** [/home/shawn/rk3399_linux_release_v2.5.1_20210301/buildroot/output/rockchip_rk3399/build/gstreamer1-rockchip-master/.stamp_configured] Error 1
2022-02-02T04:52:37 /home/shawn/rk3399_linux_release_v2.5.1_20210301/buildroot/output/rockchip_rk3399/Makefile:16: recipe for target ‘_all’ failed
2022-02-02T04:52:37 make: *** [_all] Error 2
2022-02-07T04:51:20 umask 0022 && make -C /home/shawn/rk3399_linux_release_v2.5.1_20210301/buildroot O=/home/shawn/rk3399_linux_release_v2.5.1_20210301/buildroot/output/rockchip_rk3399
2022-02-07T04:51:43 /usr/bin/make -j1 O=/home/shawn/rk3399_linux_release_v2.5.1_20210301/buildroot/output/rockchip_rk3399 HOSTCC=“/usr/bin/gcc” HOSTCXX=“/usr/bin/g++” silentoldconfig
2022-02-07T04:51:44 GEN /home/shawn/rk3399_linux_release_v2.5.1_20210301/buildroot/output/rockchip_rk3399/Makefile
2022-02-07T04:51:48 >>> gstreamer1-rockchip master Configuring
2022-02-07T04:51:48 >>> gstreamer1-rockchip master Gettextizing
2022-02-07T04:51:48 gettextize: *** Missing configure.in or configure.ac, please cd to your package first.
2022-02-07T04:51:48 gettextize: *** Stop.
2022-02-07T04:51:48 package/pkg-generic.mk:246: recipe for target ‘/home/shawn/rk3399_linux_release_v2.5.1_20210301/buildroot/output/rockchip_rk3399/build/gstreamer1-rockchip-master/.stamp_configured’ failed
2022-02-07T04:51:48 make[1]: *** [/home/shawn/rk3399_linux_release_v2.5.1_20210301/buildroot/output/rockchip_rk3399/build/gstreamer1-rockchip-master/.stamp_configured] Error 1
2022-02-07T04:51:48 /home/shawn/rk3399_linux_release_v2.5.1_20210301/buildroot/output/rockchip_rk3399/Makefile:16: recipe for target ‘_all’ failed
2022-02-07T04:51:48 make: *** [_all] Error 2
Command exited with non-zero status 1
you take 0:30.89 to build builroot
ERROR: Running build_buildroot failed!
ERROR: exit code 1 from line 682:
/usr/bin/time -f “you take %E to build builroot” $COMMON_DIR/mk-buildroot.sh $BOARD_CONFIG

大神们,有遇到过同样问题的吗

我测试下,可能是版本没对上

大神,应该是哪个版本呢。我用的是RK3399的开发版。

895816513 发表于 2022-2-10 16:10
我测试下,可能是版本没对上

请问您说的是什么的版本没对上?

这个我一直在弄,管理起来有点复杂,最迟可能要下周二才能解决好。你也可以用manifest仓库,2021年6月份的xml配置文件,这个肯定可以编译过的。

895816513 发表于 2022-2-11 19:01
这个我一直在弄,管理起来有点复杂,最迟可能要下周二才能解决好。你也可以用manifest仓库,2021年6月份的x …

好的,谢谢大佬, manifest仓地址能麻烦发一下不?我之前没搞过RK。

本帖最后由 深圳市豪微光电 于 2022-2-12 14:53 编辑

895816513 发表于 2022-2-11 19:01
这个我一直在弄,管理起来有点复杂,最迟可能要下周二才能解决好。你也可以用manifest仓库,2021年6月份的x …

https://github.com/FireflyTeam/buildroot.git 是这个仓不?

深圳市豪微光电 发表于 2022-2-12 14:51
https://github.com/FireflyTeam/buildroot.git 是这个仓不?

修复好了,你再同步好代码就行了

本帖最后由 深圳市豪微光电 于 2022-2-16 10:21 编辑

大佬,看起来QT包还是有问题,

guistatemachine.o .obj/qkeyeventtransition.o .obj/qmouseeventtransition.o .obj/qbasickeyeventtransition.o .obj/qbasicmouseeventtransition.o .obj/qgraphicseffect.o .obj/qpixmapfilter.o .obj/qrc_qstyle.o .obj/qrc_qmessagebox.o .obj/moc_qwidgetrepaintmanager_p.o .obj/moc_qwidget_p.o .obj/moc_qpixmapstyle_p.o  -latomic /home/shawn/rk3399_linux_release_v2.5.1_20210301/buildroot/output/rockchip_rk3399/build/qt5base-5.14.2/lib/libQt5Gui.so /home/shawn/rk3399_linux_release_v2.5.1_20210301/buildroot/output/rockchip_rk3399/build/qt5base-5.14.2/lib/libQt5Core.so -lpthread -L/home/shawn/rk3399_linux_release_v2.5.1_20210301/buildroot/output/rockchip_rk3399/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib -lmali -lGLESv2 -ldrm -lwayland-client -lwayland-server -lrt -lpthread -ldl
2022-02-15T17:21:51 ln -s libQt5Widgets.so.5.14.2 libQt5Widgets.so
2022-02-15T17:21:51 ln -s libQt5Widgets.so.5.14.2 libQt5Widgets.so.5
2022-02-15T17:21:51 ln -s libQt5Widgets.so.5.14.2 libQt5Widgets.so.5.14
2022-02-15T17:21:51 rm -f ../../lib/libQt5Widgets.so.5.14.2
2022-02-15T17:21:51 mv -f libQt5Widgets.so.5.14.2 ../../lib/libQt5Widgets.so.5.14.2
2022-02-15T17:21:51 rm -f ../../lib/libQt5Widgets.so
2022-02-15T17:21:51 rm -f ../../lib/libQt5Widgets.so.5
2022-02-15T17:21:51 rm -f ../../lib/libQt5Widgets.so.5.14
2022-02-15T17:21:51 mv -f libQt5Widgets.so ../../lib/libQt5Widgets.so
2022-02-15T17:21:51 mv -f libQt5Widgets.so.5 ../../lib/libQt5Widgets.so.5
2022-02-15T17:21:51 mv -f libQt5Widgets.so.5.14 ../../lib/libQt5Widgets.so.5.14
2022-02-15T17:21:51 Makefile:50: recipe for target 'sub-src-make_first' failed
2022-02-15T17:21:51 make[2]: *** [sub-src-make_first] Error 2
2022-02-15T17:21:51 package/pkg-generic.mk:228: recipe for target '/home/shawn/rk3399_linux_release_v2.5.1_20210301/buildroot/output/rockchip_rk3399/build/qt5base-5.14.2/.stamp_built' failed
2022-02-15T17:21:51 make[1]: *** [/home/shawn/rk3399_linux_release_v2.5.1_20210301/buildroot/output/rockchip_rk3399/build/qt5base-5.14.2/.stamp_built] Error 2
2022-02-15T17:22:05 /home/shawn/rk3399_linux_release_v2.5.1_20210301/buildroot/output/rockchip_rk3399/Makefile:16: recipe for target '_all' failed
2022-02-15T17:22:05 make: *** [_all] Error 2
Command exited with non-zero status 1
you take 1:05:16 to build builroot
ERROR: Running build_buildroot failed!
ERROR: exit code 1 from line 682:
    /usr/bin/time -f "you take %E to build builroot" $COMMON_DIR/mk-buildroot.sh $BOARD_CONFIG

本帖最后由 深圳市豪微光电 于 2022-2-16 10:20 编辑

看起来去掉QT是OK的。不过下面这个警告是啥情况?
/home/shawn/rk3399_linux_release_v2.5.1_20210301/buildroot/output/rockchip_rk3399/target/THIS_IS_NOT_YOUR_ROOT_FILESYSTEM

==================================================

/usr/bin/install -m 0644 support/misc/target-dir-warning.txt /home/shawn/rk3399_linux_release_v2.5.1_20210301/buildroot/output/rockchip_rk3399/target/THIS_IS_NOT_YOUR_ROOT_FILESYSTEM
>>>   Generating root filesystem image rootfs.tar
rm -rf /home/shawn/rk3399_linux_release_v2.5.1_20210301/buildroot/output/rockchip_rk3399/build/buildroot-fs
mkdir -p /home/shawn/rk3399_linux_release_v2.5.1_20210301/buildroot/output/rockchip_rk3399/build/buildroot-fs
echo '#!/bin/sh' > /home/shawn/rk3399_linux_release_v2.5.1_20210301/buildroot/output/rockchip_rk3399/build/buildroot-fs/fakeroot.fs
echo "set -e" >> /home/shawn/rk3399_linux_release_v2.5.1_20210301/buildroot/output/rockchip_rk3399/build/buildroot-fs/fakeroot.fs
echo "chown -h -R 0:0 /home/shawn/rk3399_linux_release_v2.5.1_20210301/buildroot/output/rockchip_rk3399/target" >> /home/shawn/rk3399_linux_release_v2.5.1_20210301/buildroot/output/rockchip_rk3399/build/buildroot-fs/fakeroot.fs
printf '   	dbus -1 dbus -1 * /var/run/dbus - dbus DBus messagebus user\n 	- - input -1 * - - - Input device group\n\n' >> /home/shawn/rk3399_linux_release_v2.5.1_20210301/buildroot/output/rockchip_rk3399/build/buildroot-fs/users_table.txt
PATH="/home/shawn/rk3399_linux_release_v2.5.1_20210301/buildroot/output/rockchip_rk3399/host/bin:/home/shawn/rk3399_linux_release_v2.5.1_20210301/buildroot/output/rockchip_rk3399/host/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin" /home/shawn/rk3399_linux_release_v2.5.1_20210301/buildroot/support/scripts/mkusers /home/shawn/rk3399_linux_release_v2.5.1_20210301/buildroot/output/rockchip_rk3399/build/buildroot-fs/users_table.txt /home/shawn/rk3399_linux_release_v2.5.1_20210301/buildroot/output/rockchip_rk3399/target >> /home/shawn/rk3399_linux_release_v2.5.1_20210301/buildroot/output/rockchip_rk3399/build/buildroot-fs/fakeroot.fs
cat system/device_table.txt > /home/shawn/rk3399_linux_release_v2.5.1_20210301/buildroot/output/rockchip_rk3399/build/buildroot-fs/device_table.txt
printf '   	/bin/busybox                     f 4755 0  0 - - - - -\n 	/usr/libexec/dbus-daemon-launch-helper f 4755 0 0 - - - - -\n 	/bin/ping        f 4755 0 0 - - - - -\n	/bin/traceroute6 f 4755 0 0 - - - - -\n /dev/console c 622 0 0 5 1 - - -\n\n' >> /home/shawn/rk3399_linux_release_v2.5.1_20210301/buildroot/output/rockchip_rk3399/build/buildroot-fs/device_table.txt
echo "/home/shawn/rk3399_linux_release_v2.5.1_20210301/buildroot/output/rockchip_rk3399/host/bin/makedevs -d /home/shawn/rk3399_linux_release_v2.5.1_20210301/buildroot/output/rockchip_rk3399/build/buildroot-fs/device_table.txt /home/shawn/rk3399_linux_release_v2.5.1_20210301/buildroot/output/rockchip_rk3399/target" >> /home/shawn/rk3399_linux_release_v2.5.1_20210301/buildroot/output/rockchip_rk3399/build/buildroot-fs/fakeroot.fs
printf '   	(cd /home/shawn/rk3399_linux_release_v2.5.1_20210301/buildroot/output/rockchip_rk3399/target; find -print0 | LC_ALL=C sort -z | tar  -cf /home/shawn/rk3399_linux_release_v2.5.1_20210301/buildroot/output/rockchip_rk3399/images/rootfs.tar --null --no-recursion -T - --numeric-owner)\n' >> /home/shawn/rk3399_linux_release_v2.5.1_20210301/buildroot/output/rockchip_rk3399/build/buildroot-fs/fakeroot.fs
chmod a+x /home/shawn/rk3399_linux_release_v2.5.1_20210301/buildroot/output/rockchip_rk3399/build/buildroot-fs/fakeroot.fs
rm -f /home/shawn/rk3399_linux_release_v2.5.1_20210301/buildroot/output/rockchip_rk3399/target/THIS_IS_NOT_YOUR_ROOT_FILESYSTEM
PATH="/home/shawn/rk3399_linux_release_v2.5.1_20210301/buildroot/output/rockchip_rk3399/host/bin:/home/shawn/rk3399_linux_release_v2.5.1_20210301/buildroot/output/rockchip_rk3399/host/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin" /home/shawn/rk3399_linux_release_v2.5.1_20210301/buildroot/output/rockchip_rk3399/host/bin/fakeroot -- /home/shawn/rk3399_linux_release_v2.5.1_20210301/buildroot/output/rockchip_rk3399/build/buildroot-fs/fakeroot.fs
rootdir=/home/shawn/rk3399_linux_release_v2.5.1_20210301/buildroot/output/rockchip_rk3399/target
table='/home/shawn/rk3399_linux_release_v2.5.1_20210301/buildroot/output/rockchip_rk3399/build/buildroot-fs/device_table.txt'
/usr/bin/install -m 0644 support/misc/target-dir-warning.txt /home/shawn/rk3399_linux_release_v2.5.1_20210301/buildroot/output/rockchip_rk3399/target/THIS_IS_NOT_YOUR_ROOT_FILESYSTEM