befovy / ijkplayer

Android/iOS video player based on FFmpeg n3.4, with MediaCodec, VideoToolbox support. Backend for https://github.com/befovy/fijkplayer, fijkplayer 的播放内核
GNU General Public License v2.0
154 stars 92 forks source link

Build failed both Android & iOS #56

Open ProFive opened 3 years ago

ProFive commented 3 years ago

Dear All,

I check out the latest version code on branch "master". Nani:befovy_ijkplayer nani$ git log --oneline 13af3d05 (HEAD -> master, origin/master, origin/HEAD) ci: fix tag name, extract tag name

ANDROID_NDK: android-ndk-r10e Before build, I run: cd config rm module.sh ln -s module-default.sh module.sh

Build Android: ./init-android.sh

cd android/contrib ./compile-ffmpeg.sh clean ./compile-ffmpeg.sh all `Nani:contrib nani$ ./compile-ffmpeg.sh all

[*] check archs

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

==================== [*] check env armv7a

FF_ARCH=armv7a FF_BUILD_OPT=


[*] make NDK standalone toolchain

build on Darwin x86_64 ANDROID_NDK=/.../Android/android-ndk-r10e NDKr10e(64-bit) detected


[*] check ffmpeg env

--------------------/../befovy_ijkplayer/android/contrib/build/toolchain-armv7a/bin --------------------arm-linux-androideabi


[*] configurate ffmpeg

/../befovy_ijkplayer/android/contrib/build/toolchain-armv7a/bin//arm-linux-androideabi-clang Unknown option "--disable-ffserver". See ./configure --help for available options. ` Build iOS ./init-ios-openssl.sh cd ios ./compile-openssl.sh clean ./compile-openssl.sh all cd IJKMediaPlayer run xcodebuild -project IJKMediaPlayer.xcodeproj -configuration Release -scheme Universal

`In file included from /../befovy_ijkplayer/ijkmedia/ijksdl/gles2/fsh/rgb.fsh.c:22: In file included from ../../ijkmedia/ijksdl/gles2/internal.h:30: In file included from ../../ijkmedia/ijksdl/ijksdl_vout.h:33: ../../ijkmedia/ijksdl/ffmpeg/ijksdl_inc_ffmpeg.h:28:10: fatal error: 'libavutil/imgutils.h' file not found

include "libavutil/imgutils.h"

     ^~~~~~~~~~~~~~~~~~~~~~

1 warning and 1 error generated.

BUILD FAILED `

Please help me. I try to build and upgrade FFMpeg 4.+ Thank you so much!

ProFive commented 3 years ago

If I used ./compile-ffmpeg.sh all Then `Nani:ios nani$ ./compile-ffmpeg.sh all

[*] check xcode version

FF_ALL_ARCHS = armv7 arm64 i386 x86_64

[*] check host

FF_ARCH=armv7 FF_BUILD_OPT= build_root: /../befovy_ijkplayer/ios

[*] check gas-preprocessor

gasp: /..befovy_ijkplayer/ios/../extra/gas-preprocessor/gas-preprocessor.pl

[*] config arch armv7

build_name: ffmpeg-armv7 platform: iPhoneOS osversion: -miphoneos-version-min=6.0

[*] make ios toolchain ffmpeg-armv7

build_source: /../befovy_ijkplayer/ios/ffmpeg-armv7 build_prefix: /..befovy_ijkplayer/ios/build/ffmpeg-armv7/output


[*] configurate ffmpeg


[*] check OpenSSL


[*] configure

config: --disable-gpl --disable-nonfree --enable-runtime-cpudetect --disable-gray --disable-swscale-alpha --disable-programs --disable-ffmpeg --disable-ffplay --disable-ffprobe --disable-ffserver --disable-doc --disable-htmlpages --disable-manpages --disable-podpages --disable-txtpages --disable-avdevice --enable-avcodec --enable-avformat --enable-avutil --enable-swresample --enable-swscale --disable-postproc --enable-avfilter --disable-avresample --enable-network --disable-dxva2 --disable-vaapi --disable-vda --disable-vdpau --disable-encoders --disable-hwaccels --disable-muxers --disable-devices --disable-iconv --enable-protocol=async --enable-cross-compile --disable-stripping --arch=armv7 --target-os=darwin --enable-static --disable-shared --enable-pic --enable-neon --enable-optimizations --enable-debug --enable-small --disable-asm --prefix=/Users/nani/Desktop/Jack/Workspaces/befovy_ijkplayer/ios/build/ffmpeg-armv7/output xcrun -sdk iphoneos clang Unknown option "--disable-ffserver". See ./configure --help for available options. `

befovy commented 3 years ago

You should remove the line export COMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --disable-ffserver" in module-default.sh.

ProFive commented 3 years ago

Thanks @befovy , But I had a problem when run the command ./compile-ffmpeg.sh `Nani:contrib nani$ ./compile-ffmpeg.sh

[*] check archs

FF_ALL_ARCHS = armv7a arm64 x86 x86_64 FF_ACT_ARCHS = armv7a

==================== [*] check env armv7a

FF_ARCH=armv7a FF_BUILD_OPT=


[*] make NDK standalone toolchain

build on Darwin x86_64 ANDROID_NDK=/..Android/android-ndk-r15c IJK_NDK_REL=15.2.4203891 NDKr15.2.4203891 detected


[*] check ffmpeg env

--------------------/../befovy_ijkplayer/android/contrib/build/toolchain-armv7a/bin --------------------arm-linux-androideabi OpenSSL detected /../befovy_ijkplayer/android/contrib/build/output-armv7a/include /../befovy_ijkplayer/android/contrib/build/output-armv7a/lib libsrt detected


[*] configurate ffmpeg --------------------`

Command stop when to go to "which $CC"