webrtc 编译汇编文件时错误
@ This file was created from a .asm file
解决办法:
把OS=ios target_arch=armv7 改为target_arch=arm arm_version=7
即把
export GYP_DEFINES="OS=ios target_arch=armv7”
改为:
export GYP_DEFINES="OS=ios target_arch=arm arm_version=7"
然后重新执行
webrtc/build/gyp_webrtc,
最后重新编译。
错误日志类似下面的:
ninja -C out_ios/Debug-iphoneos AppRTCDemo
ninja: Entering directory `out_ios/Debug-iphoneos'
[824/1674] CC obj/chromium/src/third_party/libvpx/gen/third_party/libvpx/libvpx.bilinearfilter_v6.o
FAILED: ../../third_party/llvm-build/Release+Asserts/bin/clang -MMD -MF obj/chromium/src/third_party/libvpx/gen/third_party/libvpx/libvpx.bilinearfilter_v6.o.d -DV8_DEPRECATION_WARNINGS -DDISABLE_NACL -DCHROMIUM_BUILD -DCR_CLANG_REVISION=239765-1 -DUSE_LIBJPEG_TURBO=1 -DENABLE_CONFIGURATION_POLICY -DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE -DDONT_EMBED_BUILD_METADATA -DCLD_VERSION=2 -DDISABLE_FTP_SUPPORT=1 -DV8_USE_EXTERNAL_STARTUP_DATA -DUSE_LIBPCI=1 -DUSE_OPENSSL=1 -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DWTF_USE_DYNAMIC_ANNOTATIONS=1 -Igen -I../../chromium/src/third_party/libvpx/source/config/linux/arm-neon -I../../chromium/src/third_party/libvpx/source/config -I../../chromium/src/third_party/libvpx/source/libvpx -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.3.sdk -O0 -gdwarf-2 -fvisibility=hidden -Wnewline-eof -miphoneos-version-min=7.0 -arch arm64 -Wendif-labels -Wno-unused-parameter -Wno-missing-field-initializers -Wno-selector-type-mismatch -Wno-conversion -Wno-parentheses-equality -Wheader-hygiene -Wno-char-subscripts -Wno-unneeded-internal-declaration -Wno-covered-switch-default -Wno-c++11-narrowing -Wno-deprecated-register -Wno-inconsistent-missing-override -Wno-overloaded-virtual -std=c99 -Xclang -load -Xclang /Users/gjwang/source/webrtc/webrtc_ios/src/third_party/llvm-build/Release+Asserts/lib/libFindBadConstructs.dylib -Xclang -add-plugin -Xclang find-bad-constructs -fcolor-diagnostics -I/Users/gjwang/source/webrtc/webrtc_ios/src/chromium/src/third_party/libvpx/source/config/linux/arm-neon -I/Users/gjwang/source/webrtc/webrtc_ios/src/chromium/src/third_party/libvpx/source/config -Igen/third_party/libvpx -Wno-undefined-bool-conversion -Wno-tautological-undefined-compare -c gen/third_party/libvpx/bilinearfilter_v6.S -o obj/chromium/src/third_party/libvpx/gen/third_party/libvpx/libvpx.bilinearfilter_v6.o
gen/third_party/libvpx/bilinearfilter_v6.S:1:3: error: unexpected token at start of statement
@ This file was created from a .asm file
^
gen/third_party/libvpx/bilinearfilter_v6.S:2:3: error: unexpected token at start of statement
@ using the ads2gas_apple.pl script.
^
gen/third_party/libvpx/bilinearfilter_v6.S:7:3: error: unexpected token at start of statement
@
^
gen/third_party/libvpx/bilinearfilter_v6.S:8:4: error: unexpected token at start of statement
@ Copyright (c) 2010 The WebM project authors. All Rights Reserved.
^
gen/third_party/libvpx/bilinearfilter_v6.S:9:3: error: unexpected token at start of statement
@
^
gen/third_party/libvpx/bilinearfilter_v6.S:10:4: error: unexpected token at start of statement
@ Use of this source code is governed by a BSD-style license
^
gen/third_party/libvpx/bilinearfilter_v6.S:11:4: error: unexpected token at start of statement