Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.0k views
in Technique[技术] by (71.8m points)

crash - Fatal error: 'breakpad-main/src/client/linux/handler/minidump_descriptor.h' file not found

I'm integrating Google BreakPad library into my Android Project. Below the steps, I'm following to generate a mini-dump file for Crash at run time. Please check and let me know if I'm on the correct path:

steps1: I have taken a clone for Google Breakpad client repo from (https://github.com/google/breakpad)

Step2: I have added Breakpad main library folder and google-breakpad folder into the Android project directory and JNI folder and move (Andoid.mk, Application.mk, test-break pad.CPP) files into JNI

Step3: I have created the Gradle Task to build NDK and bind with project build. Inside test-break pad.CPP we have included two header files from a breakpad-main directory. Below is the included directory path.

#include "breakpad-main/src/client/linux/handler/minidump_descriptor.h" #include "breakpad-main/src/client/linux/handler/exception_handler.h"

While ndk-build we are facing below Error: **jni/test_breakpad.cpp:4:10: fatal error: 'breakpad-main/src/client/linux/handler/minidump_descriptor.h' file not found #include "breakpad-main/src/client/linux/handler/minidump_descriptor.h" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 error generated. make: *** [C:/Users/gurmeet.singh1/AppData/Local/Android/Sdk/ndk-bundle/build//../build/core/build-binary.mk:478: obj/local/arm64-v8a/objs-debug/test_google_breakpad/test_breakpad.o] Error 1

If I'll update absoulate patch into relative path #include "../breakpad-main/src/client/linux/handler/minidump_descriptor.h" #include "../breakpad-main/src/client/linux/handler/exception_handler.h"**

then we are facing path issue inside minidump_descriptor.h or exception_handler.h files.

Please guide us on how we can proceed ahead to generate the minidump file for Crashstack trace?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...