fatal: unable to access 'https://chromium.googlesource.com/external/gyp/': Failed to connect to chromium.googlesource.com port 443: Timed out
,在cmd下运行如下代码config --globalhttp.proxy "localhost:1080",
或 模式:全局-Built-in rule
Add GYP and Ninja to your PATH:
Open Control Panel -> System -> Advanced system settings
SET PATH=%cd%\ThirdParty\Strawberry\perl\bin;%cd%\ThirdParty\Python27;%cd%\ThirdParty\NASM;%cd%\ThirdParty\jom;%cd%\ThirdParty\cmake\bin;%cd%\ThirdParty\yasm;%PATH%
:: 正在同步软件包数据库...
错误:无法从 repo.msys2.org : Operation too slow. Less than 1 bytes/sec transferred the last 10 seconds 获取文件 'mingw32.db'
错误:无法从 sourceforge.net : Operation too slow. Less than 1 bytes/sec transferred the last 10 seconds 获取文件 'mingw32.db'
错误:无法从 www2.futureware.at : Operation too slow. Less than 1 bytes/sec transferred the last 10 seconds 获取文件 'mingw32.db'
错误:无法从 mirror.yandex.ru : Operation too slow. Less than 1 bytes/sec transferred the last 10 seconds 获取文件 'mingw32.db'
错误:无法升级 mingw32 (下载数据库出错)
错误:无法从 repo.msys2.org : Operation too slow. Less than 1 bytes/sec transferred the last 10 seconds 获取文件 'mingw64.db'
错误:无法从 sourceforge.net : Operation too slow. Less than 1 bytes/sec transferred the last 10 seconds 获取文件 'mingw64.db'
错误:无法从 www2.futureware.at : Operation too slow. Less than 1 bytes/sec transferred the last 10 seconds 获取文件 'mingw64.db'
错误:无法从 mirror.yandex.ru : Operation too slow. Less than 1 bytes/sec transferred the last 10 seconds 获取文件 'mingw64.db'
错误:无法升级 mingw64 (下载数据库出错)
错误:无法从 repo.msys2.org : Operation too slow. Less than 1 bytes/sec transferred the last 10 seconds 获取文件 'msys.db'
错误:无法从 sourceforge.net : Operation too slow. Less than 1 bytes/sec transferred the last 10 seconds 获取文件 'msys.db'
错误:无法从 www2.futureware.at : Operation too slow. Less than 1 bytes/sec transferred the last 10 seconds 获取文件 'msys.db'
错误:无法从 mirror.yandex.ru : Operation too slow. Less than 1 bytes/sec transferred the last 10 seconds 获取文件 'msys.db'
错误:无法升级 msys (下载数据库出错)
错误:同步所有数据库失败
Build the project
Go to BuildPath\tdesktop\Telegram and run (using your api_id and api_hash)
configure.bat -D TDESKTOP_API_ID=YOUR_API_ID -D TDESKTOP_API_HASH=YOUR_API_HASH -D DESKTOP_APP_USE_PACKAGED=OFF
Warn about uninitialized values.
-- Building for: Visual Studio 16 2019
CMake Error at CMakeLists.txt:7 (cmake_minimum_required):
CMake 3.16 or higher is required. You are running version 3.15.0-rc1
-- Configuring incomplete, errors occurred!
>cmake.exe --version
cmake version 3.15.0-rc1
CMake suite maintained and supported by Kitware (kitware.com/cmake).
升级CMake 到3.16.6https://cmake.org/download/
Open BuildPath\tdesktop\out\Telegram.sln in Visual Studio 2019
Select Telegram project and press Build > Build Telegram (Debug and Release configurations)--------------
严重性 代码 说明 项目 文件 行 禁止显示状态
错误 C2220 以下警告被视为错误 --下列文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失
tdesktop\Telegram\ThirdParty\libtgvoip\webrtc_dsp\modules/audio_processing/agc2/biquad_filter.h(1,1): warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失
Libraries\ffmpeg\libavutil\rational.h 1
tdesktop\Telegram\lib_ui\ui\text\text.cpp 1870
tdesktop\Telegram\ThirdParty\libtgvoip\VoIPController.cpp 3489
进行如下修改
双击错误信息打开对应文件
文件->xxx文件另存为
保存下拉框中选择 编码保存
在打开的对话框中选择 Unicode(UTF-8 带签名)- 代码页65001
----------------
The result Telegram.exe will be located in D:\TBuild\tdesktop\out\Debug (and Release)