我一直在尝试编译V8。我从GitHub获得了一个V8主文件夹的副本,但是我不知道如何编译它。我可以在网上找到的很多文档都是相互矛盾的。
从我收集到的信息来看,我获得编译的最佳机会似乎是通过调用gyp_v8脚本(位于V8-Master的build文件夹中)来创建项目文件。但它只是给了我File "gyp_v8", line 86 print 'Error running GYP' SyntaxError: Missing parentheses in call to 'print'。从那里开始,我试着安装Gyp (因为根据文档,我被引导相信这就是导致错误的原因)。这要求我安装depot_tools并执行gclient sync。错误Error: client not configured; see 'gclient config'失败。而gclient config的erropr gclient.py: error: Inconsistency arguments. Use either --spec or one or 2 args失败了。
老实说,我在这一点上迷路了。我能不能只用CMake什么的?或者至少有一个构建教程,它不会假设你有一堆特定于谷歌的构建工具?
发布于 2016-02-02 06:38:27
Bat档案:
@echo on
CD /D %~dp0
SET DEPOT_TOOLS_WIN_TOOLCHAIN=0
SET DEPOT_TOOLS=%CD%/depot_tools
SET PYTHONHOME=%DEPOT_TOOLS%/python276_bin
SET PYTHONPATH=%CD%/v8/build/gyp
SET PATH=%DEPOT_TOOLS%;%PYTHONHOME%;%PATH%
SET GYP_DEFINES=target_arch=x64
REM SET GYP_DEFINES=target_arch=x64 component=shared_library v8_use_snapshot=false
REM About GYP_DEFINES: https://github.com/v8/v8/wiki/Building-with-Gyp
IF EXIST %DEPOT_TOOLS% (
ECHO Updating depot_tools
CD %DEPOT_TOOLS%
CALL git pull
CD ..
) ELSE (
ECHO Getting depot_tools
CALL git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
)
CALL gclient
CALL gclient config https://chromium.googlesource.com/v8/v8.git
CALL gclient synchttps://stackoverflow.com/questions/35145589
复制相似问题