-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Description
Remark
!!! Attention, please confirm whether cross-compilation is necessary. In general, direct compilation is possible unless in very few cases.
Weng Xiaojing: It seems that many people misunderstand the meaning of cross-compilation. It is only required for compiling on heterogeneous platforms, such as when the compilation platform and the execution platform are different. It is not necessary when both platforms are the same.
Weng Xiaojing: The most common scenario is playing with network devices because the processors in network devices are usually weak and the compilation process is slow. That's why cross-compilation is done on a PC. The processors in PCs are usually x86, while the processors in network devices are mostly low-frequency MIPS or ARM processors, which are considered heterogeneous. The compilation speed of x86 processors is significantly faster than that of MIPS or ARM processors. Therefore, most people prefer to do cross-compilation on a PC and then copy the results into the network devices. This significantly speeds up the compilation process. Of course, if you have time, you can also compile directly on the network device, but it will be much slower.
Weng Xiaojing: I saw a friend mention ARM servers like Kunpeng, so you can directly compile on the ARM server instead of cross-compiling. There's no need to go through the extra step of cross-compilation because ARM servers are not network devices. Compiling a program on an ARM server is not a problem. Let's not take a detour.
Ubuntu Cross Build
Cross Build SRS on Ubuntu
Cross-compilation on Ubuntu platform
SRS 3.0:
SRS 4.0 ARMv8(aarch64):
- CN: v4_CN_SrsLinuxArm: Ubuntu Cross Build SRS: ARMv8(aarch64)
- EN: v4_EN_SrsLinuxArm: Ubuntu Cross Build SRS: ARMv8(aarch64)
SRS 4.0 ARMv7:
- CN: v4_CN_SrsLinuxArm: Ubuntu Cross Build SRS: ARMv7
- EN: v4_EN_SrsLinuxArm: Ubuntu Cross Build SRS: ARMv7
ARM Server
Directly compiling SRS on ARM Server: link
TRANS_BY_GPT3