rv1126 SDK编译 opencv 3.4.12
ubuntu 16.04 rv1126_rv1109_linux_release_20211022按照https://wiki.t-firefly.com/zh_CN/CORE-1126-JD4/hardware.html教程操作:
编译配置选用的 device/rockchip/rv1126_rv1109/aio-rv1126-jd4-BE-45.mk;
全局编译命令: ./build.sh
opencv3 3.4.12 无法编译通过
2022-01-10T10:30:06 libtool: install: /usr/bin/install -c dwebp /home/szm/SDK/rv1126_rv1109_linux_release_20211022/buildroot/output/firefly_rv1126_rv1109/target/usr/bin/dwebp
2022-01-10T10:30:06 libtool: install: /usr/bin/install -c cwebp /home/szm/SDK/rv1126_rv1109_linux_release_20211022/buildroot/output/firefly_rv1126_rv1109/target/usr/bin/cwebp
2022-01-10T10:30:06 make: Nothing to be done for 'install-exec-am'.
2022-01-10T10:30:06 make: Nothing to be done for 'install-data-am'.
2022-01-10T10:30:06 >>> opencv3 3.4.12 Downloading
2022-01-10T10:30:06 --2022-01-10 10:30:06--https://github.com/opencv/opencv/archive/3.4.12/opencv3-3.4.12.tar.gz
2022-01-10T10:30:06 Resolving github.com (github.com)... 20.205.243.166
2022-01-10T10:30:06 Connecting to github.com (github.com)|20.205.243.166|:443... connected.
2022-01-10T10:30:36 Unable to establish SSL connection.
2022-01-10T10:30:36 --2022-01-10 10:30:36--http://sources.buildroot.net/opencv3-3.4.12.tar.gz
2022-01-10T10:30:36 Resolving sources.buildroot.net (sources.buildroot.net)... 172.67.72.56, 104.26.1.37, 104.26.0.37, ...
2022-01-10T10:30:36 Connecting to sources.buildroot.net (sources.buildroot.net)|172.67.72.56|:80... connected.
2022-01-10T10:30:37 HTTP request sent, awaiting response... 404 Not Found
2022-01-10T10:30:37 2022-01-10 10:30:37 ERROR 404: Not Found.
2022-01-10T10:30:37
2022-01-10T10:30:37 package/pkg-generic.mk:138: recipe for target '/home/szm/SDK/rv1126_rv1109_linux_release_20211022/buildroot/output/firefly_rv1126_rv1109/build/opencv3-3.4.12/.stamp_downloaded' failed
2022-01-10T10:30:37 make: *** Error 1
2022-01-10T10:30:37 /home/szm/SDK/rv1126_rv1109_linux_release_20211022/buildroot/output/firefly_rv1126_rv1109/Makefile:16: recipe for target '_all' failed
2022-01-10T10:30:37 make: *** Error 2
2022-01-10T10:33:16 umask 0022 && make -C /home/szm/SDK/rv1126_rv1109_linux_release_20211022/buildroot O=/home/szm/SDK/rv1126_rv1109_linux_release_20211022/buildroot/output/firefly_rv1126_rv1109
2022-01-10T10:33:23 /usr/bin/make -j1 O=/home/szm/SDK/rv1126_rv1109_linux_release_20211022/buildroot/output/firefly_rv1126_rv1109 HOSTCC="/usr/bin/gcc" HOSTCXX="/usr/bin/g++" silentoldconfig
2022-01-10T10:33:23 GEN /home/szm/SDK/rv1126_rv1109_linux_release_20211022/buildroot/output/firefly_rv1126_rv1109/Makefile
2022-01-10T10:33:25 >>> opencv3 3.4.12 Downloading
2022-01-10T10:33:25 --2022-01-10 10:33:25--https://github.com/opencv/opencv/archive/3.4.12/opencv3-3.4.12.tar.gz
2022-01-10T10:33:25 Resolving github.com (github.com)... 20.205.243.166
2022-01-10T10:33:25 Connecting to github.com (github.com)|20.205.243.166|:443... connected.
2022-01-10T10:33:26 HTTP request sent, awaiting response... 302 Found
2022-01-10T10:33:26 Location: https://codeload.github.com/opencv/opencv/tar.gz/3.4.12
2022-01-10T10:33:26 --2022-01-10 10:33:26--https://codeload.github.com/opencv/opencv/tar.gz/3.4.12
2022-01-10T10:33:26 Resolving codeload.github.com (codeload.github.com)... 20.205.243.165
2022-01-10T10:33:27 Connecting to codeload.github.com (codeload.github.com)|20.205.243.165|:443... connected.
2022-01-10T10:33:28 HTTP request sent, awaiting response... 200 OK
2022-01-10T10:33:28 Length: unspecified
2022-01-10T10:33:28 Saving to: '/home/szm/SDK/rv1126_rv1109_linux_release_20211022/buildroot/output/firefly_rv1126_rv1109/build/.opencv3-3.4.12.tar.gz.DXIjVK/output'
2022-01-10T10:33:28
/home/szm/SDK/rv1126_rv [ <=> ]12.90M15.9KB/s in 11m 8s
2022-01-10T10:44:37
2022-01-10T10:44:37 2022-01-10 10:44:37 (19.8 KB/s) - Read error at byte 13531842 (Success).Retrying.
2022-01-10T10:44:37
2022-01-10T10:44:38 --2022-01-10 10:44:38--(try: 2)https://codeload.github.com/opencv/opencv/tar.gz/3.4.12
2022-01-10T10:44:38 Connecting to codeload.github.com (codeload.github.com)|20.205.243.165|:443... connected.
2022-01-10T10:44:39 HTTP request sent, awaiting response... 200 OK
2022-01-10T10:44:39 Length: unspecified
2022-01-10T10:44:39 Saving to: '/home/szm/SDK/rv1126_rv1109_linux_release_20211022/buildroot/output/firefly_rv1126_rv1109/build/.opencv3-3.4.12.tar.gz.DXIjVK/output'
2022-01-10T10:44:39
/home/szm/SDK/rv1126_rv [ <=> ]14.71M9.14KB/s in 11m 51s
2022-01-10T10:56:32
2022-01-10T10:56:32 2022-01-10 10:56:32 (21.2 KB/s) - '/home/szm/SDK/rv1126_rv1109_linux_release_20211022/buildroot/output/firefly_rv1126_rv1109/build/.opencv3-3.4.12.tar.gz.DXIjVK/output' saved
2022-01-10T10:56:32
2022-01-10T10:56:32 >>> opencv3 3.4.12 Extracting
2022-01-10T10:56:32 gzip -d -c /home/szm/SDK/rv1126_rv1109_linux_release_20211022/buildroot/dl/opencv3-3.4.12.tar.gz | tar --strip-components=1 -C /home/szm/SDK/rv1126_rv1109_linux_release_20211022/buildroot/output/firefly_rv1126_rv1109/build/opencv3-3.4.12 -xf -
2022-01-10T10:56:32
2022-01-10T10:56:32 gzip: /home/szm/SDK/rv1126_rv1109_linux_release_20211022/buildroot/dl/opencv3-3.4.12.tar.gz: unexpected end of file
2022-01-10T10:56:32 tar: Unexpected EOF in archive
2022-01-10T10:56:32 tar: Unexpected EOF in archive
2022-01-10T10:56:32 tar: Error is not recoverable: exiting now
2022-01-10T10:56:32 package/pkg-generic.mk:159: recipe for target '/home/szm/SDK/rv1126_rv1109_linux_release_20211022/buildroot/output/firefly_rv1126_rv1109/build/opencv3-3.4.12/.stamp_extracted' failed
2022-01-10T10:56:32 make: *** Error 2
2022-01-10T10:56:32 /home/szm/SDK/rv1126_rv1109_linux_release_20211022/buildroot/output/firefly_rv1126_rv1109/Makefile:16: recipe for target '_all' failed
2022-01-10T10:56:32 make: *** Error 2
Command exited with non-zero status 1
you take 23:22.42 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
buildroot默认会从互联网下载压缩包,从log看是下载失败了。建议多尝试几次或者手动下载,然后拷贝到 sdk/buildroot/dl 目录,继续尝试编译应该就通过了。 799959745 发表于 2022-1-10 19:31
buildroot默认会从互联网下载压缩包,从log看是下载失败了。建议多尝试几次或者手动下载,然后拷贝到 sdk/b ...
好的,谢谢
页:
[1]