How to build crashpad for Qt application

You should build using gn and ninja, where gn generates a build configuration, and ninja does the actual building.

For MacOS, you will need to link against libclient.a, libutil.a, libbase.a and all of the .o files in out/Default/obj/out/Default/gen/util/mach if you want to generate minidumps and upload them to a remote server.

Additionally, you'll need to package crashpad_handler with your application and ensure that it is available at runtime.

More information about building Crashpad can be found here.

An example of a MacOS Qt application that has been integrated with Crashpad can be found here.