android - Binder/ProcessState.h 位于何处?

标签 android ffmpeg android-ndk stagefright

我正在尝试使用 libstagefright 构建 IJKmediaplayer。但我遇到了一个错误。
Config.log说:

arm-linux-androideabi-g++ -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Dstrtod=avpriv_strtod -DPIC -O3 -Wall -pipe -std=c99 -ffast-math -fstrict-aliasing -Werror=strict-aliasing -Wno-psabi -Wa,--noexecstack -DANDROID -DNDEBUG -march=armv7-a -mcpu=cortex-a8 -mfpu=vfpv3-d16 -mfloat-abi=softfp -mthumb -mcpu=cortex-a8 -std=c99 -fPIC -mthumb -pthread -D__STDC_CONSTANT_MACROS -c -o /tmp/ffconf.ofpI5mq2.o /tmp/ffconf.EKPBn1tK.cpp
cc1plus: warning: command line option '-std=c99' is valid for C/ObjC but not for C++ [enabled by default]
cc1plus: warning: command line option '-std=c99' is valid for C/ObjC but not for C++ [enabled by default]
/tmp/ffconf.EKPBn1tK.cpp:1:33: fatal error: binder/ProcessState.h: No such file or directory
 #include <binder/ProcessState.h>
                                 ^
compilation terminated.
ERROR: libstagefright_h264 not found

我在用NDK r10e-rc4 (64 位),FFmpeg源版本 2.7
Ubuntu 14 64 bit
我需要下载android开源项目吗?

最佳答案

binder/ProcessState.h是 AOSP 的一部分,而不是 NDK。

关于android - Binder/ProcessState.h 位于何处?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31824750/

相关文章:

android - 仅在 NDK 中读取文件时出现问题,写入文件时没有错误

c++ - 如何在 Android NDK 中读取硬盘中的图像?

android - 如何使用 Wifi Direct 在两部 Android 手机之间传输文件以下载 Android 手机目录而不是打包目录

java - 模拟 android.content.res.Configuration 类型的对象并为其分配语言环境

php - ffmpeg 视频中的随机图像,但按顺序排列

iphone - 为架构 'GCC 4.2' 选择了不支持的编译器 'i386'

android - 无法恢复 Activity -运行时异常

android - 在 Android 应用程序中使用 MonkeyRunner?

html - 如何主持直播视频

android - 如何在 android studio 中创建一个 c++ 类(.h 和 .cpp)?