如何为 Windows 构建 google google-breakpad?

发布于 2024-09-16 12:30:11 字数 622 浏览 8 评论 0原文

我正在尝试为 Windows 构建 google Breakpad。我不明白。我尝试为 Windows 安装 autoconf 和 m4,这似乎有效。但运行

m4 CXXFLAGS=-m32 CFLAGS=-m32 CPPFLAGS=-m32 ./configure

结果是

func_dirname ()
{
  # Extract subdirectory from the argument.
  func_dirname_result=NONE:0: m4: ERROR: EOF in string

在执行脚本几秒钟后。

我搜索了 Visual Studio 解决方案文件,但自修订版 581 以来它们已被删除。

所以我找到了相关帖子 如何构建 Google Breakpad

但是我如何安装gyp?它需要什么先决条件? 或者有人有 google-breakpad 所有部分的工作(VC2005)sln 文件吗? 有人可以给我一个关于如何构建它的逐步描述吗?

I am trying to build google breakpad for windows. I don't get it. I tried installed autoconf and m4 for Windows which seems to work. But running

m4 CXXFLAGS=-m32 CFLAGS=-m32 CPPFLAGS=-m32 ./configure

results in

func_dirname ()
{
  # Extract subdirectory from the argument.
  func_dirname_result=NONE:0: m4: ERROR: EOF in string

after some seconds of executing scripts.

I searched form visual studio solution files, but they have been removed since revision 581.

So i found the related post
How to build google breakpad.

But how do i install gyp? What prerequisites does it require?
Or does anybody have a working (VC2005) sln file for all parts of google-breakpad ?
Can anybody give me a step by step description on how to build it?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

北城半夏 2024-09-23 12:30:11

文档中对此的解释确实很差,但实际上,如果您对 Breakpad 进行了普通检查,那么实际上 gyp 已经存在。打开命令提示符并将自己置于根目录中(如果您按照说明进行操作,则为 google-breakpad-read-only )。然后只需执行:

src\tools\gyp\gyp.bat src\client\windows\breakpad_client.gyp

这将为您生成 Visual Studio sln 文件。

This is really poorly explained in the documentation, but actually gyp is already present if you've done an ordinary checkout of breakpad. Open a command prompt and place yourself in the root ( google-breakpad-read-only if you're going by the instructions ). Then just do:

src\tools\gyp\gyp.bat src\client\windows\breakpad_client.gyp

This will generate visual studio sln files for you.

快乐很简单 2024-09-23 12:30:11

最新的breakpad master(2016年3月15日)不包含用于生成解决方案文件的gyp。最好的办法就是简单地检查并安装它;但是,gyp 确实需要 Python 2.7,因此请确保可以在路径中访问 Python。

git clone https://chromium.googlesource.com/external/gyp
cd gyp
python setup.py install

现在你的 gyp 安装就可以工作了;只需在 src\client\windows\breakpad_client.gyp 上调用 gyp.bat 即可。 (在我的例子中,gyp 被检出了breakpad 下的一个目录;根据您的设置相应地更改它)

..\gyp\gyp.bat src\client\windows\breakpad_client.gyp --no-circular-check

解决方案文件现在应该存在。

The latest master of breakpad (March 15th 2016) does not include gyp, which is used to generate the solution files. The best thing to do would be to simply check it out and install it; gyp does, however, require Python 2.7 so make sure Python is accessible in the path.

git clone https://chromium.googlesource.com/external/gyp
cd gyp
python setup.py install

Now your gyp installation will work; simply invoke gyp.bat on src\client\windows\breakpad_client.gyp. (gyp is checked out one directory below breakpad in my case; change it accordingly to your setup)

..\gyp\gyp.bat src\client\windows\breakpad_client.gyp --no-circular-check

The solution files should now be present.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文