Skip to content

This a demo to handle c++ crash with google breakpad and launch a Qt app to send crash log back to server.

Notifications You must be signed in to change notification settings

wyyrepo/qt-breakpad

 
 

Repository files navigation

Kandao QtBreakpad Demo

  1. This a demo to handle c++ crash with google breakpad and launch a Qt app to send crash log back to server.
  2. Most of the code are extracted from Qt Creator project.
  3. The Demo includes a QtBreakpadDemo which crashes, launching the QtCrashHandler afterwards.

Demo Win


Dependency

  1. Qt5
  2. breakpad's source files are used directly. No need to compile breakpad

Build

0. clone with submodules (use recursive)

>> git clone https://github.com/KandaoVR/qt-breakpad.git --recursive

1. Windows

  • use CMake-Gui to generate Visual Studio Solution
  • Build ALL

2. Mac

>> mkdir build
>> cd build
>> cmake -DCMAKE_PREFIX_PATH=/path-to-qt-clang/ -DCMAKE_INSTALL_RPATH_USE_LINK_PATH="ON" ../
>> make -j8 install

>> cd install/Demo
>> ./QtBreakpadDemo

OSX Bundle

  • If the main app is built with bundle, i.e. add MACOSX_BUNDLE to add_executable. For example:

      add_executable(QtBreakpadDemo MACOSX_BUNDLE ${SOURCES} ${BREAKPAD_SRCS} ${ICON_FILE} ${QM_FILES})
    
  • The binary version of QtCrashHandler should be copied to QtBreakpad.app/Contents/MaxOS/, so that the inner binary QtBreakpad is able to call QtCrashHandler during crashing.

3. Linux

  • Should be working. lol
  • Pull requests are welcomed!

About

This a demo to handle c++ crash with google breakpad and launch a Qt app to send crash log back to server.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 66.1%
  • Python 15.8%
  • CMake 9.9%
  • QMake 7.7%
  • Other 0.5%