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

相关推荐
一只海星19 小时前
webrtc入门系列(五)amazon-kinesis-video-streams-webrtc-sdk-c编译
webrtc·amazon-kinesis·webrtc编译
姓学名生20 小时前
李沐vscode配置+github管理+FFmpeg视频搬运+百度API添加翻译字幕
vscode·python·深度学习·ffmpeg·github·视频
NoneCoder20 小时前
JavaScript系列(38)-- WebRTC技术详解
开发语言·javascript·webrtc
学习嵌入式的小羊~21 小时前
RV1126+FFMPEG推流项目(11)编码音视频数据 + FFMPEG时间戳处理
ffmpeg·音视频
学习嵌入式的小羊~5 天前
RV1126+FFMPEG推流项目(6)视频码率及其码率控制方式
ffmpeg·音视频
勤匠5 天前
mkv转码mp4(ffmpeg工具)
ffmpeg
jyl_sh5 天前
通过ShiftMediaProject生成ffmpeg的DLL和Lib的简要说明
c++·chrome·ffmpeg·webkit·视频接口
乙龙5 天前
麒麟V10系统上安装Oracle
数据库·oracle·ffmpeg
ahardstone5 天前
使用ffmpeg提高mp4压缩比,减小文件体积【windows+ffmpeg+batch脚本】
windows·ffmpeg·batch
学习嵌入式的小羊~5 天前
RV1126+FFMPEG推流项目(7)AI音频模块编码流程
人工智能·ffmpeg·音视频