Breakpad Linux support #3690

Open
fluffyfreak opened this Issue Apr 27, 2016 · 9 comments

Projects

None yet

2 participants

@fluffyfreak
Contributor

It looks like adding support for google breakpad to a Linux build should be fairly easy.

This would give it feature parity with the Windows build and might arguably be more useful.

@mike-f1
Contributor
mike-f1 commented Feb 9, 2017

@fluffyfreak , @impaktor give me an hint for this, so I think I could take care of this but I need some help...

First: in #3211 you mention the library is already installed... but where is it? I was unable to find it.

Could you briefly (and "as you talk with a child") explain how it's implemented right now for Windows?

@fluffyfreak
Contributor

Well the original PR is #3211 which includes all of the windows side files so you can see how I did it there :)

@fluffyfreak
Contributor

The actual breakpad files are in the pioneer-thirdparty folders.

@mike-f1
Contributor
mike-f1 commented Feb 10, 2017

ok, obviously I didn't got files are in "pioneer-thirdparty"... :/

Now I download them, but a couple of question arise.
Seems there are 2 folder: win32 and source, I guess "win32" is the place where are packages for windows and "source" is for linux packages... In "source" there isn't a folder named breakpad, I guess I have to download it, isn't?
If I'm right, I have to follow these instructions, https://chromium.googlesource.com/breakpad/breakpad ...and then I have to configure building system to compile it, isn't?

@fluffyfreak
Contributor

@mike-f1 what OS do you develop on? I assume that it's a Linux distro yeah?

There's mulitple ways to do this I guess.

  • move the breakpad stuff into pioneer under the contrib folder
  • move the breakpad folder from win32/include/ into source
  • create a separate breakpad folder in source (do not do this please)

Probably best to discuss this in IRC for a bit.

@fluffyfreak
Contributor

For now though, do whatever you feel like doing, it's quite easy to move the folders or to change the VS2015 project to work with the new layout later on.

@mike-f1
Contributor
mike-f1 commented Feb 10, 2017 edited

yes, I have tried the second, but what I didn't realize is that breakpad files aren't from "master" of its project.

Next step is to copy-paste folders (as you suggest) and verify if they compile under Linux.
Then I probably will smash on other problems...

@mike-f1
Contributor
mike-f1 commented Feb 10, 2017

Ok, next problem: copy-paste don't works, because of lack of all autotools chain...

Due to my small knowledge I see only one way: I would put breakpad project files on
source/breakpad as an "external" library (as for Assimp), but it belongs from Google
Git, so I don't know how to do such a thing... @fluffyfreak , my doubts are on how
to do it in a reliable way, the code itself I don't think will be a great problem
(...or at least I hope it)...

What do you think I have to do?

@mike-f1
Contributor
mike-f1 commented Feb 11, 2017

ok, I did some steps, but I'm even stuck: I need a way to specify a base include dir ( -Ipath/to/include ) for
breakpad through all the autotools chain :-P

More: there's an "optional" thing I left to do on autotools: include breakpad in the list of Makefile as
for Miniz, Json and so on.

...Basically I'm at the beginning, but no problem: I pin these things here only for myself

@mike-f1 mike-f1 referenced this issue in mike-f1/pioneer Feb 21, 2017
Open

Breakpad Linux support #11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment