Linux 交叉编译Arm平台 Bento4

为了解决 ld:error: s_app uses VFP register arguments, libAP4.a(Ap4SaizAtom.cpp.o) does not 报错的链接问题。

https://www.bento4.com/developers/下载源代码。

    mkdir cmakebuild
    cd cmakebuild
    cmake -DCMAKE_BUILD_TYPE=Release --build=arm --host=arm-linux-gnueabihf --target=arm-linux-gnueabihf ..
    make

上面的--build、--host和--target没有起作用,只好手动修改了CMakeCache.txt文件,把里面与编译器相关的改变交叉编译器,并使用了交叉编译器绝对路径。

//CXX compiler
CMAKE_CXX_COMPILER:FILEPATH=/opt/arm-linux-gnueabihf/bin/arm-linux-gnueabihf-c++

//C compiler
CMAKE_C_COMPILER:FILEPATH=/opt/arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc

Bento4 说明:

Bento4 is a C++ class library and tools designed to read and write ISO-MP4 files. This format is defined in international specifications ISO/IEC 14496-12, 14496-14 and 14496-15. The format is a derivative of the Apple Quicktime file format, so Bento4 can be used to read and write most Quicktime files as well. In addition to supporting ISO-MP4, Bento4 includes support for parsing and multiplexing H.264 and H.265 elementary streams, converting ISO-MP4 to MPEG2-TS, packaging HLS and MPEG-DASH, CMAF, content encryption, decryption, and much more.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值