Fix breakpad installation on windows

This commit is contained in:
Christoph 2017-02-16 11:57:53 +01:00 committed by GitHub
parent e2cdb8a9ed
commit 5ac51efb3e

View File

@ -1,30 +1,35 @@
# Build instructions for Visual Studio 2015 # Build instructions for Visual Studio 2015
* [Prepare folder](#prepare-folder) - [Prepare folder](#prepare-folder)
* [Clone source code](#clone-source-code) - [Clone source code](#clone-source-code)
* [Prepare libraries](#prepare-libraries) - [Prepare libraries](#prepare-libraries)
+ [OpenSSL](#openssl) * [OpenSSL](#openssl)
+ [LZMA SDK 9.20](#lzma-sdk-920) * [LZMA SDK 9.20](#lzma-sdk-920)
- [Building library](#building-library) + [Building library](#building-library)
+ [zlib 1.2.8](#zlib-128) * [zlib 1.2.8](#zlib-128)
- [Building library](#building-library-1) + [Building library](#building-library-1)
+ [libexif 0.6.20](#libexif-0620) * [libexif 0.6.20](#libexif-0620)
- [Building library](#building-library-2) + [Building library](#building-library-2)
+ [OpenAL Soft, slightly patched](#openal-soft-slightly-patched) * [OpenAL Soft, slightly patched](#openal-soft-slightly-patched)
- [Building library](#building-library-3) + [Building library](#building-library-3)
+ [Opus codec](#opus-codec) * [Opus codec](#opus-codec)
- [Building libraries](#building-libraries) + [Building libraries](#building-libraries)
+ [FFmpeg](#ffmpeg) * [FFmpeg](#ffmpeg)
- [Building libraries](#building-libraries-1) + [Building libraries](#building-libraries-1)
+ [Qt 5.6.2, slightly patched](#qt-560-slightly-patched) * [Qt 5.6.2, slightly patched](#qt-562-slightly-patched)
- [Apply the patch](#apply-the-patch) + [Apply the patch](#apply-the-patch)
- [Install Windows SDKs](#install-windows-sdks) + [Install Windows SDKs](#install-windows-sdks)
- [Building library](#building-library-4) + [Building library](#building-library-4)
+ [Qt5Package](#qt5package) * [Qt5Package](#qt5package)
+ [Google Breakpad](#google-breakpad) * [Google Breakpad](#google-breakpad)
- [Install](#install) + [Installation](#installation)
- [Build](#build) - [depot_tools](#depot_tools)
* [Building Telegram Desktop](#building-telegram-desktop) - [Breakpad](#breakpad)
+ [Build](#build)
- [Building Telegram Desktop](#building-telegram-desktop)
+ [Setup GYP/Ninja and generate VS solution](#setup-gypninja-and-generate-vs-solution)
+ [Configure VS](#configure-vs)
+ [Build the project](#build-the-project)
## Prepare folder ## Prepare folder
@ -222,28 +227,37 @@ Download, close all VS2015 instances and install for VS2015
Breakpad is a set of client and server components which implement a crash-reporting system. Breakpad is a set of client and server components which implement a crash-reporting system.
#### Install #### Installation
* Install Python 2.7.12 from https://www.python.org/downloads/release/python-2712/ > [**Windows x86 MSI installer**](https://www.python.org/ftp/python/2.7.12/python-2.7.12.msi). Make sure that python is added to your `PATH` (there is an option for this in the python installer). ##### depot_tools
* Go to **D:\\TBuild\\Libraries** and run
<!-- --> Go to `D:\TBuild\Libraries` and run
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
cd depot_tools cd depot_tools
gclient config "https://chromium.googlesource.com/breakpad/breakpad.git" gclient
gclient sync
If you get errors like
Cannot rebase: You have unstaged changes.
Please commit or stash them.
Failed to update depot_tools.
run `git reset --hard HEAD` and execute `gclient` again
##### Breakpad
cd .. cd ..
md breakpad && cd breakpad mkdir breakpad && cd breakpad
..\depot_tools\fetch breakpad ..\depot_tools\fetch breakpad
..\depot_tools\gclient sync ..\depot_tools\gclient sync
xcopy src\src\* src /s /i xcopy src\src\* src /s /i
#### Build #### Build
* Open in VS2015 **D:\\TBuild\\Libraries\\breakpad\\src\\client\\windows\\breakpad_client.sln** * Open `D:\TBuild\Libraries\breakpad\src\client\windows\breakpad_client.sln` in VS2015
* Change "Treat WChar_t As Built in Type" to "No" in all projects & configurations (should be in project>>properties>>C/C++>>Language) * Change `Treat WChar_t As Built in Type` to `No` in all projects & configurations (should be in Project -> Properties -> C/C++ -> Language)
* Change "Treat Warnings As Errors" to "No" in all projects & configurations (should be in project>>properties>>C/C++>>General) * Change `Treat Warnings As Errors` to `No` in all projects & configurations (should be in Project -> Properties -> C/C++ -> General)
* Build Debug configuration * Build Debug configuration
* Build Release configuration * Build Release configuration