备份
This commit is contained in:
parent
b0a434352d
commit
ef69f2fcf8
BIN
.image/WX20231219-171516.png
Normal file
BIN
.image/WX20231219-171516.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 370 KiB |
31
RK3568/RKMPP库编译.md
Normal file
31
RK3568/RKMPP库编译.md
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
# RKMPP库编译
|
||||||
|
|
||||||
|
#### 环境搭建和编译
|
||||||
|
|
||||||
|
* 下载官方MPP库地址
|
||||||
|
```
|
||||||
|
git clone https://github.com/rockchip-linux/mpp
|
||||||
|
```
|
||||||
|
|
||||||
|
* 根据操作系统选择相应的路径
|
||||||
|
|
||||||
|
```
|
||||||
|
cd mpp/build/linux/aarch64/
|
||||||
|
```
|
||||||
|
|
||||||
|
* 根据实际路径指定编译器gcc和g++(如下是对的)
|
||||||
|
|
||||||
|
```
|
||||||
|
vim arm.linux.cross.cmake
|
||||||
|
# 添加如下两行内容:
|
||||||
|
SET(CMAKE_C_COMPILER "/usr/bin/gcc")
|
||||||
|
SET(CMAKE_CXX_COMPILER "/usr/bin/g++")
|
||||||
|
```
|
||||||
|
|
||||||
|
* 编译
|
||||||
|
|
||||||
|
```
|
||||||
|
./make-Makefiles.bash
|
||||||
|
make -j4
|
||||||
|
make install
|
||||||
|
```
|
15
RK3568/移远/gst-rtsp-server-1.16.3编译.md
Normal file
15
RK3568/移远/gst-rtsp-server-1.16.3编译.md
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
# gst-rtsp-server-1.16.3 编译
|
||||||
|
|
||||||
|
apt-get install gtk-doc-tools libgstreamer1.0-0 gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav gstreamer1.0-doc gstreamer1.0-tools gstreamer1.0-x gstreamer1.0-alsa gstreamer1.0-gl gstreamer1.0-gtk3 gstreamer1.0-qt5 gstreamer1.0-pulseaudio
|
||||||
|
|
||||||
|
apt install libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev
|
||||||
|
|
||||||
|
tar xvf gst-rtsp-server-1.16.3.tar.xz
|
||||||
|
|
||||||
|
cd gst-rtsp-server
|
||||||
|
|
||||||
|
./autogen.sh
|
||||||
|
|
||||||
|
make -j4 && make install
|
||||||
|
|
||||||
|
gcc rtsp-server.c -o rtsp-server $(pkg-config --cflags --libs gstreamer-rtsp-server-1.0 gstreamer-1.0)
|
|
@ -50,5 +50,6 @@ apt --fix-broken install -y
|
||||||
执行命令
|
执行命令
|
||||||
```
|
```
|
||||||
dpkg -i --force-overwrite /var/cache/apt/archives/libc6-arm64-cross_2.31-0ubuntu9.9cross1_all.deb
|
dpkg -i --force-overwrite /var/cache/apt/archives/libc6-arm64-cross_2.31-0ubuntu9.9cross1_all.deb
|
||||||
|
dpkg -i --force-overwrite /var/cache/apt/archives/libx11-data_2%3a1.6.9-2ubuntu1.6_all.deb
|
||||||
apt upgrade -y
|
apt upgrade -y
|
||||||
```
|
```
|
|
@ -14,5 +14,10 @@ mkdir /var/lib/dpkg/info/
|
||||||
|
|
||||||
apt-get update
|
apt-get update
|
||||||
|
|
||||||
apt-get install qt5-default qtcreator -y
|
apt-get install qt5-default qtcreator -y
|
||||||
|
|
||||||
|
apt-get install qtmultimedia5-dev -y
|
||||||
```
|
```
|
||||||
|
|
||||||
|
apt install aptitude
|
||||||
|
aptitude install qtwayland5 qt5-default qtdeclarative5-dev qtmultimedia5-dev
|
||||||
|
|
|
@ -7,37 +7,9 @@ apt updata
|
||||||
|
|
||||||
apt upgrade
|
apt upgrade
|
||||||
|
|
||||||
apt -y install \
|
apt -y install autoconf automake build-essential cmake git-core libass-dev libfreetype6-dev libsdl2-dev libtool libva-dev libvdpau-dev libvorbis-dev libxcb1-dev libxcb-shm0-dev libxcb-xfixes0-dev pkg-config texinfo wget zlib1g-dev
|
||||||
autoconf \
|
|
||||||
automake \
|
|
||||||
build-essential \
|
|
||||||
cmake \
|
|
||||||
git-core \
|
|
||||||
libass-dev \
|
|
||||||
libfreetype6-dev \
|
|
||||||
libsdl2-dev \
|
|
||||||
libtool \
|
|
||||||
libva-dev \
|
|
||||||
libvdpau-dev \
|
|
||||||
libvorbis-dev \
|
|
||||||
libxcb1-dev \
|
|
||||||
libxcb-shm0-dev \
|
|
||||||
libxcb-xfixes0-dev \
|
|
||||||
pkg-config \
|
|
||||||
texinfo \
|
|
||||||
wget \
|
|
||||||
zlib1g-dev
|
|
||||||
|
|
||||||
apt -y install \
|
apt -y install nasm yasm libx264-dev libx265-dev libnuma-dev libvpx-dev libfdk-aac-dev libmp3lame-dev libopus-dev
|
||||||
nasm \
|
|
||||||
yasm \
|
|
||||||
libx264-dev \
|
|
||||||
libx265-dev \
|
|
||||||
libnuma-dev \
|
|
||||||
libvpx-dev \
|
|
||||||
libfdk-aac-dev \
|
|
||||||
libmp3lame-dev \
|
|
||||||
libopus-dev
|
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 解压
|
#### 解压
|
||||||
|
@ -45,10 +17,11 @@ apt -y install \
|
||||||
tar -xvf ffmpeg-4.2.9.tar.xz
|
tar -xvf ffmpeg-4.2.9.tar.xz
|
||||||
cd ffmpeg-4.2.9/
|
cd ffmpeg-4.2.9/
|
||||||
./configure --prefix=/usr/local/ffmpeg --enable-gpl --enable-nonfree --enable-libfdk-aac --enable-libx264 --enable-libx265 --enable-filter=delogo --enable-debug --disable-optimizations --enable-shared --enable-pthreads
|
./configure --prefix=/usr/local/ffmpeg --enable-gpl --enable-nonfree --enable-libfdk-aac --enable-libx264 --enable-libx265 --enable-filter=delogo --enable-debug --disable-optimizations --enable-shared --enable-pthreads
|
||||||
make -j4
|
make -j4 && make install
|
||||||
make install
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
./configure --prefix=install --pkg-config-flags="--static" --enable-gpl --enable-nonfree --enable-libfdk-aac --enable-libx264 --enable-libx265 --enable-filter=delogo --enable-debug --disable-optimizations --enable-pthreads
|
||||||
|
|
||||||
#### 添加环境变量
|
#### 添加环境变量
|
||||||
|
|
||||||
* 在 /etc/profile 文件最后一行添加
|
* 在 /etc/profile 文件最后一行添加
|
||||||
|
@ -74,3 +47,7 @@ source /etc/profile
|
||||||
```
|
```
|
||||||
ldconfig
|
ldconfig
|
||||||
```
|
```
|
||||||
|
|
||||||
|
./configure --prefix=/usr/local/ffmpeg --enable-gpl --enable-nonfree --enable-libfdk-aac --enable-libx264 --enable-libx265 --enable-filter=delogo --enable-debug --disable-optimizations --enable-shared --enable-pthreads --enable-rkmpp --enable-libdrm
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -84,6 +84,10 @@ apt-get install libgtk2.0-dev -y
|
||||||
apt-get install libatlas-base-dev gfortran -y
|
apt-get install libatlas-base-dev gfortran -y
|
||||||
```
|
```
|
||||||
|
|
||||||
|
<!-- apt install libblas-dev
|
||||||
|
apt install libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev -y
|
||||||
|
apt install libdc1394-22-dev -y -->
|
||||||
|
|
||||||
* 解压
|
* 解压
|
||||||
```
|
```
|
||||||
tar -xvf opencv-3.4.12.tar
|
tar -xvf opencv-3.4.12.tar
|
||||||
|
@ -103,7 +107,9 @@ cmake -D CMAKE_BUILD_TYPE=RELEASE \
|
||||||
-D WITH_PNG=NO \
|
-D WITH_PNG=NO \
|
||||||
-D WITH_JASPER=NO \
|
-D WITH_JASPER=NO \
|
||||||
-D WITH_TIFF=NO \
|
-D WITH_TIFF=NO \
|
||||||
-D CMAKE_INSTALL_PREFIX=/usr/local ..
|
-D WITH_GSTREAMER=OFF \
|
||||||
|
-D OPENCV_EXTRA_MODULES_PATH=../opencv_contrib/modules \
|
||||||
|
-D CMAKE_INSTALL_PREFIX=install ..
|
||||||
```
|
```
|
||||||
|
|
||||||
* 编译
|
* 编译
|
||||||
|
|
|
@ -21,54 +21,78 @@ git clone http://192.168.1.223:3000/hehaoyang/quectel_rk3568_ubuntu_r60_v1.3.2.g
|
||||||
cd quectel_rk3568_ubuntu_r60_v1.3.2
|
cd quectel_rk3568_ubuntu_r60_v1.3.2
|
||||||
chmod 777 -R yocto/packages/
|
chmod 777 -R yocto/packages/
|
||||||
chmod 777 -R buildroot/dl/
|
chmod 777 -R buildroot/dl/
|
||||||
|
|
||||||
# 切换分支
|
|
||||||
```
|
```
|
||||||
|
|
||||||
* 拷贝 qemu-user-static_7.2+dfsg-5ubuntu2.2_amd64.deb 到 /home/heahoyang/works/quectel, 并安装
|
* 安装 qemu-user-static
|
||||||
|
|
||||||
```
|
```
|
||||||
sudo dpkg -i qemu-user-static_7.2+dfsg-5ubuntu2.2_amd64.deb
|
sudo apt-get remove qemu-user-static
|
||||||
|
sudo apt-get install qemu-user-static
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 创建、进入容器
|
#### 创建、进入容器
|
||||||
* 拷贝 smartlinux-docker-lsubuntu2004_v1.2.tar.gz 到 /home/heahoyang/works/quectel 目录
|
|
||||||
|
|
||||||
```
|
```
|
||||||
docker load -i smartlinux-docker-ubuntu2004_v1.2.tar.gz
|
docker load -i quectel_rk3568_ubuntu_r60_v1.3.2/tools/docker.tar.gz
|
||||||
|
|
||||||
docker run --privileged -v /home/hehaoyang/works/quectel/quectel_rk3568_ubuntu_r60_v1.3.2/:/home/hehaoyang/works/quectel/quectel_rk3568_ubuntu_r60_v1.3.2/ -it 0bf5597a5df5 /bin/bash
|
hehaoyang@server:~/works/ubuntu/quectel_rk3568$ docker run --privileged -v /dev/bus/usb:/dev/bus/usb -v /home/hehaoyang/works/ubuntu/quectel_rk3568/:/home/hehaoyang/workspace/ --name="quectel_rk3568" -it a1f74a12d43a /bin/bash
|
||||||
```
|
```
|
||||||
|
|
||||||
### 编译
|
### 编译
|
||||||
|
|
||||||
|
* 准备
|
||||||
```
|
```
|
||||||
apt-get update
|
cd /home/hehaoyang/workspace/
|
||||||
apt-get install -y rsyslog curl libxslt1-dev asciidoc
|
usermod -u 1001 hehaoyang
|
||||||
cd /home/hehaoyang/works
|
cd /home/hehaoyang/workspace/quectel_rk3568_ubuntu_r60_v1.3.2/yocto/poky/scripts/postinst-intercepts/
|
||||||
usermod -u 1001 quectel
|
|
||||||
cd /home/hehaoyang/works/quectel/quectel_rk3568_ubuntu_r60_v1.3.2/yocto/poky/scripts/postinst-intercepts/
|
|
||||||
chmod 664 ./*
|
chmod 664 ./*
|
||||||
chmod 755 postinst_intercept
|
chmod 755 postinst_intercept
|
||||||
cd ../../../../
|
cd ../../../../
|
||||||
chown -v -R quectel /home/hehaoyang/works/quectel/
|
chown -v -R hehaoyang /home/hehaoyang/workspace/
|
||||||
|
|
||||||
su quectel
|
su hehaoyang
|
||||||
|
|
||||||
git config --global --add safe.directory /home/hehaoyang/works/quectel/quectel_rk3568_ubuntu_r60_v1.3.2
|
git config --global --add safe.directory /home/hehaoyang/workspace/quectel_rk3568_ubuntu_r60_v1.3.2
|
||||||
|
|
||||||
source build-quec.sh
|
source build-quec.sh
|
||||||
envsetup_yocto
|
envsetup_yocto
|
||||||
rebake qti-ubuntu-robotics-image
|
```
|
||||||
build-all-image-yocto
|
|
||||||
|
* 编译xkb
|
||||||
# source build-quec.sh
|
|
||||||
# envsetup_yocto
|
```
|
||||||
# rebake qti-ubuntu-robotics-image
|
rebake libxkbcommon
|
||||||
# cd ../../
|
```
|
||||||
# build-all-image-yocto
|
如果出现如下报错
|
||||||
|
![报错信息](../../.image/WX20231219-171516.png)
|
||||||
# 还需要验证下方这个方法是否可行
|
将报错的文件都删除掉,然后重新执行
|
||||||
# source build-quec.sh
|
|
||||||
# build-all-image-yocto
|
```
|
||||||
# 然后再做其他的事情
|
rebake libxkbcommon
|
||||||
|
```
|
||||||
|
|
||||||
|
* 编译Qt基础库
|
||||||
|
|
||||||
|
```
|
||||||
|
bitbake qtbase
|
||||||
|
bitbake qtdeclarative
|
||||||
|
```
|
||||||
|
|
||||||
|
* 编译Wayland支持库
|
||||||
|
|
||||||
|
```
|
||||||
|
bitbake qtwayland
|
||||||
|
```
|
||||||
|
|
||||||
|
* 编译qmake-tool支持库
|
||||||
|
|
||||||
|
```
|
||||||
|
bitbake qmake-tool
|
||||||
|
```
|
||||||
|
|
||||||
|
* 整编
|
||||||
|
|
||||||
|
```
|
||||||
|
rebake qti-ubuntu-robotics-image
|
||||||
|
cd ../../
|
||||||
|
build-all-image-yocto
|
||||||
```
|
```
|
10
Ubuntu/BT下载.md
Normal file
10
Ubuntu/BT下载.md
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
# BT下载
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
sudo apt install aria2
|
||||||
|
```
|
||||||
|
|
||||||
|
```
|
||||||
|
aria2c *.torrent
|
||||||
|
```
|
|
@ -9,9 +9,10 @@
|
||||||
- [删除镜像](#删除镜像)
|
- [删除镜像](#删除镜像)
|
||||||
- [创建容器](#创建容器)
|
- [创建容器](#创建容器)
|
||||||
- [查看所有容器](#查看所有容器)
|
- [查看所有容器](#查看所有容器)
|
||||||
- [修改容器名词](#修改容器名词)
|
- [镜像重命名](#修改重命名)
|
||||||
- [导入容器](#导入容器)
|
- [导入容器](#导入容器)
|
||||||
- [删除容器](#删除容器)
|
- [删除容器](#删除容器)
|
||||||
|
- [容器重命名](#容器重命名)
|
||||||
- [启动容器](#启动容器)
|
- [启动容器](#启动容器)
|
||||||
- [连接容器](#连接容器)
|
- [连接容器](#连接容器)
|
||||||
|
|
||||||
|
@ -111,7 +112,7 @@ docker run --privileged --mount type=bind,source=/home/hehaoyang/works/gogs,targ
|
||||||
docker ps -a
|
docker ps -a
|
||||||
```
|
```
|
||||||
|
|
||||||
##### 修改容器名词
|
##### 修改重命名
|
||||||
```
|
```
|
||||||
docker tag gogs:laster test:laster
|
docker tag gogs:laster test:laster
|
||||||
docker rmi gogs:laster
|
docker rmi gogs:laster
|
||||||
|
@ -127,6 +128,11 @@ docker load -i sg368z_ubuntu-20.04-v1.2.tar.gz
|
||||||
docker rm -f gogs
|
docker rm -f gogs
|
||||||
```
|
```
|
||||||
|
|
||||||
|
##### 容器重命名
|
||||||
|
```
|
||||||
|
docker rename mystifying_wilbur quectel-rk3568-ubuntu
|
||||||
|
```
|
||||||
|
|
||||||
##### 启动容器
|
##### 启动容器
|
||||||
```
|
```
|
||||||
docker start gogs
|
docker start gogs
|
||||||
|
@ -136,3 +142,17 @@ docker start gogs
|
||||||
```
|
```
|
||||||
docker attach gogs
|
docker attach gogs
|
||||||
```
|
```
|
||||||
|
|
||||||
|
#### 导出镜像为容器
|
||||||
|
|
||||||
|
* 导出容器为镜像
|
||||||
|
|
||||||
|
```
|
||||||
|
docker commit quectel_rk3568 quectel_rk3568_ubuntu:laster
|
||||||
|
```
|
||||||
|
|
||||||
|
* 导出为压缩包
|
||||||
|
|
||||||
|
```
|
||||||
|
docker save -o docker.tar.gz quectel_rk3568_ubuntu:laster
|
||||||
|
```
|
|
@ -8,7 +8,7 @@ docker start gitea
|
||||||
docker attach gitea
|
docker attach gitea
|
||||||
sudo apt install git wget -y
|
sudo apt install git wget -y
|
||||||
cd workspace/gitea
|
cd workspace/gitea
|
||||||
wget -O gitea https://dl.gitea.com/gitea/1.19/gitea-1.19-linux-amd64
|
wget -O gitea https://dl.gitea.com/gitea/1.21.1/gitea-1.21.1-linux-amd64
|
||||||
chmod +x gitea
|
chmod +x gitea
|
||||||
./gitea web
|
./gitea web
|
||||||
```
|
```
|
Loading…
Reference in New Issue
Block a user