Ubuntu 16.04上的AARC64 linux android gcc错误;投票.h";找不到
您好,我正在尝试从Android ndk交叉编译Ubuntu 16.04和gcc-4.9上的Android arm64代码,但无法摆脱此错误:Ubuntu 16.04上的AARC64 linux android gcc错误;投票.h";找不到,android,linux,ubuntu,gcc,gnu-toolchain,Android,Linux,Ubuntu,Gcc,Gnu Toolchain,您好,我正在尝试从Android ndk交叉编译Ubuntu 16.04和gcc-4.9上的Android arm64代码,但无法摆脱此错误: aarch64-linux-android-gcc -o test.o -c test.c -Os -fPIE -Wall -DDBG test.c:26:18: fatal error: poll.h: No such file or directory #include <poll.h> ^ compilati
aarch64-linux-android-gcc -o test.o -c test.c -Os -fPIE -Wall -DDBG
test.c:26:18: fatal error: poll.h: No such file or directory
#include <poll.h>
^
compilation terminated.
Makefile:16: recipe for target 'test.o' failed
make: *** [test.o] Error 1
请告知。谢谢你,yugr,将其转换为独立解决方案:
$NDK/build/tools/make_standalone_toolchain.py \
--arch arm64 --api 23 --install-dir /tmp/my-android-toolchain
之后,我将
/tmp/myandroid toolchain/bin
添加到PATH中,它成功了。谢谢你,yugr,把它变成了一个独立的解决方案:
$NDK/build/tools/make_standalone_toolchain.py \
--arch arm64 --api 23 --install-dir /tmp/my-android-toolchain
在那之后,我将
/tmp/myandroid工具链/bin
添加到PATH中,它成功了。您是在编译自己的代码还是其他人的代码?什么是poll.h?这是来自某个API还是您自己的头文件?它在头文件中#include
应该由工具链提供只是检查一下,您是否已将默认NDK工具链转换为?您是在编译您自己的代码还是其他人的代码?什么是poll.h?这是来自某个API还是您自己的头文件?它在头文件中#include
应该由toolchain提供检查,您是否已将默认NDK toolchain转换为?