build breakpad

On ubuntu:

I have to install autoconf package.

sudo apt-get install autoconf

Get a copy of source code

svn checkout http://google-breakpad.googlecode.com/svn/trunk/ google-breakpad-read-only

then the build steps are same as building other projects

 

./configure

make

sudo make install

 

The nice feature of breakpad is that, the client can work with or without out of process server, so I don't need to worry in case the server is not running. 

 

 

    const MINIDUMP_TYPE dumptype = (MINIDUMP_TYPE) (MiniDumpWithFullMemory 

        | MiniDumpWithHandleData | MiniDumpWithUnloadedModules | MiniDumpWithProcessThreadData);

    ExceptionHandler* handler = new ExceptionHandler( dump_file_folder,

        myFilterCallback,

        myMinidumpCallback,

        NULL/*void* callback_context*/,

        ExceptionHandler::HANDLER_ALL,

        dumptype/*MiniDumpNormal MINIDUMP_TYPE dump_type*/,

        kPipeName/*const wchar_t* pipe_name*/,

        NULL/*const CustomClientInfo* custom_info*/);

 

On Windows:

 

D:/src/breakpad>set path=%path%;c:/Python27

D:/src/breakpad>src/tools/gyp/gyp.bat src/client/windows/breakpad_client.gyp

then open D:/src/breakpad/src/client/windows/breakpad_client.sln

add the following preprocessor to VC++ projects (gtest, gmock and client_tests) when building with VC++ 2010

GTEST_USE_OWN_TR1_TUPLE=0

refer to http://code.google.com/p/googletest/issues/detail?id=217#makechanges

Change C/C++ "Output Files" "Program Database File Name" to 

$(OutDir)lib/$(TargetName).pdb  (old value: $(IntDir)$(ProjectName)/vc80.pdb)

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值