Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mac环境编译 ./compile-ffmpeg.sh all 报错 #4043

Open
kongdongdong opened this issue Feb 23, 2018 · 9 comments
Open

mac环境编译 ./compile-ffmpeg.sh all 报错 #4043

kongdongdong opened this issue Feb 23, 2018 · 9 comments

Comments

@kongdongdong
Copy link

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 libavfilter/avfilter.h:41,
from libavfilter/audio.h:25,
from libavfilter/af_acopy.c:19:
./libavutil/timer.h:38:31: fatal error: linux/perf_event.h: No such file or directory

include <linux/perf_event.h>

                           ^

compilation terminated.
In file included from ./libavutil/internal.h:42:0,
from ./libavutil/common.h:467,
from ./libavutil/avutil.h:296,
from ./libavutil/opt.h:31,
from libavfilter/af_acrusher.c:21:
./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/af_acopy.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [libavfilter/af_acrusher.o] Error 1
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>

                           ^

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

include <linux/perf_event.h>

                           ^

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

@raymond1012
Copy link
Member

raymond1012 commented Feb 23, 2018 via email

@kongdongdong
Copy link
Author

@raymond1012 How to solve this issue

@raymond1012
Copy link
Member

raymond1012 commented Feb 23, 2018 via email

@401885064
Copy link

我编译module-default.sh 这个 遇到上面同样问题 该怎么解决?? ( module-lite.sh不能满足需求)

@401885064
Copy link

仔细阅读module-lite.h 原来在最下面有一行配置:export COMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --disable-linux-perf"
把这行复制到module-default.sh 的最后面就可以了

@liulei9385
Copy link

我试了一下,确实是可以的,没报错了

@hydraxman
Copy link

仔细阅读module-lite.h 原来在最下面有一行配置:export COMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --disable-linux-perf"
把这行复制到module-default.sh 的最后面就可以了

棒棒哒

@j0hmy
Copy link

j0hmy commented Apr 3, 2019

export COMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --disable-linux-perf"

@AbbasHassan
Copy link

export COMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --disable-linux-perf"

This worked for me. Thank you. For the ones coming here searching for a solution, you need to write the quoted line of code at the end of module-default.sh (or any other module configuration that you selected) and then compile again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants