webcrt编译错误集锦
来源:互联网 发布:java写游戏 编辑:程序博客网 时间:2024/05/18 00:32
错误:
yasm gperf for C:\Users\melcu\Desktop\webrtc\trunk\build\Debug\obj\global_intermediate\third_party\yasm\x86insn_gas.gperf.10> Could not open `C:/Users/melcu/Desktop/webrtc/trunk/build/Debug/obj/global_intermediate/third_party/yasm/x86insn_gas.gperf' for reading10>C:\Users\melcu\Desktop\webrtc\trunk\third_party\yasm\yasm.targets(1,2021):
error MSB3721: The command "call "C:\Users\melcu\Desktop\webrtc\trunk\third_party\yasm\..\..\third_party\cygwin\setup_env.bat" && set CYGWIN=nontsec&& set INTDIR=C:\Users\melcu\Desktop\webrtc\trunk\Debug\obj\yasm\&& set OUTDIR=../..\build\Debug\&& set INPUTPATH=C:\Users\melcu\Desktop\webrtc\trunk\build\Debug\obj\global_intermediate\third_party\yasm\x86insn_gas.gperf && bash -c "\"`cygpath -m \"${OUTDIR}\"`/genperf\" \"`cygpath -m \"${INPUTPATH}\"`\" \"`cygpath -m \"${INTDIR}\"`/third_party/yasm/x86insn_gas.c\""" exited with code 1.
解决办法:
原文:http://code.google.com/p/webrtc/issues/detail?id=197
Update: looks like x86insn_gas.gperf and x86insn_nasm.gperf are in my 'trunk/third_party/yasm/source/patched-yasm' dir but the yasm build expects them to be in 'trunk/build/[Debug/Release]/obj/global_intermediate/third_party/yasm' dir. Putting them there manually yields a successful yasm and libvpx build now :) haven't dug deep enough yet to know why they are being generated to the wrong folders but at least this is a workaround for us.即手动拷贝patched-yasm中的x86insn_gas.gperf和x86insn_nasm.gperf文件,然后点击编译,不要点击重新编译。
编译时,error C2977 "std::tuple" too many template arguments问题的解决办法
网文http://www.cnblogs.com/fresky/articles/2455058.html中的方案如下:
打开 c:\program files (x86)\Microsoft Visual Studio 11.0\VC\include\xstddef,把 _VARIADIC_MAX定义成10。
这个方案一方面需要Administrator,其实是需要System权限才能修改Windows 8中的System文件,另一方面,会对所有的C/C++代码造成影响
其实,更简单的方法是打开“解决方案资源管理器”,右键打开项目“属性”,在C/C++ --> “预处理器”--> “预处理定义”中增加以下行即可:
_VARIADIC_MAX=10
下载出错:
解决办法不要下载资源文件:
I have the same problem on Mac. My network speed is 400k/s when running download_from_google_storage, which is not so bad.In my case, I didn't need resources files, so I simply commented these lines in trunk/DEPS : # { # # Download test resources, i.e. video and audio files from Google Storage. # "pattern": "\\.sha1", # "action": ["download_from_google_storage", # "--directory", # "--recursive", # "--num_threads=10", # "--bucket", "chromium-webrtc-resources", # Var("root_dir") + "/resources"], # },And then:gclient sync --forceThe sync succeeded, though the trunk/resources is empty.
工具链错误如can't find tool chains 或者 current_hash:desired_hashes 不匹配 ,首先查看VS2012 vs2013 和 WIN 8 SDK 等工具是否默认方式安装好,然后解决办法如下:
set DEPOT_TOOLS_WIN_TOOLCHAIN=1
set GYP_GENERATORS=ninja
或者
set DEPOT_TOOLS_WIN_TOOLCHAIN=0
set GYP_GENERATORS=msvs
set GYP_MSVS_VERSION=2013
错误:
fatal error C1083: Cannot open include file: ‘ammintrin.h’: No such file or directory
Searching Google for the answer I found only one link in Russian. Russian developer says, he have reinstalled Visual Studio. Tried to search MS Connect again, and found: Windows Update KB2455033 breaks build with missing ammintrin.h.
The workaround is to install Visual Studio 2010 SP1. Download it form Microsoft Website: Microsoft Visual Studio 2010 Service Pack 1 (Installer).
意思是:需要安装 Microsoft Visual Studio 2010 Service Pack 1 (Installer).
错误:
VC 2005 & VC 2008 error C2220: warning treated as error - no object file generated
vs2010编译chromium的时候出现如下问题 :
bash:../../third_party/libvpx/copy_obj.sh: /bin/bash: bad interpreter: No such file or directory
microsoft.CppCommon.targets(151,5): error MSB6006: "cmd.exe" 已退出, 代码为126
如果出现这个问题
可以使用源代码下的E:\chromium\src\third_party\cygwin\setup_mount.bat,解决 ,双击此文件即可。
执行完后,清理工程,再次编译,如果出现如下问题:
11> copy_enc_offsets_obj
12>------ 已启动生成: 项目: generate_files, 配置: Debug Win32 ------
12> Running source/patched-yasm/modules/arch/x86/gen_x86_insn.py.
11> ../../third_party/libvpx/copy_obj.sh: line 6: $'\r': command not found
11>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5): error MSB6006: “cmd.exe”已退出,代码为 127。
可以使用UltraEdit ->“文件”->“转换”->“Dos转Unix” (编辑copy_obj.sh文件),“保存”,再次清理工程,然后编译,(其实上面的问题都是因为不同操作系统下,文件的中回车/换行标示方法引起的,找个工具转换下就ok了)
问题就解决了,哈哈,
- webcrt编译错误集锦
- iphone 编译错误集锦
- 编译错误 集锦
- 编译错误集锦
- Webrtc vs2012编译错误集锦
- Android Studio 编译错误集锦
- 编译Caffe-Win错误集锦
- 编译Caffe-Win错误集锦
- C++编译过程中的错误集锦集锦(持续更新)
- VS2005编译错误集锦及解决办法
- VC6.0编译错误解决方法集锦
- EVC程序编译提示错误集锦
- vc++ 编译 CXX0030错误 处理方法集锦
- WINCE PB编译不过各种错误集锦
- VC6.0编译错误解决方法集锦
- XCode编译警告和错误解决方法集锦
- VC++编译错误集锦及解决方案
- WINCE PB编译不过各种错误集锦
- [设计模式]-装饰器模式(Decorator)
- 让DuiLib支持Icon图片显示
- 判定时间是否有效的函数
- 【Leetcode长征系列】Unique Paths
- git学习-git status, git diff, git rm, git mv等文件操作命令解释。
- webcrt编译错误集锦
- windows2008 定时任务
- linux下设置开机自动挂载其他主机的samba共享目录
- 在html页面中判断本地app是否安装并打开
- CAS Java客户端登录相关过滤器的处理流程
- 一千行MySQL学习笔记
- 【Leetcode长征系列】Set Matrix Zeroes
- Android Activity 设置为前台
- HDU1045:Fire Net(DFS)