bilibili / ijkplayer

Android/iOS video player based on FFmpeg n3.4, with MediaCodec, VideoToolbox support.
GNU General Public License v2.0
32.56k stars 8.13k forks source link

WARNING: arm-linux-androideabi-pkg-config not found, library detection may fail. tools/do-compile-ffmpeg.sh: line 309: 14111 Segmentation fault: 11 make clean 构建出现了这问题,电脑是Apple的M1.. #5573

Open duanliwu opened 10 months ago

duanliwu commented 10 months ago

/Users/guolingling/ijkplayer-android/android/contrib guolingling@dlw-Mac-mini contrib % ./compile-ffmpeg.sh all

[*] check archs

FF_ALL_ARCHS = armv5 armv7a arm64 x86 x86_64 FF_ACT_ARCHS = armv5 armv7a arm64 x86 x86_64

==================== [*] check env armv5

FF_ARCH=armv5 FF_BUILD_OPT=


[*] make NDK standalone toolchain

build on Darwin arm64 ANDROID_NDK=/Users/guolingling/Downloads/android-ndk-r14b IJK_NDK_REL=14.1.3816874 NDKr14.1.3816874 detected HOST_OS=darwin HOST_EXE= HOST_ARCH=arm64 HOST_TAG=darwin-arm64 HOST_NUM_CPUS=8 BUILD_NUM_CPUS=16 Auto-config: --arch=arm Toolchain installed to /Users/guolingling/ijkplayer-android/android/contrib/build/ffmpeg-armv5/toolchain.


[*] check ffmpeg env


[*] configurate ffmpeg

/Users/guolingling/ijkplayer-android/android/contrib/build/ffmpeg-armv5/toolchain/bin//arm-linux-androideabi-gcc install prefix /Users/guolingling/ijkplayer-android/android/contrib/build/ffmpeg-armv5/output source path . C compiler arm-linux-androideabi-gcc C library bionic host C compiler gcc host C library
ARCH arm (armv5te) big-endian no runtime cpu detection yes ARMv5TE enabled yes ARMv6 enabled yes ARMv6T2 enabled yes VFP enabled yes NEON enabled yes THUMB enabled no debug symbols yes strip symbols yes optimize for size yes optimizations yes static yes shared no postprocessing support no network support yes threading support pthreads safe bitstream reader yes texi2html enabled no perl enabled yes pod2man enabled yes makeinfo enabled no makeinfo supports HTML no

External libraries: xlib zlib

External libraries providing hardware acceleration:

Libraries: avcodec avfilter avformat avutil swresample swscale

Programs:

Enabled decoders: aac flv hevc mp3adufloat mp3on4float vp8 aac_latm h263 mp3 mp3float vp6 vp9 flac h264 mp3adu mp3on4 vp6f

Enabled encoders: png

Enabled hwaccels:

Enabled parsers: aac flac h264 mpegaudio aac_latm h263 hevc vp9

Enabled demuxers: aac flac hls mov mpegts concat flv live_flv mp3 mpegvideo data hevc matroska mpegps webm_dash_manifest

Enabled muxers: mov mp4

Enabled protocols: async file httpproxy ijkmediadatasource prompeg tee cache ftp ijkhttphook ijksegment rtmp udp data hls ijkio ijktcphook rtmpt udplite ffrtmphttp http ijklongurl pipe tcp

Enabled filters:

Enabled bsfs: aac_adtstoasc extract_extradata h264_mp4toannexb null vp9_raw_reorder vp9_superframe_split

Enabled indevs:

Enabled outdevs:

