ossrs / srs

SRS is a simple, high-efficiency, real-time media server supporting RTMP, WebRTC, HLS, HTTP-FLV, HTTP-TS, SRT, MPEG-DASH, and GB28181.
https://ossrs.io
MIT License
25.37k stars 5.34k forks source link

Compilation of SRS failed with the error message: "Build ffmpeg-4-fit failed. #2377

Closed xiekai-aiai closed 3 years ago

xiekai-aiai commented 3 years ago

Build ffmpeg-4-fit failed

Please describe the issue you have encountered.

  1. SRS version: srs-4.0release
  2. The log of SRS is as follows: AR libavcodec/libavcodec.a ar: libavcodec/aarch64/aacpsdsp_neon.o: No such file or directory ffbuild/library.mak:21: recipe for target 'libavcodec/libavcodec.a' failed make: *** [libavcodec/libavcodec.a] Error 1 Build ffmpeg-4-fit failed, ret=2

System: No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 18.04.5 LTS Release: 18.04 Codename: bionic

When compiling SRS, an error occurred during the execution of ./configure. The error message is as follows. Later, I manually commented out the part where ar aacpsdsp_neon.o is located, but then another error occurred. AR libavcodec/libavcodec.a ar: libavcodec/aarch64/fft_neon.o: No such file or directory ffbuild/library.mak:21: recipe for target 'libavcodec/libavcodec.a' failed make: *** [libavcodec/libavcodec.a] Error 1 Build ffmpeg-4-fit failed, ret=2

TRANS_BY_GPT3

winlinvip commented 3 years ago

Ubuntu18, compile using Docker or refer to the commands in the Dockerfile: https://github.com/ossrs/srs-docker/tree/ubuntu18

TRANS_BY_GPT3

briand123 commented 2 years ago

FYI - I pulled 4.0 code and still see this (or very similar) issue building for aarch64 on raspberry pi 4 when running "./config" and it gets deep into the ffmpeg-4-fit build: AR libavcodec/libavcodec.a ar: libavcodec/aarch64/aacpsdsp_neon.o: No such file or directory make: *** [ffbuild/library.mak:22: libavcodec/libavcodec.a] Error 1 Build ffmpeg-4-fit failed, ret=2 brian@PI-SSM01:~/srs/trunk $

I'm trying to find the diffs for the fix but only seeing it was closed w/o diffs. TY