当前位置:网站首页>Break pad source code compilation--refer to the summary of the big blogger

Break pad source code compilation--refer to the summary of the big blogger

2022-08-11 07:58:00 Luoyang Fish Ziyi

背景

  Investigating crashesbugWhen he collapsed,I thought it would be nice if there was a tool to locate it.Did a search online and found that there is,这样的工具,分别是Google公司的BreakpadCrashpad,目前暂时使用Breakpad,因为CrashpadSome of the resources need to go to the Internet to obtain(主要是GoogleCompilation instructions on the official website and corresponding development tools,If anyone knows how to get it,请帮帮我).

参考博客

  This is an article summarizing experience,Of course, most of them are borrowed from others,So here is a link to the original text for reference,Thanks to these bloggers.My summary is also written on this basis.

https://blog.csdn.net/libaineu2004/article/details/108033316
标题 : dump系列(3)Qt使用Google Breakpad或Crashpad捕获程序崩溃报告

https://blog.csdn.net/GoForwardToStep/article/details/56304285
标题 : Google Breakpad 在 windowsCapture program crash reports under

https://blog.csdn.net/zyhse/article/details/112577340
标题 : 在Windows下编译Breakpad

选择Breakpad与Crashpad的纠结

  看了好多资料,发现说Breakpad已经被淘汰,Crashpad是正在使用的.不过我想BreakpadIt's enough for me,There aren't too many functions that I might use.In addition, I looked at this project and there are big cows maintaining it.

过程

  My first reference blog isGoogle Breakpad 在 windowsCapture program crash reports under这篇,这里面提供了Breakpad项目的源码,如下图.
avatar
  这里我选择去github上直接下载源码.Use an up-to-date one.

https://github.com/google/breakpad

  注意使用了github上的源码,那么Google Breakpad 在 windowsCapture program crash reports under文章的后面,Some methods do not work.will be mentioned below.
  remember to buildpython环境,The version I installed is also2.7.13,There is no problem in use.
  接着是安装GYP工具,It's written in the blog,And there is no such directory in the source code I downloaded,The blog is different here.

     GYP(Generate Your Projects)是由 Chromium 团队开发的跨平台自动化项目构建工具,Chromium 便是通过 GYP 进行项目构建管理.
     而GYP在 源码的 \google_breakpad\src\tools \gyp 目录下.打开cmd命令提示窗口,进入到 \google_breakpad\src\tools \gyp 目录,输入命令 setup.py install ,完成gyp的安装.

avatar

  Then you can refer to the blog在Windows下编译Breakpad,It is mentioned here that additional installation is requiredGYP工具,Just do as the boss says,但是在安装的时候(执行 setup.py install)我遇到了如下问题,I think it probably means that the error is made by operating as an administrator.So I just added another onewindows的普通用户,Just switch to a normal user and install it again,Then compile the source code,生成breakpad的库.
avatar

  最后注意,When using the library, you also need to cooperate with the corresponding header file,The image below is my included header file,大家仅作参考,Pay attention to the directory hierarchy when actually using it.

avatar

  The above is a summary of the solutions I encountered when referring to other blogs,If the reader finds an error,请及时指正,不胜感激.

原网站

版权声明
本文为[Luoyang Fish Ziyi]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/223/202208110639589707.html