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

大佬,Linux下编译遇到坑了。请教 #21

Open
ELEVENEV opened this issue Apr 11, 2018 · 0 comments
Open

大佬,Linux下编译遇到坑了。请教 #21

ELEVENEV opened this issue Apr 11, 2018 · 0 comments

Comments

@ELEVENEV
Copy link

请问大佬一个问题,我在编译的时候遇到下面这样的报错,

Makefile:227: recipe for target '.depend' failed
make: *** [.depend] Error 1
/home/hong/Android/Sdk/ndk-bundle/toolchains/x86_64-4.9/prebuilt/linux-x86_64/bin/x86_64-linux-android-gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math -m64 -Wall -I. -I. --sysroot=/home/hong/Android/Sdk/ndk-bundle/platforms/android-21/arch-x86_64/ -Os -fpic -std=gnu99 -D_GNU_SOURCE -mpreferred-stack-boundary=5 -fPIC -fomit-frame-pointer -fno-tree-vectorize -c -o x264.o x264.c
x264.c:40:20: fatal error: signal.h: No such file or directory
#include <signal.h>
^
compilation terminated.
<builtin>: recipe for target 'x264.o' failed
make: *** [x264.o] Error 1
/home/hong/Android/Sdk/ndk-bundle/toolchains/x86_64-4.9/prebuilt/linux-x86_64/bin/x86_64-linux-android-gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math -m64 -Wall -I. -I. --sysroot=/home/hong/Android/Sdk/ndk-bundle/platforms/android-21/arch-x86_64/ -Os -fpic -std=gnu99 -D_GNU_SOURCE -mpreferred-stack-boundary=5 -fPIC -fomit-frame-pointer -fno-tree-vectorize -c -o x264.o x264.c
x264.c:40:20: fatal error: signal.h: No such file or directory
#include <signal.h>
^
compilation terminated.
<builtin>: recipe for target 'x264.o' failed
make: *** [x264.o] Error 1

我发现signal.h文件老版本的NDK是在
ndk-bundle/platforms/android-14/arch-arm/usr/include文件夹目录下

而现在最新版本的NDK signal.h文件是在
ndk-bundle-sysroot-usr-include 文件夹目录下,

哪在配置这个路径的时候SYSROOT=$NDK_HOME/platforms/$ANDROID_API/arch-x86_64 应该怎么写呀,还是按照原来的这样写吗。

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

1 participant