当前位置:网站首页>Compiler Telegram Desktop end (tdesktop) en utilisant vs2022
Compiler Telegram Desktop end (tdesktop) en utilisant vs2022
2022-06-26 00:36:00 【Grimpe dans l'herbe.】
2018Année de référenceTelegramCôté Bureau(tdesktop)Méthode de compilationCompilé avec succèstdesktop,Plus occupé après,Je m'en fous.
C'est l'heure d'étudierIM,Prenez juste leTelegramLe projet a trouvé,Peut encore compiler correctement,Mais je ne peux pas me connecter,Demander une mise à jour
Pour la commodité de la mise en service,Vous ne pouvez consulter que les instructions du compilateur officiel pour compiler à nouveau avec le dernier code source,L'outil de compilation a été remplacé parVS2022,Ce qui est certain, c'est que,Consultez les instructions de compilation officielles pour compiler avec succès(A condition que la science ait accès à Internet)
Parce que le travail utiliseVS2017,so,Pour être prudent,Ou essayer dans une machine virtuelleVS2022C'est parti.
InVMware Workstation 16 ProInstallation à l'intérieurWindows 10Il y a un endroit à surveiller,Ne spécifiez pasISOFichier image,Une fois la création de la machine virtuelle terminée,Besoin de“Configuration de la machine virtuelle”De“Options”Page“Type de firmware”Sélectionner parmi“BIOS”,Puis chargezISOImage,SinonISOL'image n'est pas reconnue

Un..Compiler
Prepare folder
The build is done in Visual Studio 2022 with 10.0.22000.0 SDK version.
Notes:InstallationVS2012Choisir quand10.0.22000.0 SDK
Choose an empty folder for the future build, for example D:\TBuild. It will be named BuildPath in the rest of this document. Create two folders there, BuildPath\ThirdParty and BuildPath\Libraries.
All commands (if not stated otherwise) will be launched from x86 Native Tools Command Prompt for VS 2022.bat (should be in Start Menu > Visual Studio 2022 menu folder). Pay attention not to use any other Command Prompt.
Install third party software
1.Download Strawberry Perl installer from http://strawberryperl.com/ and install to BuildPath\ThirdParty\Strawberry
2.Download NASM installer from http://www.nasm.us and install to BuildPath\ThirdParty\NASM
3.Download Yasm executable from http://yasm.tortall.net/Download.html, rename to yasm.exe and put to BuildPath\ThirdParty\yasm
4.Download MSYS2 installer from http://www.msys2.org/ and install to BuildPath\ThirdParty\msys64
5.Download jom archive from http://download.qt.io/official_releases/jom/jom.zip and unpack to BuildPath\ThirdParty\jom
6.Download Python 3.9 installer from https://www.python.org/downloads/ and install to BuildPath\ThirdParty\Python39
7.Download CMake 3.21 or later installer from https://cmake.org/download/ and install to BuildPath\ThirdParty\cmake
8.Download Ninja executable from https://github.com/ninja-build/ninja/releases/download/v1.7.2/ninja-win.zip and unpack to BuildPath\ThirdParty\Ninja
9.Download Git installer from https://git-scm.com/download/win and install it.
10.Download NuGet executable from https://dist.nuget.org/win-x86-commandline/latest/nuget.exe and put to BuildPath\ThirdParty\NuGet
Add Python 3.9 and NuGet to your PATH:
1.Open Control Panel -> System -> Advanced system settings.
2.Press Environment Variables....
3.Select Path.
4.Press Edit.
5.Add BuildPath\ThirdParty\Python39 value.
6.Add BuildPath\ThirdParty\NuGet value.
Open x86 Native Tools Command Prompt for VS 2022.bat, go to BuildPath and run
Notes:Ce que j'ai compilé32Bits, Donc ce qui s'ouvre c'est x86 Native Tools Command Prompt for VS 2022.bat
python -m pip install pywin32
Notes:Installationpython Assurez - vous de cocher pip
Clone source code and prepare libraries
Open x86 Native Tools Command Prompt for VS 2022.bat, go to BuildPath and run
git clone --recursive https://github.com/telegramdesktop/tdesktop.git
Notes: Si vous remarquez que le réseau est lent ,Pas ici.github Télécharger le code source directement sur ,Et décompresser. Parce que c'est récursif clone.--recursive,Sauf quetelegramÀ l'extérieur,Il le fera.cloneQuelquestelegram À l'extérieur de l'entrepôt , Sous - entrepôt .
Pendant l'opération,clone La Bibliothèque de création d'enfants apparaît 443 timeoutErreur, Pour le moment, vous devez configurer l'agent en ligne de commande ( Définir dans les variables d'environnement aussi )
git config --global http.proxy http://127.0.0.1:7890
git config --global https.proxy https://127.0.0.1:7890
Le numéro de port ici7890 Doit être modifié en fonction de ses propres outils scientifiques en ligne
Il y a une autre impression OpenSSL SSL_read: Connection was reset, errno 10054Erreur, Voir l'article suivant pour une opération aussi féroce qu'un tigre , Je ne sais pas non plus quelle directive a fonctionné
https://blog.csdn.net/m0_51269961/article/details/123709195
Continuer à tirer sur le Sous - module :git submodule update
tdesktop\Telegram\build\prepare\win.bat
Build the project
Go to BuildPath\tdesktop\Telegram and run
configure.bat -D TDESKTOP_API_ID=YOUR_API_ID -D TDESKTOP_API_HASH=YOUR_API_HASH -D DESKTOP_APP_USE_PACKAGED=OFF -D DESKTOP_APP_DISABLE_CRASH_REPORTS=OFF
Notes:Ici.YOUR_API_IDEtYOUR_API_HASH À remplacer par leur propre api idEtapi hash,Adoptionhttps://my.telegram.org/authAccès, Il faut ajouter +86

