Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile errors with Qt 5.5.1 and latest google breakpad #2

Closed
SevenBlocks opened this issue Dec 14, 2015 · 1 comment
Closed

Compile errors with Qt 5.5.1 and latest google breakpad #2

SevenBlocks opened this issue Dec 14, 2015 · 1 comment

Comments

@SevenBlocks
Copy link

I followed the blog instructions exactly and ran into problems when I tried to compile on Ubuntu 14.04 using QT Creator 3.5.1 with QT 5.5.1 and gcc.
There were 20 errors total: 12 in crash_handler.cpp, 1 in exception_handler.cpp, 5 in minidump_writer.cc, and 2 in linux_ptrace_dumper.cc.

There were some multiple definition errors like:
.../crashhandler/crash_handler.cpp:46: error: multiple definition of Breakpad::CrashHandlerPrivate::pHandler' In functionQByteArray::length() const' in crash_handler.o

.../crashhandler/crash_handler.cpp:46: error: multiple definition of Breakpad::CrashHandlerPrivate::bReportCrashesToSystem' in functionload': in crash_handler.o

There were also several undefined reference errors in the google_breakpad code:
.../crashhandler/src/client/linux/minidump_writer/minidump_writer.cc:328: error: undefined reference to `google_breakpad::UContextReader::GetStackPointer(ucontext const*)'

Any idea what's causing the errors?

@SevenBlocks
Copy link
Author

I figured it out. The multiple definition errors were because I had included crash_handler.cpp directly in the QT project. I removed it and those errors went away.
The undefined reference errors were because of some new files in the google breakpad project. Mostly in dump_writer_common. I added those to the .pri file and it compiled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant