UPDATE 2016年3月19日:有超能力释放与NDK R11正常工作新的二进制文件NDK-构建失败NDK最近更新后建立的音频超能力图书馆
我试图建立库超能力样品CrossExample项目在Android Studio中。直到最近NDK更新它的工作般的魅力,但现在NDK建造的执行提供了一个错误:
Error:error: undefined reference to '__page_size'
我试着用不同的工具链建立,删除/添加几个构建标志,没有运气这么远。
在另一个使用Superpowered SDK和几乎相同配置的项目中,我得到了一些其他的错误细节。输出消息日志的一部分:
/android/ndk/platforms/android-9/arch-x86/usr/include/unistd.h:173: error: undefined reference to '__page_size'
/android/ndk/platforms/android-9/arch-x86/usr/include/unistd.h:173: error: undefined reference to '__page_size'
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [/Users/user_name/StudioProjects/project_name/app/src/main/jniSuperpowered/obj/local/x86/libNativeLibName.so] Error 1
make: *** Waiting for unfinished jobs....
/Volumes/iMect/iphone/SuperpoweredSource/decoder/SuperpoweredDecoder.cpp:120: error: undefined reference to '__page_size'
/Volumes/iMect/iphone/SuperpoweredSource/decoder/hlsreader.cpp:582: error: undefined reference to '__page_size'
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [/Users/user_name/StudioProjects/project_name/app/src/main/jniSuperpowered/obj/local/armeabi-v7a/libNightcorizerSuperpowered.so] Error 1
FAILURE: Build failed with an exception.
看起来不对的东西是unistd.h中__page_size的未定义引用。不过,我对进一步的故障排除知之甚少。
感谢任何帮助/建议!
更新之前您使用的是哪个版本的NDK?你有没有更新到r11? –
我使用的是与Android Studio捆绑的版本 – Sam