win7 64 vs2010 编译chrome

1.安装vs2010 + sp1
2.安装win8 sdk
3.安装 DirectX SDK 

4.打补丁 参考 http://dev.chromium.org/developers/how-tos/build-instructions-windows

DirectX SDK 安装完成后,会在系统环境变量里面多一个DXSDK_DIR的环境变量出来。


配置DirectX SDK
在C:\Users\{your name}\AppData\Local\Microsoft\MSBuild\v4.0目录下面:
1)编辑Microsoft.Cpp.Win32.user.props文件
在IncludePath 和LibraryPath节点处,添加DirectX SDK相应的路径(刚开始没太注意,直接新加了IncludePath和
LibraryPath,结果编译Chromium报一大堆.h文件找不到,切记不要和我一样**了,呵呵)

[plain]  view plain copy print ?
  1. <?xml version="1.0" encoding="utf-8"?>  
  2. <Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">  
  3.   <PropertyGroup>  
  4.     <IncludePath>$(DXSDK_DIR)\include;$(IncludePath)</IncludePath>  
  5.     <LibraryPath>$(DXSDK_DIR)\lib\x86;$(LibraryPath)</LibraryPath>  
  6.   </PropertyGroup>  
  7. </Project>  

2)编辑Microsoft.Cpp.x64.user.props,和上面相同只是libraryPath需要把路径修改为x64
[plain]  view plain copy print ?
  1. <?xml version="1.0" encoding="utf-8"?>  
  2. <Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">  
  3.   <PropertyGroup>  
  4.     <IncludePath>$(DXSDK_DIR)\include;$(IncludePath)</IncludePath>  
  5.     <LibraryPath>$(DXSDK_DIR)\lib\x64;$(LibraryPath)</LibraryPath>  
  6.   </PropertyGroup>  
  7. </Project>  

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值