Toybrick

编译opencv-4.2.0出错 TB-RK1808M0 计算卡

无法拨号

新手上路

积分
34
楼主
发表于 2020-9-29 16:54:09    查看: 6930|回复: 0 | [复制链接]    打印 | 只看该作者
[ 83%] Built target gen_opencv_python_source
[ 83%] Building CXX object modules/python3/CMakeFiles/opencv_python3.dir/__/src2/cv2.cpp.o
virtual memory exhausted: Cannot allocate memory
make[2]: *** [modules/python3/CMakeFiles/opencv_python3.dir/build.make:63: modules/python3/CMakeFiles/opencv_python3.dir/__/src2/cv2.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:19951: modules/python3/CMakeFiles/opencv_python3.dir/all] Error 2
make: *** [Makefile:163: all] Error 2

设置虚拟内存
root@debian10:/home/toybrick/opencv_build/opencv/build#
root@debian10:/home/toybrick/opencv_build/opencv/build# dd if=/dev/zero of=/var/swap bs=1024 count=1024000
1024000+0 records in
1024000+0 records out
1048576000 bytes (1.0 GB, 1000 MiB) copied, 73.0895 s, 14.3 MB/s
root@debian10:/home/toybrick/opencv_build/opencv/build# mkswap /var/swap
Setting up swapspace version 1, size = 1000 MiB (1048571904 bytes)
no label, UUID=0ccd4525-a4ac-4b90-b4f2-d25e71603336
root@debian10:/home/toybrick/opencv_build/opencv/build# swapon /var/swap
swapon: /var/swap: swapon failed: Function not implemented

无法设置

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
回复

使用道具 举报

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

本版积分规则

产品中心 购买渠道 开源社区 Wiki教程 资料下载 关于Toybrick


快速回复 返回顶部 返回列表