android - 在 x86 中为 android 平台构建 openh264

标签 android pjsip openh264

我正在尝试使用以下命令为 android 构建 openh264 :

 $ make OS=android NDKROOT=/Users/nazmulhasan/android-ndk-r10d TARGET=android-17 ARCH=x86

并出现以下错误:

/Users/nazmulhasan/android-ndk-r10d/toolchains/x86-4.8/prebuilt/darwin-x86/bin/../lib/gcc/i686-linux-android/4.8/../../../../i686-linux-android/bin/ld: error: codec/common/cpu-features.o: incompatible target
codec/common/src/WelsThreadLib.o:WelsThreadLib.cpp:function WelsQueryLogicalProcessInfo: error: undefined reference to 'wels_getCpuCount'

最佳答案

尝试

make install OS=android NDKROOT=/Users/nazmulhasan/android-ndk-r10d TARGET=android-21 ARCH=x86

或者 make install OS=android NDKROOT=/Users/nazmulhasan/android-ndk-r10d TARGET=android-17 ARCH=x86

关于android - 在 x86 中为 android 平台构建 openh264,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33609890/

相关文章:

c++ - 将 C++ 语法转换为 Objective C

c++ - 如何将 Y,U,V 缓冲区转换为一维数组

c++ - 如何正确使用 OpenH264 使用代码示例进行编码?

java - 使用 GSON 发送 Volley 参数

android - 视频屏幕被垂直拉伸(stretch)

ios - PJSIP:找不到错误文件

android - 无法在多设备上同时运行 Monkeyrunner 脚本(例如两个 Monkeyrunner 进程)

android - 如何从 Realm 对象中删除所有记录而不在android中获取它?

android - 如何为不同于 armeabi 的架构构建和使用 PJSIP?