cpu-features.h没有这样的文件或目录webrtc Android build

时间:2016-04-15 08:42:48

标签: android c++ c android-ndk webrtc

我正在为Android和Android构建webrtc我按照以下步骤生成了webrtc库:

source build / android / envsetup.sh python webrtc / build / gyp_webrtc ninja -c out / Debug

这会产生以下错误:

  

忍者:构建已停止:子命令失败。忍者:进入目录   `./out/Release/' [3/2806] CC   OBJ /的WebRTC / system_wrappers /源极/ cpu_features_android.cpu_features_android.o   失败:   /home/rtcdev/Nishant/src/third_party/android_tools/ndk//toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc

     

-MMD -MF obj / webrtc / system_wrappers / source / cpu_features_android.cpu_features_android.o.d

     

-DV8_DEPRECATION_WARNINGS -DCLD_VERSION = 1 -D_FILE_OFFSET_BITS = 64 -DNO_TCMALLOC -DDISABLE_NACL           -DCHROMIUM_BUILD -DCR_CLANG_REVISION = 233105-2 -DUSE_LIBJPEG_TURBO = 1 -DENABLE_WEBRTC = 1 -DENABLE_MEDIA_ROUTER = 1           -DUSE_PROPRIETARY_CODECS -DENABLE_BROWSER_CDMS -DENABLE_CONFIGURATION_POLICY -DENABLE_NOTIFICATIONS           -DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE -DDONT_EMBED_BUILD_METADATA -DFIELDTRIAL_TESTING_ENABLED           -DENABLE_AUTOFILL_DIALOG = 1 -DENABLE_PRINTING = 1 -DENABLE_BASIC_PRINTING = 1 -DENABLE_SPELLCHECK = 1           -DUSE_BROWSER_SPELLCHECKER = 1 -DENABLE_SUPERVISED_USERS = 1 -DVIDEO_HOLE = 1 -DV8_USE_EXTERNAL_STARTUP_DATA           -DENABLE_WEBVR -DMOBILE_SAFE_BROWSING -DSAFE_BROWSING_DB_REMOTE -DSAFE_BROWSING_SERVICE           -DEXPAT_RELATIVE_PATH -DWEBRTC_MODULE_UTILITY_VIDEO -DWEBRTC_ARCH_ARM -DWEBRTC_ARCH_ARM_V7           -DWEBRTC_DETECT_ARM_NEON -DWEBRTC_POSIX -DWEBRTC_LINUX -DWEBRTC_ANDROID -DWEBRTC_ANDROID_OPENSLES -DUSE_LIBPCI = 1           -DUSE_OPENSSL = 1 -DUSE_OPENSSL_CERTS = 1 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -DANDROID -D__GNU_SOURCE = 1           ' -DCHROME_BUILD_ID =""' -DHAVE_SYS_UIO_H -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED = 0           -D_FORTIFY_SOURCE = 2           -Igen -I ../ ..           -fstack-protector --param = ssp-buffer-size = 4 -Werror -fno-strict-aliasing           -Wall -Wno-unused-parameter -Wno-missing-field-initializers -fvisibility = hidden -pipe -fPIC -Wno-unused-local-typedefs           -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wno-strict-overflow -fno-builtin-cos -fno-builtin-sin           -fno-builtin-cosf -fno-builtin-sinf -march = armv7-a -mtune = generic-armv7-a -mfpu = vfpv3-d16 -mfloat-abi = softfp           -mthumb -fno-tree-sra -fno-caller-saves -Wno-psabi -mthumb-interwork -ffunction-sections -funwind-tables           -g -fstack-protector -fno-short-enums -finline-limit = 64           --sysroot = .. / .. / THIRD_PARTY / android_tools / NDK //平台/机器人-16 /拱形臂

     

-isystem ../../ THIRD_PARTY / android_tools / NDK //源/ CXX-STL / LLVM-的libc ++ / libcxx /包括

     

-isystem ../../ THIRD_PARTY / android_tools / NDK //源/ CXX-STL / LLVM-的libc ++ ABI / libcxxabi /包括

     

-isystem ../../ THIRD_PARTY / android_tools / NDK //源/机器人/支持/包括

     

-Os -fno-ident -fdata-sections -ffunction-sections -fomit-frame-pointer -funwind-tables
          -c ../../webrtc/system_wrappers/source/cpu_features_android.c           -o obj / webrtc / system_wrappers / source / cpu_features_android.cpu_features_android.o

     

../../的WebRTC / system_wrappers /源极/ cpu_features_android.c:11:26:   致命错误:cpu-features.h:没有这样的文件或目录#include      ^编译终止。

有没有人有任何想法,看到webrtc标志,我缺少什么webrtc Android?

1 个答案:

答案 0 :(得分:1)

编译器找不到头文件cpu-features.h,所以找出它所在的目录,然后将该目录添加到编译器标志中,就像你已经拥有的其他目录一样。