MetaRTC arm32 CMake交叉编译

scp -o HostKeyAlgorithms=+ssh-dss srsclient root@192.168.100.232:/usr/app

ssh -o HostKeyAlgorithms=+ssh-dss root@192.168.100.232

telnet 192.168.100.232

root

hotdog

cat /proc/asound/cards

set(CMAKE_SYSTEM_NAME Linux)#系统设置

set(CMAKE_SYSTEM_PROCESSOR arm)//平台设置

set(CMAKE_C_COMPILER "/home/yqw/MetaRTC/BC/stbgcc-6.3-1.1/bin/arm-linux-gcc")//c编译器

set(CMAKE_CXX_COMPILER "/home/yqw/MetaRTC/BC/stbgcc-6.3-1.1/bin/arm-linux-g++")//c++编译器

//编写cmakelist.txt

gedit arm32.cmake

SET(CMAKE_SYSTEM_NAME Linux)

SET(CMAKE_C_COMPILER /home/yqw/MetaRTC/BC/stbgcc-6.3-1.1/bin/arm-linux-gcc)

SET(CMAKE_CXX_COMPILER /home/yqw/MetaRTC/BC/stbgcc-6.3-1.1/bin/arm-linux-g++)

//编写执行脚本

gedit cmake_arm32.sh

rm -rf build

mkdir build

cd build

ARCH=arm32.cmake

cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=.../$ARCH -DCMAKE_INSTALL_PREFIX=./ ...

make -j8

git clone https://chromium.googlesource.com/libyuv/libyuv

git reset --hard ec6f15079ff373b7651698a68bba7244b3556981

./cmake_arm32.sh

git clone https://github.com/xiph/speexdsp.git

git reset --hard 9b2846a4472c38660d6aec7a180daa5dc77ab2d3

./autogen.sh

./configure --prefix="/home/yqw/MetaRTC/meta-rtc-push-BC/thirdSRC/speexdsp/build" --host="arm-linux" --enable-static --enable-shared CC=/home/yqw/MetaRTC/BC/stbgcc-6.3-1.1/bin/arm-linux-gcc

make

make install

如果加上--enable-sse会报错 configure: error: No 16 bit type found on this platform!

https://www.opus-codec.org/

libopus 1.5.2

./configure --prefix="/home/yqw/MetaRTC/meta-rtc-push-BC/thirdSRC/opus-1.5.2/build" --host="arm-linux" --enable-static --enable-shared CC=/home/yqw/MetaRTC/BC/stbgcc-6.3-1.1/bin/arm-linux-gcc

make

make install

git clone https://gitee.com/yzyonly/yangh264decoder.git

git reset --hard dcbcce29661253bd44db2b2e4098c5c6e9533f16

./cmake_arm32.sh

//用的3.3

//libcrypto2.a libssl2.a

https://www.openssl.org/source/

openssl-3.3.0

./config no-asm shared no-async --prefix=$(pwd)/install --cross-compile-prefix=/home/yqw/MetaRTC/BC/stbgcc-6.3-1.1/bin/arm-linux-

make -j20

libsrtp2.a

wget https://github.com/cisco/libsrtp/archive/v2.2.0.tar.gz

./configure --prefix="/home/yqw/MetaRTC/meta-rtc-push-BC/thirdSRC/libsrtp-2.2.0/build" --host="arm-linux" --enable-static --enable-shared CC=/home/yqw/MetaRTC/BC/stbgcc-6.3-1.1/bin/arm-linux-gcc

make -j20

libasound.a

https://github.com/alsa-project/alsa-lib/releases/tag/v1.2.11

libtoolize --force --copy --automake

aclocal

autoheader

automake --foreign --copy --add-missing

autoconf

./configure --prefix="/home/yqw/MetaRTC/meta-rtc-push-BC/thirdSRC/alsa-lib-1.2.11/build" --host="arm-linux" --enable-static=yes --enable-shared=no CC=/home/yqw/MetaRTC/BC/stbgcc-6.3-1.1/bin/arm-linux-gcc

make -j20

make install

openh264

https://github.com/cisco/openh264/releases //官网有交叉编译指南

openh264-2.4.1.zip

make OS=linux CC=/home/yqw/MetaRTC/BC/stbgcc-6.3-1.1/bin/arm-linux-gcc CXX=/home/yqw/MetaRTC/BC/stbgcc-6.3-1.1/bin/arm-linux-g++ ARCH=arm

参考:metaRTC(ARM linux64)编译指南

相关推荐
EasyCVR3 小时前
EHOME视频平台EasyCVR视频融合平台使用OBS进行RTMP推流,WebRTC播放出现抖动、卡顿如何解决?
人工智能·算法·ffmpeg·音视频·webrtc·监控视频接入
简鹿办公4 小时前
使用 FFmpeg 进行音视频转换的相关命令行参数解释
ffmpeg·简鹿视频格式转换器·ffmpeg视频转换
安步当歌6 小时前
【WebRTC】视频编码链路中各个类的简单分析——VideoStreamEncoder
音视频·webrtc·视频编解码·video-codec
EasyCVR7 小时前
萤石设备视频接入平台EasyCVR多品牌摄像机视频平台海康ehome平台(ISUP)接入EasyCVR不在线如何排查?
运维·服务器·网络·人工智能·ffmpeg·音视频
runing_an_min7 小时前
ffmpeg 视频滤镜:屏蔽边框杂色- fillborders
ffmpeg·音视频·fillborders
岁月小龙18 小时前
如何让ffmpeg运行时从当前目录加载库,而不是从/lib64
ffmpeg·origin·ffprobe·rpath
安步当歌21 小时前
【WebRTC】视频采集模块中各个类的简单分析
音视频·webrtc·视频编解码·video-codec
wyw00001 天前
解决SRS推送webrtc流卡顿问题
webrtc·srs
行者记2 天前
ffmpeg命令——从wireshark包中的rtp包中分离h264
测试工具·ffmpeg·wireshark
EasyCVR2 天前
国标GB28181视频平台EasyCVR私有化视频平台工地防盗视频监控系统方案
运维·科技·ffmpeg·音视频·1024程序员节·监控视频接入