Si vous n'appelez pas Telegram API Pour développer des applications tierces , Je voulais juste tester le jeu , Les tests officiels sont disponibles api idEtapi hash.
api_id: 17349
api_hash: 344583e45741c457fe1862106095a5eb
Le serveur teste ce api idEtapi hash Avec beaucoup de restrictions , Mais il n'y a aucun problème à tester son propre bureau pour envoyer des messages à mobile , L'instruction ci - dessus devient ( C'est ce que j'ai utilisé )
configure.bat -D TDESKTOP_API_ID=17349 -D TDESKTOP_API_HASH=344583e45741c457fe1862106095a5eb -D DESKTOP_APP_USE_PACKAGED=OFF -D DESKTOP_APP_DISABLE_CRASH_REPORTS=OFFOpen BuildPath\tdesktop\out\Telegram.sln in Visual Studio 2022
Select Telegram project and press Build > Build Telegram (Debug and Release configurations)
The result Telegram.exe will be located in D:\TBuild\tdesktop\out\Debug (and Release)
2..Exécution
Dernière mise à jourtelegram L'extrémité de bureau doit être connectée avec le Code de balayage de l'extrémité mobile ,Comme Wechat. L'inscription mobile est pratique , Bien sûr, la prémisse est d'avoir un accès scientifique à Internet . La figure suivante montre l'interface du Code QR , Description détaillée de l'utilisation de l'extrémité mobile telegramCode scan.

Si le Bureau n'est pas connecté , Vous pouvez configurer un agent et réessayer ,Cliquez en haut à droite“SETTINGS”,Sélectionner dans le popup“use custom proxy”


Après le réglage réussi de l'agent, Le petit bouclier en bas à gauche s'allumera , Ce petit bouclier est l'état de la connexion au serveur


Lien vers le texte original:https://blog.csdn.net/caoshangpa/article/details/125382685
边栏推荐
- Some basic uses of mongodb
- Flink reports error: a JNI error has occurred, please check your installation and try again
- 19c安装psu 19.12
- What are the red lines of open source that should not be trodden on?
- Redux workflow + complete code of small examples
- EBS R12.2.0升级到R12.2.6
- Redisson 3.17.4 release
- About Simple Data Visualization
- SQL按某字段去重 保留按某个字段排序最大值
- Network connection verification
猜你喜欢

Apache foundation officially announced Apache inlong as a top-level project

Comprehensive introduction to Simulink solver

Redisson 3.17.4 release

Regular expression introduction and some syntax

把控元宇宙产业的发展脉络

EBS r12.2.0 to r12.2.6

What is micro service

POSTMAN测试出现SSL无响应

Redis memory elimination mechanism

mtb13_Perform extract_blend_Super{Candidate(PrimaryAlternate)_Unique(可NULL过滤_Foreign_index_granulari
随机推荐
Linux下搭建集群环境(2)-----------linux下安装Mysql
Sentinel of redis
Redisson 3.17.4 发布
安装PSU的时候/usr/bin/ld:warning: -z lazyload ignore
js数组中修改元素的方法
从进程的角度来解释 输入URL后浏览器会发生什么?
7. common instructions (Part 2): common operations of v-on, v-bind and V-model
mtb13_Perform extract_blend_Super{Candidate(PrimaryAlternate)_Unique(可NULL过滤_Foreign_index_granulari
Thrift getting started
Introduction to anchor free decision
Mysql5.7 is in the configuration file my Ini[mysqld] cannot be started after adding skip grant tables
机器视觉:照亮“智”造新“视”界
Idea set the template of mapper mapping file
Circuit board edge removal - precautions for V-CUT splitting machine
SSL unresponsive in postman test
Understanding of prototypes and prototype chains
Apache基金会正式宣布Apache InLong成为顶级项目
darkent2ncnn出错
dbca静默安装及建库
Darkent2ncnn error