License: LGPL version 2.1 or later Creating configuration files ... ./configure: line 782: 14073 Done map 'eval echo "$v \${$v:-no}"' "$@" 14074 Segmentation fault: 11 | awk "BEGIN { split(\"$files\", files) } { c = \"$pfx\" toupper(\$1); v = \$2; sub(/yes/, 1, v); sub(/no/, 0, v); for (f in files) { file = files[f]; if (file ~ /\.h\$/) { printf(\"#define %s %d\n\", c, v) >>file; } else if (file ~ /\.asm\$/) { printf(\"%%define %s %d\n\", c, v) >>file; } else if (file ~ /\.mak\$/) { n = -v ? \"\" : \"!\"; printf(\"%s%s=yes\n\", n, c) >>file; } else if (file ~ /\.texi\$/) { pre = -v ? \"\" : \"@c \"; yesno = \$2; c2 = tolower(c); gsub(//, \"-\", c2); printf(\"%s@set %s %s\n\", pre, c2, yesno) >>file; } } }" ./configure: line 559: echo: write error: Broken pipe ./configure: line 782: 14075 Broken pipe: 13 map 'eval echo "$v \${$v:-no}"' "$@" 14076 Segmentation fault: 11 | awk "BEGIN { split(\"$files\", files) } { c = \"$pfx\" toupper(\$1); v = \$2; sub(/yes/, 1, v); sub(/no/, 0, v); for (f in files) { file = files[f]; if (file ~ /\.h\$/) { printf(\"#define %s %d\n\", c, v) >>file; } else if (file ~ /\.asm\$/) { printf(\"%%define %s %d\n\", c, v) >>file; } else if (file ~ /\.mak\$/) { n = -v ? \"\" : \"!\"; printf(\"%s%s=yes\n\", n, c) >>file; } else if (file ~ /\.texi\$/) { pre = -v ? \"\" : \"@c \"; yesno = \$2; c2 = tolower(c); gsub(//, \"-\", c2); printf(\"%s@set %s %s\n\", pre, c2, yesno) >>file; } } }" ./configure: line 559: echo: write error: Broken pipe ./configure: line 782: 14077 Broken pipe: 13 map 'eval echo "$v \${$v:-no}"' "$@" 14078 Segmentation fault: 11 | awk "BEGIN { split(\"$files\", files) } { c = \"$pfx\" toupper(\$1); v = \$2; sub(/yes/, 1, v); sub(/no/, 0, v); for (f in files) { file = files[f]; if (file ~ /\.h\$/) { printf(\"#define %s %d\n\", c, v) >>file; } else if (file ~ /\.asm\$/) { printf(\"%%define %s %d\n\", c, v) >>file; } else if (file ~ /\.mak\$/) { n = -v ? \"\" : \"!\"; printf(\"%s%s=yes\n\", n, c) >>file; } else if (file ~ /\.texi\$/) { pre = -v ? \"\" : \"@c \"; yesno = \$2; c2 = tolower(c); gsub(//, \"-\", c2); printf(\"%s@set %s %s\n\", pre, c2, yesno) >>file; } } }" ./configure: line 782: 14085 Done map 'eval echo "$v \${$v:-no}"' "$@" 14086 Segmentation fault: 11 | awk "BEGIN { split(\"$files\", files) } { c = \"$pfx\" toupper(\$1); v = \$2; sub(/yes/, 1, v); sub(/no/, 0, v); for (f in files) { file = files[f]; if (file ~ /\.h\$/) { printf(\"#define %s %d\n\", c, v) >>file; } else if (file ~ /\.asm\$/) { printf(\"%%define %s %d\n\", c, v) >>file; } else if (file ~ /\.mak\$/) { n = -v ? \"\" : \"!\"; printf(\"%s%s=yes\n\", n, c) >>file; } else if (file ~ /\.texi\$/) { pre = -v ? \"\" : \"@c \"; yesno = \$2; c2 = tolower(c); gsub(//, \"-\", c2); printf(\"%s@set %s %s\n\", pre, c2, yesno) >>file; } } }"

WARNING: arm-linux-androideabi-pkg-config not found, library detection may fail. tools/do-compile-ffmpeg.sh: line 309: 14111 Segmentation fault: 11 make clean guolingling@dlw-Mac-mini contrib %

RATime360 commented 9 months ago

官方脚本还不支持m1电脑编译