Ios-错误的体系结构构建WebRTC
我正在为iOS构建WebRTC。为此,我使用以下bash脚本:Ios-错误的体系结构构建WebRTC,ios,iphone,webrtc,armv7,arm64,Ios,Iphone,Webrtc,Armv7,Arm64,我正在为iOS构建WebRTC。为此,我使用以下bash脚本: # Set flags to compile in arm64 export GYP_GENERATORS="ninja" export GYP_DEFINES="build_with_libjingle=1 build_with_chromium=1 libjingle_objc=1 OS=ios target_arch=arm64" export GYP_GENERATOR_FLAGS="output_dir=out_ios_a
# Set flags to compile in arm64
export GYP_GENERATORS="ninja"
export GYP_DEFINES="build_with_libjingle=1 build_with_chromium=1 libjingle_objc=1 OS=ios target_arch=arm64"
export GYP_GENERATOR_FLAGS="output_dir=out_ios_arm64"
export GYP_CROSSCOMPILE=1
# Generate metadata for compile
gclient runhooks
# Compile webRTC in Release and verbose mode
ninja -v -C src/out_ios_arm64/Release-iphoneos AppRTCDemo
在同一台机器和同一个目录中,我编译了armv7
,现在当我尝试使用上面的代码构建时,库是为armv7
编译的。也许我的dir中有一些元数据信息,我没有删除,或者什么的,但是我知道如果我在我的GYP_定义中设置target_arch=arm64,我应该会看到为这个arch编译的库。知道会发生什么吗
p.D:我需要同时为(
armv7
和arm64
)构建一个通用库,以便用lipo生成一个通用库。您是否可能签入了src/out\u ios\u armv7/?不是在src/out\u ios\u arm64/@Kevin是的,当然,这是你的问题,armv7 lib最终在src/out\u ios\u armv7中,但是当你为另一个架构构建时,你必须从另一个目录获取lib(在你的例子中是src/out\u ios\u arm64)@Kevin当我构建时,我可以看到编译行,以确保-arch是armv7,而不是arm64,不是目录问题。