【问题标题】:building openh264 for android platform in x86在 x86 中为 android 平台构建 openh264
【发布时间】:2015-11-09 13:11:46
【问题描述】:

我正在尝试使用以下命令为 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'

【问题讨论】:

    标签: android pjsip openh264


    【解决方案1】:

    试试

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

    或 安装 OS=android NDKROOT=/Users/nazmulhasan/android-ndk-r10d TARGET=android-17 ARCH=x86

    【讨论】:

      【解决方案2】:

      如果您使用的是 Windows 桌面,则只需安装 nasm。将所有 nasm 文件复制到您的 \MinGW\bin\1.0\bin 文件夹中。并运行以下命令。

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

      【讨论】:

        猜你喜欢
        • 2018-10-20
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2012-01-12
        • 1970-01-01
        • 2023-04-02
        • 2015-05-03
        • 1970-01-01
        相关资源
        最近更新 更多