【发布时间】:2014-08-22 01:51:23
【问题描述】:
我正在尝试在 android 4.0.4 的本机代码中使用硬件解码器 (OMX 编解码器) 构建我的代码用于 h.264 视频解码,方法是将其保存在 android 源代码树中。 android 源代码已经构建好了。我正在使用 mm 命令来构建我的解码器模块。
但是当我尝试构建它时,我收到以下错误
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld:
out/target/product/generic/obj/SHARED_LIBRARIES/custom_decoder_intermediates/custom_decoder.o:
in function custom_decoder::decode_video():frameworks/base/include/utils/RefBase.h:171:
error: undefined reference to 'android_atomic_dec'
当我探索它时,才知道 android_atomic_dec 是在 cutils/atomic.h 中定义的
它位于 AOSP 4.0.4 的 system/core/libcutils 和 system/core/include/cutils 的标头中。
所以我也通过 LOCAL_C_INCLUDES 在我的 android.mk 中添加了这个,但仍然得到同样的错误。
有人可以帮我解决这个问题吗??....
【问题讨论】:
标签: android stagefright