收藏文章 楼主

摄像头 RV1126 编译安装,解决报错:you take 0:21.03 to build builroot

版块:摄像头 RV1126   类型:普通   作者:小绿叶技术博客   查看:2727   回复:1   获赞:0   时间:2022-04-08 14:06:32

#!/bin/bash

# 安装编译环境


sudo apt update ; sudo apt upgrade


sudo apt-get -y install git 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 \

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-is-python2 unzip rsync \

file bc wget libncurses5 libglib2.0-dev libgtk2.0-dev \

libglade2-dev cvs git mercurial rsync openssh-client subversion \

asciidoc w3m dblatex graphviz  \

libssl-dev expect fakeroot cmake


# 注意上面与下文要分开安装,


# 缺少包:repo   python-linaro-image-tools    libqt4-dev python-matplotlib libc6:i386   #pip install matplotlib

#  ubuntu 本地 debian  本地安装路径 :  /var/cache/apt/archives/

sudo apt install -y python-apt


sudo apt --fix-broken install && sudo apt reinstall -y libc6 && sudo apt reinstall  libc6-i386


sudo apt --fix-broken install && sudo apt install -y  fonts-lyx


sudo apt install -y libfl-dev libfl2 m4 bison flex   bison-doc flex-doc m4-doc

# 编译报错:/bin/sh: 1: bison: not found make[1]: *** [scripts/Makefile.lib:196:scripts/kconfig/zconf.tab.c] 错误 127


# 安装扩展

sudo apt-get install lib32gcc-7-dev g++-7 libstdc++-7-dev -y


# 创建一个文件夹,并且将软件解压到目录

mkdir -p /home/eisc/RV1126/ && tar -zxvf RV1126_1109_20210821.tgz -C /home/eisc/RV1126/


# 进入目录,查看大小,git 恢复完整的代码, 如果代码完整可以不执行

 cd /home/eisc/RV1126/ && ls -alh && git reset --hard


# 编译方式:buildroot(linux)


#--------- 重点 ----------#

chown -R eisc:eisc /home/eisc/*

# 将编译包所在目录,授权给当前用户 eisc ,并且需要非 root用户执行

# 否则会报错:you take 0:21.03 to build builroot; ERROR: Running build_buildroot failed! ;   /usr/bin/time -f "you take %E to build builroot" 


# 如果SDK先编译了ubuntu系统,为了避免出现不必要的错误,请先清理内核再做操作

cd /home/eisc/RV1126/kernel && make clean -j 20


# 查看版型

./build.sh lunch


# 输入 7  BoardConfig-facial_gate.mk 回车 后,再次编译:

./build.sh



source envsetup.sh

# 选择 84 rockchip_rv1126_rv1109_facial_gate





#----------- uvcc 摄像头 编译选择 ----------#

# 注意:20GB 的uvcc 包文件夹名字不能更改,否则无法编译


./build.sh lunch

# 选择: 17. BoardConfig-uvcc.mk


source envsetup.sh

# 选择: 90. rockchip_rv1126_rv1109_uvcc




提供企业建站服务,免费网防系统,提交信息登录 http://yundun.ddoss.cn 邮箱: proposal@ddoss.cn 
回复列表
默认   热门   正序   倒序

回复:摄像头 RV1126 编译安装,解决报错:you take 0:21.03 to build builroot

头像

用户名:

粉丝数:

签名:

资料 关注 好友 消息