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
155 stars 92 forks source link

编译报错 libavutil/application.c:25:14: fatal error: 'openssl/evp.h' file not found #include <openssl/evp.h> #50

Open JTWang4778 opened 4 years ago

JTWang4778 commented 4 years ago

当我下载完ffmpeg安装给定的命令./compile-ffmpeg.sh all 编译的时候报了如下错误: `[*] compile ffmpeg

CC libavutil/application.o CC libavutil/buffer.o CC libavutil/camellia.o clangclang: : warningwarning: clang: : optimization flag '-fomit-frame-pointer' is not supported for target 'armv7' [-Wignored-optimization-argument]optimization flag '-fomit-frame-pointer' is not supported for target 'armv7' [-Wignored-optimization-argument]warning

: optimization flag '-fomit-frame-pointer' is not supported for target 'armv7' [-Wignored-optimization-argument] libavutil/application.c:25:14: fatal error: 'openssl/evp.h' file not found

include <openssl/evp.h>

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

1 error generated. make: [libavutil/application.o] Error 1 make: Waiting for unfinished jobs....` 请问您之前有遇到过吗? 该如何解决

befovy commented 4 years ago

按照 github action 中的步骤进行编译 .github/workflows/android_release.yml 应该不会有啥问题

steveLzsLR commented 4 years ago

博主的意思是看Actions的yaml脚本的步骤编译

befovy commented 4 years ago

博主的意思是看Actions的yaml脚本的步骤编译

是的

pelsor commented 11 months ago

按照 actions 的 yaml 的步骤还是提示 ➜ ios git:(master) ✗ sh 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: /Users/huafeng/Desktop/test2/ijkplayer/ios

[*] check gas-preprocessor

gasp: /Users/huafeng/Desktop/test2/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: /Users/huafeng/Desktop/test2/ijkplayer/ios/ffmpeg-armv7 build_prefix: /Users/huafeng/Desktop/test2/ijkplayer/ios/build/ffmpeg-armv7/output


[*] configurate ffmpeg


[*] check OpenSSL

OpenSSL Include /Users/huafeng/Desktop/test2/ijkplayer/ios/build/openssl-armv7/output/include


[*] configure

reuse configure


[*] compile ffmpeg

CC libavutil/application.o CC libavutil/blowfish.o CC libavutil/bprint.o clangclangclang: : : warning: warning: warning: optimization flag '-fomit-frame-pointer' is not supported for target 'armv7' [-Wignored-optimization-argument] optimization flag '-fomit-frame-pointer' is not supported for target 'armv7' [-Wignored-optimization-argument]optimization flag '-fomit-frame-pointer' is not supported for target 'armv7' [-Wignored-optimization-argument]

libavutil/application.c:25:14: fatal error: 'openssl/evp.h' file not found

include <openssl/evp.h>

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

1 error generated. make: [libavutil/application.o] Error 1 make: Waiting for unfinished jobs....