google-v8编译

说明:v8 third_party 和depot_tools svn root目录:

     https://src.chromium.org/svn/trunk/tools/

如果在编译过程中有什么问题,也可以给我消息,我会尽快回复,如发现错误,也请指正。欢迎共同学习!QQ312919010​

 

注意:生成VS工程时,需要使用python2.7。但编译时,third_party下一定要使用python2.6。否则会编译不通过。

 

  • VS2015编译v8

  1. 安装 python 并将python二进制目录添加到系统环境变量中

  2. 设置环境变量:

    1. DEPOT_TOOLS_WIN_TOOLCHAIN=0.

    2. GYP_MSVS_VERSION=2013或2015

    3. depot_tools 路径添加到Path

    4. python 2.7的目录添加到Path

  3. 准备工作:

    third_party 和 depot_tools的内容务必完全的。否则编译可能会出问题。

    third_party: 

    depot_tools:

  4. 替换build/standalone.gypi 文件中的,‘WarnAsError'的值 'true' -> 'false',true的意思是将编译过程中的警告视为错误。

  5. 执行:在源代码目录下,执行

  6. python build\gyp_v8 -Dtarget_arch=x64

 

  5. 选项:

        -Dcomponent=shared_library (see library=shared in the GCC + make section above)

        -Dconsole=readline (see console=readline)

        -Dv8_enable_disassembler=1 (see disassembler=on)

        -Dv8_use_snapshot='false' (see snapshot=off)

        -Dv8_enable_gdbjit=1 (see gdbjit=on)

        -Dv8_use_liveobjectlist=true (see liveobjectlist=on)

        

编译错误:

    1. error C2220: warning treated as error - no 'object' file generated

        设置:C/C++ -> General -> Treat Warnings As Errors 为 No (/WX-)

 

 

文件下载链接分享:

  1. third_party http://pan.baidu.com/s/1gfec7BH

  2.depot_tools http://pan.baidu.com/s/1bLpQnO

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值