如何为 Windows 构建 google google-breakpad?
我正在尝试为 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
文档中对此的解释确实很差,但实际上,如果您对 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.
最新的breakpad master(2016年3月15日)不包含用于生成解决方案文件的gyp。最好的办法就是简单地检查并安装它;但是,gyp 确实需要 Python 2.7,因此请确保可以在路径中访问 Python。
现在你的 gyp 安装就可以工作了;只需在 src\client\windows\breakpad_client.gyp 上调用 gyp.bat 即可。 (在我的例子中,gyp 被检出了breakpad 下的一个目录;根据您的设置相应地更改它)
解决方案文件现在应该存在。
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.
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)
The solution files should now be present.