为了解决 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.