我正在尝试将Iozone(位于here)编译成适合在Android设备上使用的可执行文件。我使用Android Studio遵循these方向。但是,当构建进入externalNativeBuildDebug时,它会失败,并显示以下错误:
org.gradle.internal.UncheckedException: Build command failed.
Error while executing process /home/mbosnjak/ndk-bundle/ndk-build with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=/home/mbosnjak/AndroidStudioProjects/CommandLine/app/src/main/cpp/Android.mk APP_ABI=armeabi-v7a NDK_ALL_ABIS=armeabi-v7a NDK_DEBUG=1 APP_PLATFORM=android-15 NDK_OUT=/home/mbosnjak/AndroidStudioProjects/CommandLine/app/build/intermediates/ndkBuild/debug/obj NDK_LIBS_OUT=/home/mbosnjak/AndroidStudioProjects/CommandLine/app/build/intermediates/ndkBuild/debug/lib /home/mbosnjak/AndroidStudioProjects/CommandLine/app/build/intermediates/ndkBuild/debug/obj/local/armeabi-v7a/iozone_arm}
[armeabi-v7a] Compile thumb : iozone_arm <= libasync.c
/home/mbosnjak/AndroidStudioProjects/CommandLine/app/src/main/cpp/libasync.c:96:10: fatal error: 'aio.h' file not found
#include <aio.h>
^~~~~~~
这种情况发生在.c文件中的大多数#include语句中。用make编译它时,我能够很好地编译它。我是否比实际需要更难?