You can compile directly, just like an x86 server.
If you want to compile ARM binaries and run them on an ARM server, you can use ARM Docker for compilation. Please refer to aarch64 for more information.
docker run -it --rm -v `pwd`:/srs -w /srs/trunk ossrs/srs:aarch64 \
bash -c "./configure && make"
If the system does not define __aarch64__, you can use the following command for compilation:
./configure --extra-flags='-D__aarch64__' && make
For general ARM servers, specific macros such as __arm__ or __aarch64__ are usually defined, so you can directly use ./configure && make.
Note: In general, you can compile directly and should not use cross-compilation. If you need to cross-compile, please refer to #1547.
TRANS_BY_GPT3
Build on ARM Server
You can compile directly, just like an x86 server.
Build in aarch64 Docker
If you want to compile ARM binaries and run them on an ARM server, you can use ARM Docker for compilation. Please refer to aarch64 for more information.
For aarch64
If the system does not define
__aarch64__, you can use the following command for compilation:For general ARM servers, specific macros such as
__arm__or__aarch64__are usually defined, so you can directly use./configure && make.Note: In general, you can compile directly and should not use cross-compilation. If you need to cross-compile, please refer to #1547.
TRANS_BY_GPT3