8

我完全不知道如何构建谷歌的breakpad。有一个 sln 文件,但它依赖于一个似乎没有关联 sln 的库。它似乎使用了一种叫做 gyp 的东西,我还没有弄清楚如何开始工作。我试过了

 python gyp  ..\breakpad\src\client\windows\breakpad_client.gyp

这只是给出了以下错误

Traceback (most recent call last):
File "gyp", line 18, in <module>
sys.exit(gyp.main(sys.argv[1:]))
 File "pylib\gyp\__init__.py", line 445, in main
options.circular_check)
 File "pylib\gyp\__init__.py", line 84, in Load
depth, generator_input_info, check, circular_check)
 File "pylib\gyp\input.py", line 2165, in Load
VerifyNoGYPFileCircularDependencies(targets)
 File "pylib\gyp\input.py", line 1429, in VerifyNoGYPFileCircularDependencies
' '.join(bad_files)
gyp.input.CircularException: Some files not reachable, cycle in .gyp file dependency     
graph detected involving some or all of:   
..\breakpad\src\client\windows\sender\crash_report_sender.gyp   
..\breakpad\src\client\windows\h
andler\exception_handler.gyp ..\breakpad\src\client\windows\breakpad_client.gyp           
..\breakpad\src\client\windows\unittests\client_tests.gyp   
..\breakpad\src\client\windows\crash_generation\crash_generation.gyp

我无法理解。我似乎也找不到任何文档。任何帮助,将不胜感激。

4

1 回答 1

16

您需要查看 gyp 的命令行选项。我遇到过同样的问题。解决方案是运行以​​下命令:

gyp --no-circular-check /path/to/build/file
于 2010-05-28T08:45:58.497 回答