Compiling IOzone executable for Android

谁都会走 提交于 2019-12-11 10:32:46

问题


I am trying to compile Iozone (located here) into an executable that is suitable to be used on an Android device. I have followed these directions using Android Studio. However when the build enters the externalNativeBuildDebug it fails with this error:

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>
     ^~~~~~~

And this happens with most of the #include statements that are in the .c files. I was able to compile it fine when compiling it with make. Am I making this harder than it needs to be?

来源:https://stackoverflow.com/questions/50592289/compiling-iozone-executable-for-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!