当前位置:网站首页>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公司的Breakpad和Crashpad,目前暂时使用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项目的源码,如下图.
这里我选择去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的安装.
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的库.
最后注意,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.
The above is a summary of the solutions I encountered when referring to other blogs,If the reader finds an error,请及时指正,不胜感激.
边栏推荐
猜你喜欢
1096 big beautiful numbers (15 points)
My creative anniversary丨Thank you for being with you for these 365 days, not forgetting the original intention, and each is wonderful
tf中矩阵乘法
通过记账,了解当月收支情况
从何跟踪伦敦金最新行情走势?
【Pytorch】nn.Linear,nn.Conv
1.1-回归
1091 N-Defensive Number (15 points)
【Pytorch】nn.PixelShuffle
One-hot in TF
随机推荐
流式结构化数据计算语言的进化与新选择
软件测试常用工具的用途及优缺点比较(详细)
JRS303-Data Verification
3.1-Classification-probabilistic generative model
1.1-Regression
[Recommender System]: Overview of Collaborative Filtering and Content-Based Filtering
4.1-支持向量机
结合均线分析k线图的基本知识
XXL-JOB 分布式任务调度中心搭建
matrix multiplication in tf
少年成就黑客,需要这些技能
oracle19c不支持实时同步参数,请教一下大佬们有什么好的解决办法吗?
oracle19c does not support real-time synchronization parameters, do you guys have any good solutions?
matplotlib
1051 复数乘法 (15 分)
欢迎加入sumarua网络安全交流社区
1081 Check Password (15 points)
Tensorflow中使用tf.argmax返回张量沿指定维度最大值的索引
Mysql JSON对象和JSON数组查询
CSDN21天学习挑战赛——封装(06)