building openh264 for android platform in x86

你。 提交于 2019-12-10 23:16:55

问题


I'm trying to build openh264 for android with following command :

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

And getting the following error:

/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'

回答1:


Try

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

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




回答2:


If you are using windows desktop then simple install nasm. copy all nasm file into your \MinGW\bin\1.0\bin folder. and run below command.

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


来源:https://stackoverflow.com/questions/33609890/building-openh264-for-android-platform-in-x86

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