Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to build google google-breakpad for windows?

I am trying to build google breakpad for windows. I don't get it. I tried installed autoconf and m4 for Windows which seems to work. But running

m4 CXXFLAGS=-m32 CFLAGS=-m32 CPPFLAGS=-m32 ./configure

results in

func_dirname ()
{
  # Extract subdirectory from the argument.
  func_dirname_result=NONE:0: m4: ERROR: EOF in string

after some seconds of executing scripts.

I searched form visual studio solution files, but they have been removed since revision 581.

So i found the related post How to build google breakpad.

But how do i install gyp? What prerequisites does it require? Or does anybody have a working (VC2005) sln file for all parts of google-breakpad ? Can anybody give me a step by step description on how to build it?

like image 325
RED SOFT ADAIR Avatar asked Sep 01 '10 13:09

RED SOFT ADAIR


2 Answers

This is really poorly explained in the documentation, but actually gyp is already present if you've done an ordinary checkout of breakpad. Open a command prompt and place yourself in the root ( google-breakpad-read-only if you're going by the instructions ). Then just do:

src\tools\gyp\gyp.bat src\client\windows\breakpad_client.gyp

This will generate visual studio sln files for you.

like image 150
Ylisar Avatar answered Sep 30 '22 13:09

Ylisar


The latest master of breakpad (March 15th 2016) does not include gyp, which is used to generate the solution files. The best thing to do would be to simply check it out and install it; gyp does, however, require Python 2.7 so make sure Python is accessible in the path.

git clone https://chromium.googlesource.com/external/gyp
cd gyp
python setup.py install

Now your gyp installation will work; simply invoke gyp.bat on src\client\windows\breakpad_client.gyp. (gyp is checked out one directory below breakpad in my case; change it accordingly to your setup)

..\gyp\gyp.bat src\client\windows\breakpad_client.gyp --no-circular-check

The solution files should now be present.

like image 32
AhmedBM Avatar answered Sep 30 '22 13:09

AhmedBM