bilibili / ijkplayer

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

Ubuntu17.04上ijkplayer-0.8.8版本编译失败 #4049

Open lingchen52 opened 6 years ago

lingchen52 commented 6 years ago

之前用Ubuntu17.04编译ijkplayer-0.8.4版本成功,今天在同一环境下编译0.8.8版本失败,使用ln -s module-default.sh module.sh 错误信息: WARNING: arm-linux-androideabi-pkg-config not found, library detection may fail.


[*] compile ffmpeg

In file included from ./libavutil/internal.h:42:0, from ./libavutil/common.h:467, from ./libavutil/avutil.h:296, from ./libavutil/avassert.h:31, from libavfilter/aeval.c:26: ./libavutil/timer.h:38:31: fatal error: linux/perf_event.h: No such file or directory

include <linux/perf_event.h>

                           ^

compilation terminated. make: *** [libavfilter/aeval.o] Error 1

passerbya commented 6 years ago

我也遇到同样的问题./compile-ffmpeg.sh all时就报上面的错误,我把Ubuntu升级到17.10.1也不行

moeyard commented 6 years ago

module-lite.sh 加 export COMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --disable-linux-perf"

CuiCharles commented 5 years ago

看sh文件最后有没有这句话:export COMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --disable-linux-perf" 没有的话就加上