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)编译指南

相关推荐
aaon223571 天前
ubuntu ffmpeg 安装踩坑
linux·ubuntu·ffmpeg
Leventure_轩先生1 天前
[展示]Webrtc NoiseSuppressor降噪模块嵌入式平台移植
webrtc
科技小E1 天前
EasyRTC:基于WebRTC与P2P技术,开启智能硬件音视频交互的全新时代
网络·网络协议·小程序·webrtc·p2p·智能硬件·视频监控
m0_748245171 天前
SpringCloud-使用FFmpeg对视频压缩处理
spring·spring cloud·ffmpeg
iummature1 天前
FFmpeg命令
ffmpeg
渔舟唱晚@1 天前
FFmpeg+WebSocket+JsMpeg实时视频流实现方案
websocket·网络协议·ffmpeg
EasyNVR2 天前
EasyRTC智能硬件:实时畅联、沉浸互动、消音护航
运维·服务器·网络·安全·音视频·webrtc·p2p
EasyNVR2 天前
EasyRTC:全平台支持与自研算法驱动的智能音视频通讯解决方案
运维·服务器·小程序·音视频·webrtc·p2p·智能硬件
xcg3401232 天前
关于视频抽帧调用虹软人脸识别的BufferedImage读取优化策略
ffmpeg·音视频·视频抽帧
Black蜡笔小新2 天前
AI大模型驱动的智能音视频通信:视频通话SDK工具EasyRTC在嵌入式设备中的应用探索
人工智能·语言模型·大模型·音视频·webrtc·rtc