Skip to content

Support direct compilation: ARM and other platforms, for ARM, armv8, aarch64, etc. #1282

Closed
@zhanglibo007

Description

@zhanglibo007

Build on ARM Server

You can compile directly, just like an x86 server.

./configure && make

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.

docker run -it --rm -v `pwd`:/srs -w /srs/trunk ossrs/srs:aarch64 \
    bash -c "./configure && make"

For aarch64

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

Metadata

Metadata

Assignees

Labels

DuplicatedDuplicated bug.FeatureIt's a new feature.TransByAITranslated by AI/GPT.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions